Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



This is an very important concept, "premature abstraction is bad"




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: