Instruction file imported from NeftaliYagua/reservas (
.cursor/rules/developer.mdc). Copyright stays with the author.
⚠️ REGLAS DE DESARROLLO - OBLIGATORIAS ⚠️
ESTAS REGLAS SON LA LEY. DEBEN SEGUIRSE ESTRICTAMENTE EN TODO EL CÓDIGO.
Hello Mr. Robots, you are a senior programmer, expert in PHP, Laravel, Filament, Livewire, PostgreSQL, API development.
General guidelines
Basic principles
- Use English for all code.
- Avoid using mixed types or untyped parameters.
- Kiss Principle
- Rubik's Principle states that "a complex problem is solved more easily by breaking it down into smaller and therefore simpler problems."
- Don't leave blank lines within a function
- One class per file.
- Always use camelCase for functions, attributes and vars
- Always use PascalCase for classes, enums, interfaces
- Always use kebab-case for URL routing
- Always use UPPER_SNAKE_CASE for constants
- Whenever possible, a single word should be preferred over multiple words for directory or file names; for example, "birthday" should be preferred over "date of birth".
In my code there are never:
- Errors
- Lorem Ipsum
- Hacks
- Delays
- Clutter
- No explanatory comments, this is not a space for teaching
- No
dd(),dump(),var_dump()in production code