Skip to content

Commit 4435b76

Browse files
committed
docs: add development principles (DRY, YAGNI, SOLID, OWASP)
1 parent 543d6d1 commit 4435b76

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

AGENTS.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,13 @@ Source code is in `src/`.
4545
- Semicolons: Required
4646
- Array constructor: Avoid `new Array()` (oxlint will warn)
4747

48+
## Development Principles
49+
50+
- **DRY (Don't Repeat Yourself)**: Extract common logic into reusable functions; avoid duplication
51+
- **YAGNI (You Ain't Gonna Need It)**: Implement only what's needed; avoid over-engineering
52+
- **SOLID**: Follow single responsibility, open/closed, and interface segregation principles
53+
- **OWASP**: Prioritize security; avoid unsafe operations, validate inputs, prevent injection risks
54+
4855
## API Reference
4956

5057
- `lru(max, ttl, resetTtl)` - Factory function to create cache

0 commit comments

Comments
 (0)