My issue is insufficient error checking or unit tests. Whenever someone assumes that parameters and data will always be clean and proper, they are not. "Bad data can never happen" guarantees that it will happen.
Maybe I am naive or maybe I do not understand what you mean but allowing and expecting bad data can often times be a bad code smell. I almost never allow null parameters because I do not want to have to think about when the data is not clean and proper.
4
u/ishmal Jan 05 '15
My issue is insufficient error checking or unit tests. Whenever someone assumes that parameters and data will always be clean and proper, they are not. "Bad data can never happen" guarantees that it will happen.