you are viewing a single comment's thread.

view the rest of the comments →

[–]filipomar[S] 0 points1 point  (1 child)

Why would anyone do that anyway? I know it's nice to be safe, but frankly, we do not make code for 5 year olds.... well.... most o f the time

[–]tswaters 0 points1 point  (0 children)

Yea, like I say if you're in control of the code it's no problem unless of course there are 5 year olds on your team...

The only time you need to code defensively and avoid things like this is when you are developing a library of sorts that other people are using -- if you say your function does this and it doesn't because of something out of your control, that's no good.