News for hackers. Stuff that matters.
Re:Prefer duplication over the wrong abstraction by christophilus on Saturday July 09, 2016 @12:05PM (#12061908)
Yeah. I'd agree with this. I've had to maintain some terrible codebases with duplication everywhere. The truth is, I have an easier time fixing bugs in simple but duplicated code than I do fixing bugs in super abstract but DRY code. Which has me thinking: clear, obvious code with duplication is better than magic code which is DRY.

Obviously, the best is DRY, obvious, and explicit...

Also, a rule of thumb is premature optimization is bad. So is premature abstraction.

Re:Prefer duplication over the wrong abstraction by camkego on Saturday July 09, 2016 @12:34PM (#12062055)
This is an very important concept, "premature abstraction is bad"