• Email
  • Like
  • Save
  • Private Content
  • Embed
 

Better Strategies for Null Handling in Java

by

  • 21,106 views

Most developers handle null not defensive enough. The presentation is about strategies for better null handling in Java to make APIs clearer and prevent Null Pointer Exceptions.

Most developers handle null not defensive enough. The presentation is about strategies for better null handling in Java to make APIs clearer and prevent Null Pointer Exceptions.

Accessibility

Categories

Upload Details

Uploaded via SlideShare as Adobe PDF

Usage Rights

© All Rights Reserved

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

Cancel

14 Embeds 2,031

http://codemonkeyism.com 1132
http://www.codemonkeyism.com 737
http://www.net4java.com 73
http://www.slideshare.net 59
http://static.slideshare.net 10
http://blog.net4java.in 5
http://www.brijj.com 5
https://twitter.com 4
http://www.squidoo.com 1
http://74.125.153.132 1
http://www.net4java.com&_=1323673857306 HTTP 1
http://feeds2.feedburner.com 1
http://feeds.feedburner.com 1
http://kred.com 1

More...

Statistics

Likes
10
Downloads
161
Comments
4
Embed Views
2,031
Views on SlideShare
19,075
Total Views
21,106

14 of 4 previous next Post a comment

  • guest1c10fb guest1c10fb
    web browing application is very good
    3 years ago
    Are you sure you want to
  • keefie98 keefie98 Thanks for materials Stephan. Having been through each slide it has reinforced my belief that moving to Groovy was a good move. Given the seamless, full integration of Groovy and Java I'm not sure why anyone wold choose the Option solution over the '?' solution. Performance maybe? 4 years ago
    Are you sure you want to
  • HamletDRC HamletDRC @guest The Option type is a native type in a lot of other languages, which is an argument for its use... many programmers were taught this as part of their first language. Consistency is good, but I agree the ? notation is a little more soothing.
    However, the ? notation is an idiom based solution, not a type system solution. You can always forget to invoke ? and get a NPE. With the option type there is no way to drop off the check, especially if your language's compiler enforces you to do it. So I prefer the option type along with a compiler that forces correct usage.
    4 years ago
    Are you sure you want to
  • Stephan.Schmidt Stephan Schmidt, Team Manager at brands4friends See Slide 5. 4 years ago
    Are you sure you want to
Post Comment
Edit your comment

Better Strategies for Null Handling in Java Better Strategies for Null Handling in Java Presentation Transcript