Refactoring a small method to pass all three requirements, explaining each in turn.We've had a bit of code at work that's worked since day one. That's twenty years, and every payment in the system has passed through it. A lot of payments. Something isn't quite right about it though. When a bug report came in a few months ago seemingly related to this twenty year old code, it was time to fix it.
This talk aims to clarify the definition of "right", at least in this speaker's opinion.
Code examples will be shown, including bonus attempts by AI and The Perl Weekly Challenge.Audience: All["Perl"]