一、引言
最近在阅读 《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
指代的是,用来构建指定的软件系统、应用程序、组件的源代码的集合。
我觉得也就是代码库的含义了。
那么问题来了,代码库,如果让我翻译,一定会下意识翻译成