codegen(常用于技术语境)指“代码生成”:通过工具或程序自动生成源代码(如 API 客户端、数据模型、序列化代码、脚手架代码等),以减少重复劳动并降低人为错误。也常作为 code generation 的口语/缩写用法。
/ˈkoʊdʒɛn/
The project uses codegen to create API clients automatically.
这个项目使用代码生成来自动创建 API 客户端。
By adding codegen to the build process, the team minimized boilerplate and kept the data models consistent across services.
通过把代码生成集成进构建流程,团队减少了样板代码,并让各个服务之间的数据模型保持一致。
来自 code(代码)+ gen(generation“生成”的缩写)。在工程实践中常用作名词,表示“代码生成工具/步骤/机制”,属于软件开发领域的行话。