codegen(常见于工程语境的口语/缩写)指代码生成:用工具或程序根据模板、模型、接口定义(如 API schema)、配置等,自动产出源代码(例如客户端 SDK、序列化代码、数据库访问层、样板代码等)。在特定语境下也可泛指“代码生成阶段/代码生成器”。
/ˈkoʊd dʒɛn/
The team uses codegen to create API clients automatically.
团队使用代码生成工具自动创建 API 客户端。
By integrating codegen into the build pipeline, we reduce repetitive boilerplate, but we also need strict reviews to keep the generated code consistent with security standards.
把代码生成集成到构建流水线后,我们减少了大量重复样板代码,但也需要严格审查,确保生成代码符合安全规范并保持一致性。
codegen 是 code(代码)+ gen(generation“生成”的缩写)组合而成的工程行话式写法,常见于编译器、工具链与软件工程实践中(如“run codegen”“codegen step”“codegen tool”)。