3 ms·
With the null object pattern, your logic still has to determine if it needs to create a null object or not. The difference is that code is down where it needs
by chooseaname 8y ago
With the null object pattern, your logic still has to determine if it needs to create a null object or not. The difference is that code is down where it needs to be not further up where it can be duplicated or have more abstraction built around it that just complicates what should be really simple code at that point.
- ahallock 8y agoInteresting. I'd have to see some concrete examples to understand better. Where I've seen it used caused issues because it was masking data integrity issues.