News for hackers. Stuff that matters.
Re:Why I Hate Frameworks (2005) by conductr on Wednesday October 20, 2021 @02:43AM (#28927519)
I remember the first time I heard the phrase “glass jaw”, by then I was early college age and it pretty much just made sense without requiring much thought. The only context I needed was that it’s a boxing term.

If I contrast that with the difficulty I had understanding the hammer factory analogy having just read the linked article , I’d say there is some value in creating better analogies. Not all analogies are made equal.

That said, I finished the article and didn’t feel completely connected with the analogy other than, true frameworks do make me jump through a bunch of hoops sometimes. Is that what he means with this analogy?

If an analogy is a tool to aid comprehension, or make a point, I can’t follow what this is supposed to mean.

Also FWIW, glassjaw is a great band if anyone likes 00s screamo

Re:Why I Hate Frameworks (2005) by lliamander on Wednesday October 20, 2021 @04:16PM (#28935838)
The analogy is that the hardware store represents framework, and the hammer represents a piece of functionality the framework is supposed to provide.

The point is that frameworks of the era rarely provided a simple, direct API for performing some task. Rather, there was often a whole bunch of "Abstract Factory Factory" patterns, which would require a bunch of ceremony before you actually had and object that did the work you needed to do.

Re:Why I Hate Frameworks (2005) by Cederfjard on Wednesday October 20, 2021 @03:05AM (#28927653)
I agree, it’s of course also possible for analogies to be strained or unclear. You need to keep the audience in mind as well.