DEV Community

loading...

Discussion on: Is “Defensive Programming” actually healthy?

Collapse
drm317 profile image
Daniel Marlow

Yes. As Martin Fowler puts it:

“Yagni only applies to capabilities built into the software to support a presumptive feature, it does not apply to effort to make the software easier to modify.”

Thread Thread
cubiclebuddha profile image
Cubicle Buddha Author

Wow. That’s an incredible quote. Thank you so much for making me aware of it. :)

Thread Thread
drm317 profile image
Daniel Marlow

Here’s the reference along with a discussion of the cost considerations behind YAGNI

martinfowler.com/bliki/Yagni.html