Peter Williams
Posts: 165
Nickname: pezra
Registered: Apr, 2005
|
Just is a random programmer.
|
|
|
|
The Null Object Pattern
|
Posted: Jun 27, 2005 3:27 PM
|
|
|
This post originated from an RSS feed registered with Ruby Buzz
by Peter Williams.
|
Original Post: The Null Object Pattern
Feed Title: Peter Williams' Weblog
Feed URL: http://barelyenough.org/blog/tag/ruby/feed/
Feed Description: Random thoughs about software development, and anything else I find interesting.
|
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Peter Williams
Latest Posts From Peter Williams' Weblog
|
|
Noticed this interesting article about the Null Object Pattern. Basically, it is the idea that the null/nil object could accept any message and return itself, rather than the more canonical approach of throwing an exception. This seems to lead to simpler, more elegant, code due to the lack of exception handling and null/nil [...]
Read: The Null Object Pattern
|
|