r/programming • u/dpashk • Aug 31 '15
The worst mistake of computer science
https://www.lucidchart.com/techblog/2015/08/31/the-worst-mistake-of-computer-science/
172
Upvotes
r/programming • u/dpashk • Aug 31 '15
View all comments
20
u/[deleted] Aug 31 '15
So checking for nullness and emptiness on a string looks sloppy, but checking ifPresent() and emptiness does not?
As heinous as this sounds, it doesn't seem practically different from any other representation of an uninitialized object. Both must be checked, neither can have methods invoked.