#354 Add maven model for feature toggle design pattern

This commit is contained in:
Joseph McCarthy
2016-01-25 21:14:24 +00:00
parent cf10bd1d05
commit d7526fc7c0
86 changed files with 1165 additions and 270 deletions

View File

@ -9,7 +9,8 @@ tags:
- Difficulty-Beginner
---
**Intent:** In most object-oriented languages, such as Java or C#, references
## Intent
In most object-oriented languages, such as Java or C#, references
may be null. These references need to be checked to ensure they are not null
before invoking any methods, because methods typically cannot be invoked on
null references. Instead of using a null reference to convey absence of an
@ -20,6 +21,7 @@ Object is very predictable and has no side effects: it does nothing.
![alt text](./etc/null-object.png "Null Object")
**Applicability:** Use the Null Object pattern when
## Applicability
Use the Null Object pattern when
* you want to avoid explicit null checks and keep the algorithm elegant and easy to read.