V2EX  ›  英汉词典

Codegen

Definition / 释义

codegen(常见于工程语境的口语/缩写)指代码生成:用工具或程序根据模板、模型、接口定义(如 API schema)、配置等,自动产出源代码(例如客户端 SDK、序列化代码、数据库访问层、样板代码等)。在特定语境下也可泛指“代码生成阶段/代码生成器”。

Pronunciation / 发音

/ˈkoʊd dʒɛn/

Examples / 例句

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.
把代码生成集成到构建流水线后,我们减少了大量重复样板代码,但也需要严格审查,确保生成代码符合安全规范并保持一致性。

Etymology / 词源

codegencode(代码)+ gen(generation“生成”的缩写)组合而成的工程行话式写法,常见于编译器、工具链与软件工程实践中(如“run codegen”“codegen step”“codegen tool”)。

Related Words / 相关词

Literary Works / 文学与著作示例

  • Compilers: Principles, Techniques, and Tools(《编译原理》,“代码生成(code generation)”是核心章节主题,工程语境中常简写为 codegen)
  • Engineering a Compiler(《编译器工程》:讨论从中间表示到目标代码的生成过程)
  • Modern Compiler Implementation in ML/C/Java(《现代编译器实现》系列:多处涉及 code generation 的实现思路与示例)
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   823 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 12ms · UTC 22:59 · PVG 06:59 · LAX 14:59 · JFK 17:59
♥ Do have faith in what you're doing.