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

DRY often leads to too much abstraction that while correct from the theory of software engineering, it increases complexity and maintainability costs.

That being said, I always allow myself to repeat code until a good enough patter emerges from that repetition, and then I refactor. Having the same code twice is not always sufficient to reveal what is the right refactor to do, if any.



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

Search: