This post originated from an RSS feed registered with Java Buzz
by James Iry.
Original Post: Martians vs Monads: Null Considered Harmful
Feed Title: One Div Zero - Java
Feed URL: http://james-iry.blogspot.com/feeds/posts/default/-/java
Feed Description: An exploration of software development in Java.
I hate null. More specifically I hate NullPointerExceptions(NPEs). Scala has an alternative, but let me explain why I hate NPEs. They're like evil, sneaky muppets. Remember the Martians on Sesame Street? They'd ask each other if a phone was a cow and then say "nope, nope, nope, nope." To my eye, NPE looks a lot like "NoPE."Me: Is my unit test working?Computer: NoPEMe: Um...okay, fixed that