Better Strategies for Null Handling in Java
by Stephan Schmidt
- 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
Statistics
- Likes
- 10
- Downloads
- 161
- Comments
- 4
- Embed Views
- Views on SlideShare
- 19,075
- Total Views
- 21,106
web browing application is very good 3 years ago
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