Laws of Software Engineering

The Code Design cluster

How to write code that survives change.

Why these together

SOLID and Beck's Four Rules are competing default sets. DRY, KISS, and YAGNI are rules of thumb for keeping things simple. Demeter is the locality rule. Hexagonal Architecture organises the code at the module level. Bounded Contexts and Ubiquitous Language organise it at the model level. Conceptual Integrity is the property all of this serves. No Silver Bullet is the reminder that none of this removes the essential difficulty. Leaky Abstractions and Tesler are the limits. Least Astonishment and Hick's Law are the interface-design constraints.