I really like your thought process on this. Though I just want to make sure I understand you correctly: Are you saying that YAGNI is not a reasonable argument against clean code techniques like the never/exhaustiveness checking I showed above?
If so, I agree with you because it helps to keep the codebase clean, and as you said:
A clean codebase is the ultimate defence kit against these costs.
Well put. :)
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I really like your thought process on this. Though I just want to make sure I understand you correctly: Are you saying that YAGNI is not a reasonable argument against clean code techniques like the never/exhaustiveness checking I showed above?
If so, I agree with you because it helps to keep the codebase clean, and as you said:
Well put. :)