back home

Law of Demeter

[Design Principles]

While applying this law may require creating additional functions which allow for this immediate data passthrough, it makes sense to only allow immediacy in contact between components. This is also in conjunction with single responsibility principle. A component doesn’t have to - and shouldn’t know about the implementation of another component in order to access something the ‘another’ component has access to.