When your senior dev says "future proof," they probably meant something about scalable architecture and maintainable design patterns. Instead, this developer took it literally and hardcoded every single year with individual if-else statements. The TODO comment "add more years before 2028 release" is the cherry on top—imagine the poor soul who has to maintain this in 2029, frantically adding else if (year == 2029) to the growing tower of conditional statements.
Nothing says "job security" quite like code that requires manual updates every January 1st. At least leap year calculations will be consistent... until they're not. Y2K walked so this could run.
AI
AWS
Agile
Algorithms
Android
Apple
Bash
C++
Csharp