Extract-Method

Comments

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

Duplicate Code

A discount rule copied into three classes, a bug fix that reaches two. Learn to spot duplicate code, pick the right refactoring, and tell real duplication from look-alikes.

November 26, 20269 minutes

Long Method

A method you have to scroll through hides where everything is. Learn to spot Long Method and break it into small methods with good names: name the intent.

November 24, 202611 minutes