LMcG> "null Considered Harmful"
LMcG>
http://peat.org/2013/12/07/null-considered-harmful/
LMcG> "In almost every software project I've been a part of, the
LMcG> majority of errors I've encountered are caused by unexpected
LMcG> null references. Many are caught at compile or test time, but
LMcG> they always creep though, and few platforms are exempt. They
LMcG> crop up everywhere: web applications, desktop applications,
LMcG> embedded software, game consoles, mobile devices -- almost
LMcG> everywhere there is software, there are null references."
LMcG> I am speechless.
I'm not speechless. He writes like someone who's only ever worked in
Java, and who thinks that Java is the alpha and omega of programming
languages and environments. I see idiots like that pontificating online
daily.
He does have a point that, in Java, the null object is often overloaded
to mean "no object" and "the method you just called encountered an
error." But this is not a flaw in the concept of null; it is a flaw in
the design of Java.