| DRY | Don't Repeat Yourself | Copy-pasted code blocks | | KISS | Keep It Simple, Stupid | Over-engineered solutions | | YAGNI | You Aren't Gonna Need It | Features "just in case" |
"Every piece of knowledge must have a single, unambiguous representation in the system."
| Class | PascalCase, noun | OrderService | | Interface | PascalCase, adjective or noun | Comparable, List | | Method | camelCase, verb | calculateTotal() | | Variable | camelCase, noun | customerEmail | | Constant | UPPERSNAKE | MAXRETRYCOUNT | | Package | lowercase | com.example.orders |
Principios de Código Limpio (DRY, KISS, YAGNI), convenciones de nomenclatura, diseño de funciones y refactorización. Úselo cuando el usuario diga "limpiar este código", "refactorizar", "mejorar la legibilidad" o al revisar la calidad del código. Fuente: decebals/claude-code-java.