2 ms·
Sometimes code is written in younger languages that are still maturing. Javascript, React, PHP, the Android SDK, CSS, etc. are very different today than 10 year
by solardev 4y ago
Sometimes code is written in younger languages that are still maturing. Javascript, React, PHP, the Android SDK, CSS, etc. are very different today than 10 years ago.
A codebase from that era will be harder to maintain, and get worse over time, because they use language features that have either fallen out of favor or sometimes been outright deprecated. It's legacy code that has a finite lifespan, and usually the longer you wait the harder it will be to eventually upgrade.
You don't have to be bleeding edge all the time, but sometimes it really is quicker, safer, cheaper, better just to rewrite from scratch using modern practices. Especially if the old code was poorly documented and or tested or relied on idiosyncratic nonstandard code that kept trying to reinvent the wheel.
It's tech debt when there is some identifiable reason to upgrade it or rewrite it, but that work for whatever reason was postponed and deprioritized. When enough of that builds up, the foundation of your codebase is weak and new features and bandaids begin to add more debt than they fix, if only because they perpetuate existing problems and scale them up across the codebase.