Better Null Handling Strategies for Java
Uploaded a presentation on “Better Null Handling Strategies for Java” to SlideShare. Enjoy.
You can leave a Reply here. Of course, you should follow me on twitter here.
by Stephan Schmidt
Uploaded a presentation on “Better Null Handling Strategies for Java” to SlideShare. Enjoy.
You can leave a Reply here. Of course, you should follow me on twitter here.
You can share this post!
Do you want to tell others about this article? Use the social bookmark icons to submit this artice to the service of your choice. Thanks.
Ich komme aus der .NET-Welt. Null ist für mich neben GOTO das Übel dieser Welt. In der Experimentiersprache Spec# (C# mit eingebautem Design by Contract) konnte man bei der Deklaration Null verbieten. Damit waren auch die Exceptions weg, weil der Compiler und sogar schon die IDE beim Tippen jegliches Arbeiten mit NULL verboten haben.
Insgesam finde ich Option gut, wenn man Null braucht, ansonsten halte ich Design by Contract für eine bessere Idee.
[...] Better Null Handling Strategies for Java | Code Monkeyism – Uploaded a presentation on “Better Null Handling Strategies for Java” to SlideShare [...]
Wie wär’s damit:
Hi Stephan
I hope you’re aware of The Optimized Null Check pattern:
http://jonasboner.com/2006/04/04/the-optimized-null-check-pattern.html
I had a similar 15min. presentation yesterday
http://thought-tracker.blogspot.com/2009/05/15-min-null.html
What people wrote somewhere else:
Additional comments powered by BackType
Java 7 comes with the ? operator to help