Archive for the 'Design Patterns' Category

The Null Object Pattern for Users

Wednesday, February 21st, 2007

The Null Object Pattern certainly isn’t a new idea, but it’s simple and can really help clean up some code, so I thought I’d share an example. Background Our login system is based off of acts_as_authenticated, but very few of our pages require a user to be logged in. We want to find out about [...]

startups.each { |startup| startup.code.inspect }