好词典

dependency

UK //dɪˈpendənsi//US //dɪˈpendənsi//

词源

源自晚期拉丁语 'dependentia',由 'dependere'(悬挂、依赖)和后缀 '-ency' 构成,15世纪进入英语。

noun

❶ 指某事物或人需要依靠另一事物或人才能存在或运作的状态,强调依赖关系。常用于描述国家、系统或个人之间的从属关系。

“The country reduced its dependency on foreign oil.”

(该国减少了对进口石油的依赖。)

“Teenagers often struggle with dependency on their parents.”

(青少年常常难以摆脱对父母的依赖。)

❶ 在计算机领域,指一个程序或模块需要其他程序或库才能正常运行的情况。

“Before installation, check all system dependencies.”

(安装前请检查所有系统依赖项。)

“The project manager listed all the library dependencies.”

(项目经理列出了所有库依赖关系。)

同义词:reliance, addiction, subordination, contingency

常见短语

dependency injection — 软件设计模式,指将依赖关系通过外部注入而非内部创建的方式实现,提高代码灵活性和可测试性。

“Dependency injection makes unit testing much easier.”

(依赖注入使单元测试变得更加容易。)

dependency ratio — 人口统计学指标,指非劳动年龄人口与劳动年龄人口的比率,反映社会抚养负担。

“The rising dependency ratio poses challenges for the pension system.”

(不断上升的抚养比对养老金体系构成挑战。)