V2EX  ›  英汉词典
Enqueued related words: Code Block

Block Code

释义 Definition

block code(多用于编程语境)指代码块/块状代码:一段作为整体执行或被视为一个单元的代码,通常由缩进、花括号 {}、关键字(如 begin...end)等界定。(也可泛指“按模块组织的代码”。)

发音 Pronunciation (IPA)

/blɑːk koʊd/

例句 Examples

I put the loop in a block code.
我把这个循环放进了一个代码块里。

To avoid repeating logic, she wrapped the validation steps into a single block code and called it from multiple functions.
为了避免重复逻辑,她把验证步骤封装成一个代码块,并在多个函数中调用。

词源 Etymology

block 源自古法语 bloc(“木块、块状物”),引申为“一个整体单元”;code 源自拉丁语 codex(“法典、书册”),后发展为“编码的规则/符号系统”。合起来在计算机语境中表示“作为一个单元组织与处理的一段代码”。

相关词 Related Words

文学与作品 Literary Works

  • Clean Code(Robert C. Martin)
  • Code Complete(Steve McConnell)
  • The Pragmatic Programmer(Andrew Hunt & David Thomas)
  • Structure and Interpretation of Computer Programs(Harold Abelson & Gerald Jay Sussman)
  • The C Programming Language(Brian W. Kernighan & Dennis M. Ritchie)
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   1779 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 17ms · UTC 11:10 · PVG 19:10 · LAX 03:10 · JFK 06:10
♥ Do have faith in what you're doing.