Dependency
Software, code, or a package that another project needs in order to work.
What is it?
A dependency is something your code relies on, such as a package, database client, or service.
Software, code, or a package that another project needs in order to work.
Think of it like...
A dependency is something your code relies on, such as a package, database client, or service.
What does it do?
Share reusable code
Connect components
Where is it used?
Example
A route depends on a database client to load an order.
Route → Database Client → Order
How it connects
Do Not Confuse
Dependency
A requirement that another project or component needs in order to work.
Configuration
Describes how to use or run the software.
A dependency is a requirement; configuration describes how to use it.
Topic Glossary
| ENGLISH TERM | 中文 | SIMPLE ENGLISH | 中文小白理解 |
|---|---|---|---|
| Dependency | 依赖 | Software, code, or a package that another project needs in order to work. | 一个项目要正常运行所需要的软件、代码或软件包。 |
| Package | 软件包 | A bundle of reusable code. | 可以安装并重复使用的一组代码。 |
| Database Client | 数据库客户端 | Software that lets an application connect to a database. | 让应用能够连接数据库的软件。 |
| Service | 服务 | A component that provides a capability to another component. | 为其他组件提供某种能力的程序部分。 |
| Configuration | 配置 | Settings that describe how software should run. | 用来说明软件应该如何运行的一组设置。 |
| Capability | 能力 | Something a component can provide or do. | 一个组件能够提供或完成的功能。 |
What to Remember
A dependency is something your code relies on.
A dependency can provide capabilities, share reusable code, or connect components.
A route can depend on a database client to load an order.