3 ms·
I listened to an interview with DHH the other day and he was calling out that one of the advantages of frameworks over libraries is that everything comes wired
by hinkley 7y ago
I listened to an interview with DHH the other day and he was calling out that one of the advantages of frameworks over libraries is that everything comes wired up ready for production instead of you spending all your time writing glue code and arguing about conventions.
I'm still not exactly certain where I fall on this topic. What I do know is that I don't like frameworks that conceal the plumbing and leave you with declarative bits that require memorization. Lack of discoverability is a huge barrier to mastery. The best code invites you to determine why something is happening.
What I've been thinking about lately that this article drew out for me again was that it's a shame that so many tools and libraries come not ready for production by default.
It would be nice to have some curated base file sets where insecure defaults were overridden, and all of the metrics and logging logic were wired up. You get the turn-key solution but you still have code that is more discoverable, and you can veto a few choices without too much effort.