principle @team/principle-readability-over-cleverness

Readability Over Cleverness

Optimize code for the reader who will maintain it in six months, not for the author who writes it today. If a colleague cannot understand a function in 60 seconds without running it, the function is too clever.

Skill
@team
Domain
coding-style
Version
1.0.0
Quality
0.0
Edges
0 out · 0 in
Tokens
130/242/309
$ aoe install @team/principle-readability-over-cleverness

Projection

Always in _index.xml · the agent never has to ask for this.

ReadabilityOverCleverness [principle] v1.0.0

Code is read far more often than it is written. When a clever, compact solution and a readable, verbose solution produce the same outcome, prefer the readable one. Cleverness optimizes for the author; readability optimizes for the team.

Optimize code for the reader who will maintain it in six months, not for the author who writes it today. If a colleague cannot understand a function in 60 seconds without running it, the function is too clever.

Source

aoe-engine/examples/coding-style/primes/compiled/@team/principle-readability-over-cleverness/atom.yaml