Reading List
The most recent articles from a list of feeds I subscribe to.
AI: the not-so-good parts
Hard media
How to get composer to suggest users to install a dependency as a dev dependency
Last week I was installing a mocking framework with Composer and got the following prompt:
$ composer require mockery/mockerymockery/mockery is currently present in the require-dev key and you ran the command without the --dev flag, which will move it to the require key.Do you want to move this requirement? [no]?
How cool! I didn't know you could hint Composer to suggest a dependency to be installed as a testing dependency.
After further inspection, Composer determines this based on the tags used for the package
If you add dev, testing, or static analysis keywords to your package's composer.json, Composer will prompt users to install it as a dev dependency.
{ "name": "spatie/tabular-assertions", "keywords": ["testing"]}
CSS :has looks pretty cool
I haven't really played around with the new :has selector in CSS yet, but this example from Chris Coyier piqued my interest.
With this query, you can dynamically filter a list with pure CSS!
body:has([name="filter"][value="bakery"]:checked) .card:not([data-category="bakery"]) { display: none;}
CloudFlare on migrating their docs to Hugo
An interesting retrospective on how CloudFlare migrated from Gatsby to Hugo for their docs. Build times for the static site were up to an hour (!) long. At some point, the performance of a tool can really become a bottleneck for your team.