News for hackers. Stuff that matters.
Re:Ruby Best Practices (full book available for download) by stevedekorte on Thursday March 18, 2010 @02:00PM (#1201995)
The problems I have with "distance [1,2], [5,6]" are:

0. It breaks the fundamental OO convention and doesn't encapsulate logic and data.

1. It's not clear what it means unless you look up the docs.

2. It's implementation is complex, making it more difficult to understand and maintain

3. It fails to separate concerns, making it less extensible/modifiable. e.g. What if you wanted to override the setting behavior? You couldn't do it in one place.

There are no comments on this comment yet.