We're glad you're here, but we'd be thrilled if you voted! Login and vote now.
By alashcraft
via lostechies.com
Published: Jul 08 2008 / 03:42
The Law of Demeter, and its corresponding code smell, Inappropriate Intimacy, are some of the best bang-for-your-buck code smells that you can address. The basic idea behind each of these concepts is code related to an object should probably be inside that object. It's also known as the Principle of Least Knowledge, and I've found it very helpful in creating objects with rich behavior.
Add your comment