CodeSOD: Weakly Miles Calculation
The Daily WTF
JUNE 4, 2023
But the very next line is an incredible case of bad variable names: weekly_miles = self.mileage_per_day. It was then handed off to a developer who implemented exactly that requirement , with no thought at all to how to express this in code so that it would be maintainable. Only one of these can be correct. They had a formula.
Let's personalize your content