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

The difference between DRY and YAGNI is experience. Both are predicting the future, and you can only do that by having watched code evolve.


What's that saying? "Once is a mistake, twice is a coincidence, three times is a pattern".

Having to write something once, just write it.

Having to write something twice with small differences, think about it.

Having to write something three times? Consider refactoring.




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

Search: