Breaking the Law of Demeter is Like Looking for a Needle in the Haystack
<<by MiÅ¡ko Hevery Every time I see Law of Demeter violation I imagine a haystack where the code is desperately trying to locate the needle. class Mechanic { Engine engine; Mechanic(Context context) { this.engine = context.getEngine(); } } The Mechanic does not care for the Context . Y…>> (more…)
See original post by Chris Gilmer