Nothing There: The Null Object Design Pattern

While reading Head First Design Patterns, I came across the Null Object Pattern. Which, depending on who you ask, may not be a design pattern. Head First Design Patterns refers to the Null Object as a "Pattern Honorable Mention". Here is an excerpt of their description:

"A null object is useful when you don't have a meaningful object to return, and yet you want to remove responsibility for handling null from the client." 

For an excellent description with examples, check out this explanation by Jeremy Jarrel (or at least I think that's his/her name...the only place I could find something that looked like the author's name was in the domain, but I didn't look too hard).

Published Tuesday, January 13, 2009 5:00 PM by Tod Birdsall
Filed under:

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

No Comments

Leave a Comment

(required) 
(optional)
(required) 
Submit
Picture of Tod Birdsall

Welcome!

This is the personal website of Tod Birdsall, a programmer, business analyst, and gamer. Not necessarily in that order. Learn more...

Subscribe

Be notified of my latest posts. Subscribe to my blog.