News for hackers. Stuff that matters.
Re:Software development topics I've changed my mind on after... by jfengel on Wednesday February 05, 2025 @07:48PM (#42957560)
The difference between DRY and YAGNI is experience. Both are predicting the future, and you can only do that by having watched code evolve.
Re:Software development topics I've changed my mind on after... by bena on Thursday February 06, 2025 @09:49AM (#42962887)
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.