..and so are exceptions!
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
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