Loading page…
A checkout class that prices, charges and emails: the smells in it (a god class, if ladders, strings standing in for types, singletons read from inside), how to pin its behaviour and refactor in six small steps, where the if ladder goes, why a number in settings is not a strategy, and when to leave code alone.
Every team has one class nobody wants to open.