A payroll comment says overtime is paid at 1.5x while the code says 1.25. Learn to replace what-comments with code that explains itself, and to keep the why-comments that are worth keeping.
November 26, 20269 minutes
Three classes decide whether a loan is overdue, and they disagree. Learn to spot a Data Class, move behavior to where the data lives, and know when a plain data carrier is fine.
November 26, 20269 minutes
A new developer spends an afternoon fixing a coupon method nobody has called in two years. Learn to find dead code, delete it, and know when to check first.
November 26, 20268 minutes
A recipe app with a one-line formatter, a one-number holder and an empty subclass. Learn to spot classes that don't earn their keep and fold them in without losing good small classes.
November 26, 20268 minutes
A delivery app that only ships by bike carries a factory, an abstract Vehicle, a plugin registry and a drone parameter. Learn to spot code built for a guess and remove it.
November 26, 20269 minutes