From 06772c675e293015156238aa170e070dbd85df67 Mon Sep 17 00:00:00 2001 From: catlog22 Date: Fri, 3 Oct 2025 12:24:29 +0800 Subject: [PATCH] docs: Enhance core coding principles with engineering best practices MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Integrated five fundamental engineering principles at the start of Core Beliefs: - Good taste: eliminate edge cases for elegant logic - Extreme simplicity: complexity as root cause of issues - Pragmatism: solve real problems, not hypothetical ones - Data structures first: prioritize data design over code - Backward compatibility: preserve existing functionality These principles complement existing guidelines while emphasizing foundational software engineering wisdom. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- CLAUDE.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index fd2f607a..0fbb3b39 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -19,11 +19,14 @@ For all CLI tool usage, command syntax, and integration guidelines: ### Core Beliefs +- **Pursue good taste** - Eliminate edge cases to make code logic natural and elegant +- **Embrace extreme simplicity** - Complexity is the root of all evil +- **Be pragmatic** - Code must solve real-world problems, not hypothetical ones +- **Data structures first** - Bad programmers worry about code; good programmers worry about data structures +- **Never break backward compatibility** - Existing functionality is sacred and inviolable - **Incremental progress over big bangs** - Small changes that compile and pass tests - **Learning from existing code** - Study and plan before implementing -- **Pragmatic over dogmatic** - Adapt to project reality - **Clear intent over clever code** - Be boring and obvious -- **Simple solutions over complex architectures** - Avoid over-engineering and premature optimization - **Follow existing code style** - Match import patterns, naming conventions, and formatting of existing codebase ### Simplicity Means