DEV Community

Discussion on: Is “Defensive Programming” actually healthy?

Collapse
 
workingwebsites profile image
Lisa Armstrong

My coding paradigm: some poor bastard is going to have to work with this some day, and it will probably be me. Code accordingly.

Seriously, experience is a good teacher. It's not always the deciding factor, but it is something to listen to.

Collapse
 
cubiclebuddha profile image
Cubicle Buddha

Yes, there’s no replacement for experience. :) The challenge I find as a senior dev is how to help give junior devs the opportunity to fail safely so they too can gain experience. It’s a tough balancing act. :/

Collapse
 
jonathanhiggs profile image
Jonathan Higgs

Assume the next person to look at your code is a psychopath and knows where you live