Skip to content

Instantly share code, notes, and snippets.

View viciniuss's full-sized avatar

Vinícius da Silva Ribeiro viciniuss

View GitHub Profile
@viciniuss
viciniuss / java-spring-lombok
Last active December 29, 2025 02:53
Java Rules
Follow these rules when generating or modifying code:
- Implement a function, class, or endpoint with a single, explicit responsibility.
- Use Spring Boot best practices and Clean Code principles.
- Use Lombok by default to remove boilerplate (e.g. @RequiredArgsConstructor, @Getter, @Value, @Builder, @Slf4j).
- Use constructor-based dependency injection and keep dependencies immutable (final fields).
- Keep controllers thin: HTTP orchestration only, no business logic.
- Organize code by feature/bounded context, not by technical layers.
- Modify only the explicitly specified files or paths.
- Do NOT add code comments. Express intent through clear naming, small methods, and explicit types.