Nulls are Evil

..and so are exceptions!

Photo by Martino Pietropoli

Now that I have piqued your interest, it falls to me to explain why I feel that way — especially as there’s a 50:50 chance that you disagree, perhaps even strongly. One thing that I am sure we can agree on is, in programming, there is no avoiding Nulls or exceptions; things go wrong, servers may be down, data may simply not exist, the…

Continue Reading Jay Barden’s Article on their blog

Nulls are Evil

So, what do we do about nulls and being truthful? We avoid returning them. Instead, we return a meaningful result object which clearly denotes the success, or otherwise, of our call and, where applicable, the object we expect. Sounds simple doesn’t it? It is.

Blog Syndicated with Jay Barden’s Permission

Author: Kieran Holmes

Share This Post On
Share via
Copy link
Powered by Social Snap