News for hackers. Stuff that matters.
Re:Cognitive Load is what matters by figassis on Saturday August 30, 2025 @11:26AM (#45075443)
Abstractions are ok, SomethingFactories are stupid. If your code is more abstractions than actual logic and you need logic to manage the abstractions (eg. FactoryFactories, 2+ inheritance levels), you should rethink your strategy.
Re:Cognitive Load is what matters by mdaniel on Saturday August 30, 2025 @12:18PM (#45075831)
I had previously thought SomethingFactory was abstracting away the logic for the "new" keyword, but for people who dislike inversion of control frameworks

I'm firmly in the "DI||GTFO" camp, so I don't meant to advocate for the Factory pattern but saying that only abstractions that you like are ok starts to generate PR email threads