Demeter: It’s not just a good idea. It’s the law.
http://devblog.avdi.org/2011/07/05/demeter-its-not-just-a-good-idea-its-the-law/
This awesome article from Avdi Grimm is about the Law of Demeter and he show how we should use and its advantages like:
- the tests more simple and legible;
- the code less coupled (the code will know only the public api of the first object without walk through its dependencies);
- the code more maintainable;
- the code more adaptable.
Written by Marcelo G. Cajueiro
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#