From 416773663c0d7c6ea53889bdeede1c50677dd500 Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Thu, 12 Feb 2026 10:52:53 -0500 Subject: [PATCH] docs: add TypeScript domain extraction guideline to PROJECT_GUIDELINES - Add principle for extracting domain concepts/types only when clearly beneficial - Emphasize YAGNI approach to avoid over-engineering TypeScript code - Allow sensible extraction when it reduces duplication or complexity --- PROJECT_GUIDELINES.md | 1 + 1 file changed, 1 insertion(+) diff --git a/PROJECT_GUIDELINES.md b/PROJECT_GUIDELINES.md index 41006b4..35794ba 100644 --- a/PROJECT_GUIDELINES.md +++ b/PROJECT_GUIDELINES.md @@ -139,6 +139,7 @@ VERIFY → Compile successfully - ✅ **Use procedural/imperative style** as your default - ✅ **Borrow functional techniques** when they simplify code - ✅ **Avoid ideological purity** - the best paradigm is the one that fits the problem +- ✅ **Extract domain concepts/types only when clearly beneficial** - apply YAGNI, avoid over-engineering - ✅ **Render initial data server-side** in Go templates for fast page loads - ✅ **Use JavaScript/HTMX for CRUD operations** (create, update, delete) - ✅ **Ensure progressive enhancement** - pages work without JavaScript