DEV Community

Discussion on: Is “Defensive Programming” actually healthy?

Collapse
 
danazar96 profile image
Aidan Walters-Williams

Great article! Defensive programming should be the de facto. It's not being scared of the future, it's actually being optimistic about the future in the sense that because you're handling this potential future scenarios, future you will not be hindered by them and will be able to develop freely.

Collapse
 
cubiclebuddha profile image
Cubicle Buddha

Wow, you nailed it. You perfectly summarized why I continue to use defensive programming. It’s like we’re “paying it forward” even though the person we’re helping out might be future us.

future you will not be hindered by them and will be able to develop freely.

Well put. :)

Collapse
 
danazar96 profile image
Aidan Walters-Williams

Thank you very much, it was a great article. Look forward to hearing more of your stuff!