Law of Demeter

Software applications are complex systems made up of different components that communicate to achieve the overall purposes of solving real-life problems and business process automations. In reality, the components have to coexist, interact, and share information across the component's boundary without the different concerns getting mixed up, to promote component reusability and overall system flexibility.

In software programming, there are technically no hardcore laws defined that must be stringently followed. However, various principles and laws have been formulated that serve as guidelines and can assist software developers and practitioners, and facilitate building software applications that have components with high cohesion ...

Get C# and .NET Core Test Driven Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.