Tuesday, June 21, 2016

The Law of Demeter - Writing Shy Code



You have violated the law of demeter. The underlying principle here is that you shouldn't know about the internals of an object: objects should be black boxes you send messages to. If you keep in mind the underlying principle, your code will be fine.

from My Pocket https://www.reddit.com/r/programming/comments/4oprd0/the_law_of_demeter_writing_shy_code/

No comments:

Post a Comment