Hacker News new | ask | show | jobs
by disintegore 1032 days ago
I resent how much we've trained developers to value concision over everything else. I can't tell you how many times I've seen people use DRY as a justification to alias stuff that's already heavily abstracted by the framework that they use, ending up with less useful interfaces. Either that, or they'll explode the cognitive load by building crazy type hierarchies and inserting opaque anti-patterns like factories and decorators and whatnot.

These are "the wrong abstractions" in the sense that they're not actually crappy code full of conditionals and are actually well-redacted and not all that hard to decipher. They're "the wrong abstractions" in the sense that there's either a way to do it that is simpler and makes fewer assumptions, or in the sense that they are worse than "no abstraction" which is to say sticking to the abstractions that have already been invented for you by people whose jobs it is to do that exact work for millions of engineers and are therefore probably way better equipped.