Login

Log in with one your accounts

Contribution

We are happy you want to contribute to DXKB. Please choose your preferred way

All Articles
Nov 11, 20193 min read

Updating the Dependencies

Failure to update dependencies makes your product increasingly difficult to maintain and it can bring security risks.

Why Updating the Dependencies Is Important

Updating dependencies should be a regular part of your job. Use our DX Scanner practice called DependeciesVersion to find out if the libraries you are using are updated.

What is a dependency? A dependency is something your product needs to function. It could be a plugin, a database, or an external library. Some dependencies that you use may need updates which you should check regularly. Otherwise, your product can malfunction.

Failure to update the dependencies will make your product hard to maintain and can lead to your developer's time being taken up by routine, meaningless work. A straightforward upgrade should not take more than just a few hours.

Dependencies UpdatesSource: Updating Dependencies Sucks

Upgrades can be released often, and keeping up with them can be challenging. Use tools for each library to automate this job:

Ready to put this knowledge into action?

Visit our website and learn how DX Heroes can help your business succeed.

Why Keep Dependencies Updated?

What are the reasons for updating the dependencies?

  • Your product can malfunction
  • You will not be able to use new features added in the latest versions
  • You may miss out on performance improvements provided by updates
  • Security issue fixes can be missed or delayed
  • Maintenance overheads of old versions could be reduced
  • Bug fixes are often contained in the new versions

Maintaining an application with a large codebase requires a lot of discipline, and having your dependencies up to date should be a top priority for your team and organization. Failure to make this a regular practice will slowly make your codebase more difficult to maintain, hindering your team’s productivity and satisfaction.

Problems the Updated Dependencies Solve

How to Keep Dependencies Updated

  1. Check out the new versions
    • Review the changelogs
    • How new is it? Is it sufficiently stable?
  2. Check the requirements
    • The new version may require new or expanded hardware or network resources.
  3. Plan the upgrade
    • Estimate the time - how long will it take?
    • Ensure you have a plan to roll back the changes in case of an upgrade failure.
    • Protect the current state of your product, and minimize disruption to business as usual processes.
  4. Log
    • Document your steps. Use a Logbook and write down the changes made by your team members. It can also be useful to establish best practice for upgrading other products.

Common Pitfalls of Updating Dependencies

  • The updates are so complex that they also require an update of other dependencies
  • Updating features instead of updating dependencies that seem less important or attractive
  • Rolling back to the previous version instead of fixing a crashed application
  • Trying to resolve version conflicts of dependency instead of focusing on keeping the product working as it used to

Resources for Updating the Dependencies

Was the article helpful?

Want to write for DXKB?

Feel free to contribute. People from DXKB community will be more than happy.

Avatar

Prokop Simek

Contribution

We are happy you want to contribute to DXKB. Please choose your preferred way