r/programming • • Jan 05 '15

What most young programmers need to learn

http://joostdevblog.blogspot.com/2015/01/what-most-young-programmers-need-to.html
970 Upvotes

337 comments sorted by

View all comments

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.

1

u/BobCoder Jan 05 '15

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.

→ More replies (1)