One thing that was conspicuous for its absence was the "Law of Demeter." Is this not considered a good practice any more?
It's trickier to use, because blindly applying it can lead to immense classes, but I find it a useful thing to keep in mind.
It's trickier to use, because blindly applying it can lead to immense classes, but I find it a useful thing to keep in mind.
class Foo < ActiveRecord::Base
belongs_to :greeter
delegate :hello, :to => :greeter
end