m4mv1a
Last Updated: February 25, 2016
·
695
· marcelocajueiro

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.