DEV Community

Discussion on: Refactoring: My 6 favorite patterns

Collapse
 
fluffynuts profile image
Davyd McColl

A useful extension to (1) is the null pattern: providing an implementation which has the right methods but does nothing, instead of a conditional at the point of doing the required thing (eg a NoEmail user facade in the example above)