Found in 1 comment on Hacker News
specialist · 2016-04-28 · Original thread
I will never use Java's Optional. I'm baffled why it even exists. Further, I remain unclear on the value (haha) of the @Nullable and @NotNull annotations. If it's not baked into the language, why bother?

I've been using NullObject since (checking...) 1996. This is The Correct Answer.

http://c2.com/cgi/wiki?NullObject

I first read about NullObject here:

Object-Oriented Design Heuristics http://amzn.to/1ND1YSU

What'd be really neat is some mojo to remove the boilerplate of implementing NullObjects.

Fresh book recommendations delivered straight to your inbox every Thursday.