The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
The Null Object Pattern

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
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
Reply to this message Reply

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

Advertisement
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

Topic: Designer CMS on Rails: Programmers needed! Previous Topic   Next Topic Topic: Dreamhost now supports Ruby on Rails

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use