note
perrin
"You Aren't Gonna Need It" doesn't work in isolation. You have to write clean code and refactor it if it gets messy. The code in your example sounds like it was allowed to become a ball of mud.
<p>YAGNI is about leaving out gold-plating and unnecessary features and abstractions, not about writing messy unmaintainable code. Clean code is something you are always going to need.
455418
455815