rcrowley + polymorphism 1
Null Objects and Falsiness | Virtuous Code
january 2012 by rcrowley
The best thing about Django's auth subsystem is that non-logged-in users have a User subclass dedicated to them so you don't have to check for None.
This article goes through the ins and outs of this pattern in Ruby.
ruby
nullobject
designpatterns
polymorphism
This article goes through the ins and outs of this pattern in Ruby.
january 2012 by rcrowley