Skip to main content

13 docs tagged with "code-quality"

View all tags

DRY: Don't Repeat Yourself

Master DRY principle: eliminate knowledge duplication for maintainable code, improved consistency, and reduced bugs.

Encapsulate What Varies

Identify volatile aspects of your system and hide them behind stable interfaces to reduce coupling and change impact.

Fail Fast

Detect and report errors immediately to prevent silent failures, data corruption, and cascading problems.

High Cohesion, Low Coupling

Build systems where components relate strongly to their purpose while remaining loosely connected to other components.

Law of Demeter

Master the Principle of Least Knowledge to reduce coupling and improve maintainability in complex systems.

Separation of Concerns

Design systems where different areas address different aspects of functionality, improving modularity and maintainability.