DEV Community

Discussion on: Practicing YAGNI

Collapse
 
alainvanhout profile image
Alain Van Hout

I tend to follow a different but related approach: I try to imagine as many future scenarios as possible, and settle on the simplest approach for the current issue that, with only a reasonable amount of changes, would allow me to satisfy those hypothetical scenarios (while not satisfying them right now).

So more briefly, keep it simple, but don't block your future self.

Collapse
 
gonedark profile image
Jason McCreary

While I understand what you mean, you're still playing the same old game. When practicing YAGNI, you don't want to spend your time imagining every possible future scenario. You want to do what works right now. Save the time and mental energy for later.

Said another way, believe your future self is smarter. In a paradoxical way, you aren't even smart enough to block them.

Collapse
 
alainvanhout profile image
Alain Van Hout

I get what you're saying, but imaging myriad possible scenarios and instinctually evaluating them for being blocked, is something that in reality takes on the order of 15 minutes. TDD even is more expensive than that.