Browse by Tags

Sorry, but there are no more tags available to filter with.

  • Law of Demeter and Forwardable
    Dan Manges has an excellent post explaining Law of Demeter and when it makes sense to use Forwardable to comply the principle, or I should say when it doesn't make sense to use the module. The point is, use it when it makes sense. Take his example, customer_name is just not a sensible method for an order. Asking an order for its customer name is a wrong question because all the order should care is who is its customer. The name is irrelevant to the order. In fact, I think by putting cusomer_name method in an order. the encapsulation is actually...
    read more
  • Permalink: Friday, November 02, 2007 1:26 PM
    Posted by ywen | 0 Comments
    Filed under