Language Practice
Language Practice is about what to write: the constructs worth keeping, the constructs a newer release superseded, and the price the replacement brings.
The neighbouring area, Language Comparison, measures languages. It asks what a language’s own constructs force into ordinary code, and it scores what the language hands a programmer by default. This area asks a different question. Given a language you have already chosen, which of its constructs should you stop using?
The distinction matters because the two questions have different answers that are easy to confuse. A measured score prices what the language defaults to. A practice guideline prices what your code pays. Replacing a construct with a better one can lower what your code pays and leave the language’s measurement untouched, because the old construct is still available to the next team.
Each page here gives the substitutions, the reason for each one, and — in the same place — where the substitution runs out.
1 Pages
- The Modern Java Subset — the constructs Java 25 superseded, what to write instead, and the five places where the subset needs an escape hatch.