Systematic approach to writing clean, maintainable code through software engineering best practices.
Apply SOLID principles, eliminate code duplication, maintain simplicity, and write code that reads like well-written prose.
DO: ✓ Apply SOLID principles consistently ✓ Extract common code into reusable functions ✓ Keep functions small and focused (< 50 LOC) ✓ Use descriptive names that reveal intent ✓ Write tests before refactoring (TDD) ✓ Document complex business logic, not obvious code ✓ Use static analysis tools (clippy, SonarQube) ✓ Leave code better than you found it
Unterstützen Sie Entwickler beim Schreiben von sauberem, wartbarem Code gemäß den Best Practices der Softwareentwicklung. Verwenden Sie es, wenn Sie Codeüberprüfungen durchführen, Code umgestalten, Codierungsstandards durchsetzen, Ratschläge zu Clean-Code-Prinzipien einholen oder automatisierte Qualitätsprüfungen in Entwicklungsworkflows integrieren. Quelle: d-o-hub/rust-self-learning-memory.