
Clean Code in Java Rules That Hold Up in Real Codebases
A short list of clean code rules for Java that survive contact with real projects: naming, small methods, immutability, exceptions and when to ignore a rule.
Tag
6 posts

A short list of clean code rules for Java that survive contact with real projects: naming, small methods, immutability, exceptions and when to ignore a rule.

A short set of REST API design rules for Java teams: resources, verbs, status codes, errors, pagination, versioning and what to leave out until it is needed.

What the test pyramid says, why it fits business logic and fits badly for services that mostly connect a database to a queue, and what to draw instead.

The security habits a Java backend needs: validate input, hash passwords, use SecureRandom, protect secrets, restrict deserialization and update dependencies.

A Java security checklist to run before release: dependencies, secrets, authentication, input handling, transport, logging and containers.

The OWASP Top Ten web risks mapped to Java and Spring: what each one looks like in code, a fix for each and where to read the full guidance.