Decide whether to refactor now, defer, or first add characterization tests.
The refund function is revenue-critical, untested, and about to receive one new exception. The code is messy enough to tempt a cleanup before adding the exception.
Sign up free — one personalized lesson every day, matched to your role and goals.
Already have an account? Sign in