The post discusses eliminating frequent null checks and null pointer exceptions in code by using the Null Object Pattern. This approach simplifies code, making it more readable and maintainable while avoiding the 'Billion-Dollar Mistake.' It provides step-by-step guidance and sample code demonstrating how to implement Null Objects to replace null checks.

4m read timeFrom medium.com
Post cover image
Table of contents
Refactoring 015 — Remove NULLProblems AddressedRelated Code SmellsStepsSample CodeBeforeAfterTypeSafetyWhy is the code better?LimitationsTagsRelated RefactoringsSee also
15 Comments

Sort: