How many library versions do you manage in your codebase?

0
7
Asked By TechieMcCodeface On

I'm trying to figure out how backward compatibility works with APIs that include libraries and packages—not just REST servers. If you're working with an older codebase along with newer code, how many external package versions do you need to import to keep the old modules functional while still benefiting from new features in the latest modules? This is quite crucial for me. Also, quick side question: do you guys use a bundler?

4 Answers

Answered By JavaWizard On

In my experience, I've never used more than one version of a library within the same package. Java and Maven enforce that restriction well. However, when we consider the entire software stack, well, you might end up with various versions due to technical debt and legacy code.

CoderNinja21 -

Exactly! Sometimes you work on big projects with tons of files and can't easily rewrite everything to match the updated libraries. Corporate pressure often means you can't tackle breaking changes, even if the newer versions offer better features.

Answered By LegacyCoder99 On

In a previous legacy application, we ended up with three different versions of the same third-party library—using the latest version but needing an older one for another library. Those compatibility issues only showed up at runtime, which made debugging a pain. We faced a similar situation with libraries like SharpZipLib and RestSharp a while back.

Answered By DevDilemma On

I had a situation recently where I had to manage three libraries with two different versions for multiple applications. It was a nightmare! We hit a wall with maintaining them. If you see that coming, take a day to address that tech debt before it gets overwhelming.

Answered By CodeGuru87 On

I usually stick to just one version of each library. The only exception was a project for a well-known international bank where they insisted on supporting .NET Framework 4.7. They had their version of the library, which has now become a unique case.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.