一点微不足道的思考:代码库究竟已经应该翻译成 Code base 还是 Code library

2025-08-11 11:45:01   世界杯足球场

一、引言

最近在阅读 《Mastering TypeScript 3》这本书的时候,读到了这么一句话:

We can take existing JavaScript, add a few TypeScript keywords here and there, and transform our code into a strongly-typed, object-oriented, syntax-checked code base.

原谅我拙劣的英语水平,但是我确实没有读懂 code base 的意思是什么,直到我去维基百科查了下: 如果你不想看这么长一段英文描述的话,直接看第一句话吧:

In software development, a codebase (or code base) refers to a whole collection of source code that is used to build a particular software system, application, or software component.

也就是说,在软件开发领域,code base 指代的是,用来构建指定的软件系统、应用程序、组件的源代码的集合。

我觉得也就是代码库的含义了。

那么问题来了,代码库,如果让我翻译,一定会下意识翻译成 Code library,那么到底该翻译成 Code base 还是 Code library 呢?

技术 | 第四代篦冷机的优化改造,提高熟料产量,降低出篦冷机熟料温度!
书信写作指南:格式规范与实用技巧