I read a good description of this today, it said Defensive programming is like defensive driving, you take responsibility for protecting yourself even if it's the other drivers fault. It's always a bit of conundrum for me, how defensive should I program my methods, classes because it's likely that I am the only person for quite a while to use it, so am I programming defensively for the benefit of
This post first appeared on A Funny Java Flavoured Look At The World, please read the originial post: here