component principles

The Component Principles

 

The SOLID Principles guide us in designing understandable, easy-to-change, and reusable modules and classes. Without these principles, we would not know why a module is well-designed or not. And if a class resists change, we can point to violations of the SOLID Principles.

Components also have a set of design principles—The Component PrinciplesComponents are the smallest deployable elements of a software system. They are files. In .NET they are .DLL files, in Java .JAR files, and in Javascript .JS files. Components are made up of modules.

modules in a component

If we didn’t have any principles to guide our software development efforts, then anything goes. And we know what code looks like when no rules and guidelines are pointing out the path of high maintainability. 

According to Robert C. Martin, the Component Principles can be split into two distinct categories:

  1. Principles of Component Cohesion
    1. The Reuse/Release Equivalence Principle,
    2. The Common Closure Principle
    3. The Common Reuse Principle
  2. Principles of Component Coupling
    1. The Acyclic Dependencies Principle
    2. The Stable Dependencies Principle
    3. The Stable Abstractions Principle

We’ll cover each principle over the coming weeks.

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply