Java 8 Optional

My shop is considering development paths and frameworks.

One Framework path I am evaluating is a homegrown library, small and specific in nature, built on top of Google Guava.

Here is a quick GitHub writeup explaining the issue around null, and how the Guava framework developers avoid it:

https://github.com/google/guava/wiki/UsingAndAvoidingNullExplained

Reading my DZone blogs today the top article was this very topic, demonstrating the use (in code) of ‘Optional’, which has made it’s way into the Java 8 VM.

https://dzone.com/articles/java8-optionals-overview-with-examples?edition=272883&utm_source=Daily%20Digest&utm_medium=email&utm_campaign=dd%202017-02-23

And beware of those NULLs!

 

 

Advertisements