Home » Code

Say “No” to “Null”

4. May 2010 by thebeebs 0 Comments

I Just read the blog post: Say No to Null and it was an interesting read but something about the idea of not handling Possible null exceptions rubs me up the wrong way.

The two reasons for not handling null were:

  1. Less code would need to be written.
  2. Code will look more elegant.

Neither of these two reasons satisfies my core values when developing code: Producing fast, Bug free code.

My null handling will remain the same. If I have 100% code coverage on the method and null parameters cause potential avoidable exceptions… I will fix them.

Comments

Add comment


(Will show your Gravatar icon)  

  Country flag

biuquote
  • Comment
  • Preview
Loading