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

SCOTtish summit 2021

On February the 27th Scottish Summit 2021 will come to you as a virtual event. With over 250 sessions from all Microsoft technologies. You need to register for your FREE ticket and download the Scottish Summit App to see all the great sessions.