Software Dependencies Explained: The Other Code Your Website Uses
Does every line of website code come from the same developer? Projects often rely on reusable packages maintained by other people.
1:47 · No narration: the video shows each step as text on screen, and every step is written out below, with buttons that jump the video to it.
Prefer YouTube? Watch this video on our YouTube channel (opens in a new tab).
The six points in the video
This is a silent video. The headings, explanations and labels below reproduce the information on screen.
-
Step 1: A dependency supplies other code
A project can use a package to provide a needed feature.
On-screen labels: Reusable package; Required feature; Project dependency.
-
Step 2: The package has an identity
Its name and version identify the intended component.
On-screen labels: Package name; Package version; Project declaration.
-
Step 3: Dependencies can have their own
One package may rely on additional packages in turn.
On-screen labels: Direct dependency; Further dependencies; Dependency tree.
-
Step 4: Development tools count too
Build tools and testing tools can be dependencies of the project.
On-screen labels: Build tooling; Testing tooling; Runtime code.
-
Step 5: Updates need review
Check maintenance, compatibility and relevant security information.
On-screen labels: Maintainer guidance; Release notes; Compatibility checks.
-
Step 6: Keep a reproducible project
Retain the dependency declarations and relevant lockfile for handover.
On-screen labels: Project declaration; Relevant lockfile; Setup instructions.
A practical check for your business
Maintain a useful list of important libraries and services the site depends on. Review update responsibilities and the impact of a failed dependency on actual visitor tasks.
Sources and further detail
Common questions
Does every line of website code come from the same developer?
Projects often rely on reusable packages maintained by other people. Know what the project uses and how it is maintained.
Go further
More video tips
All 205 videos →
What Is a Package Manager? Installing and Tracking Website Dependencies
Package managers, explained.
Semantic Versioning Explained: Major, Minor and Patch Releases
Read the software version.