TAG · 2 ARTICLES
#clean-code
- JAVAJava records explained: one-line data classes, with examplesOne line replaces a 40-line data class. Here is what a Java record gives you for free, how to add validation and methods, where records fit, where they don't, and what Java 21's record patterns add.16 Nov 2026 · 5 min
- JAVAJava var explained: local variable type inferencevar lets the compiler work out a local variable's type from the value you assign. It is still strongly typed Java, not JavaScript. Here is how it works, where you can and can't use it, and the traps worth knowing.16 Nov 2026 · 5 min