Skip to content
Security·Intermediate·Conceptual·1 min read

Why should adding a dependency be a reviewed decision?

Short interview answer

Each dependency adds code you now ship and maintain, plus its own transitive tree, plus its maintainers as people you implicitly trust. For small utilities the cost of a dependency — supply-chain surface, bundle size, update burden — can exceed the cost of writing the few lines yourself.

Key takeaway

Explain the underlying mental model clearly, then support it with a concrete example and its trade-offs.

← Back to Dependency and supply-chain security

Related questions