Reading List
The most recent articles from a list of feeds I subscribe to.
De-atomization is the secret to happiness
Nat Eliason writes about how we're making it hard for ourselves to become happy by reducing activities to hyper-focussed but anemic versions of them.
We separate “I’m working” and “I’m playing.” We want to make everything extremely efficient, so we opt for going for a run alone instead of trying to link up with people along the way. We need to “be productive” so we don’t work from a coffee shop with friends.
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.
Mostly Technical with Sam Selikoff: An introduction to React Server Components
This podcast episode was a great introduction to React server components. A balanced take—whether you're drinking frontend koolaid or push to backend all the things.
(Mostly Technical has been great lately, Justin Jackson compiled a hilarious Mostly Technical x Seinfeld supercut.)