Design patterns are one of the easiest and quickest ways to create clean manageable code whether you are starting from scratch or refactoring existing code.
This Null Object Pattern is all about handling the null keyword in a way that removes all of those nasty if (object != null) checks from your code.
#lld #systemdesign #designpattern