Thank you Botond for providing a concrete example to make it easier to digest the Null Object pattern (NOP hereafter since it's too long to type π).
I've been using NOP happily and worked great when used in conjunction with Singleton Pattern (π±).
Thank you Botond for providing a concrete example to make it easier to digest the Null Object pattern (NOP hereafter since it's too long to type π).
I've been using NOP happily and worked great when used in conjunction with Singleton Pattern (π±).
Shameless plug: I've touched on it briefly here.
A valid usage of Singleton Pattern (with Null object Pattern)
πΊπππ ½π ΆβοΈπ Ίπ Έπ Όπ