June 2018
Intermediate to advanced
280 pages
7h 46m
English
The null object pattern is one of the lightest patterns covered in this book. Sometimes, it is considered just a particular case of the strategy pattern, but it has its own section, given the importance it has in practice.
If we develop programs using a test-driven approach, or if we simply want to develop a module without having the rest of the application, we can simply replace the classes we don't have with a mock class, which has the same structure but does nothing.
Read now
Unlock full access