Law of Demeter
- Each unit should have only limited knowledge about other units: only units “closely” related to the current unit.
- Each unit should only talk to its friends; don’t talk to strangers.
- Only talk to your immediate friends.
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.