Code Smell 57 - Versioned Functions
sort, sortOld, sort20210117, workingSort, It is great to have them all. Just in case
Keep just one working version of your artifact (class, method, attribute).
Leave time control to your version control system.
We can add automatic rules to find versioned methods with patterns.
Like many other patters we might create an internal policy and communicate.
Time and code evolution management is always present in software development. Luckily nowadays we have mature tools to address this problem.
That's why I write, because life never works except in retrospect. You can't control life, at least you can control your version.
This article is part of the CodeSmell Series.