code
“Code” 是一个名词,它有很多含义,最常见的可能是作为“代码”或“编码”。它也可以指代某种“规范”或“密码”。但在不同的语境中,“code”也可能有其它含义,需要结合上下文理解。
- I’m trying to debug the code.(我正在尝试调试这份代码。)
- It’s against the code of conduct.(这违反了行为规范。)
- He tapped out a code on the door to signal his presence.(他在门上敲出一种代码来表示他在那里。)
“Code” 来自于拉丁文 “codex”,意思是”书”,“表”。我们可以看到这个词语在一些其他单词中,比如 “decode(解码)”,“encode(编码)“,它们都与代码或编码有关。
“Code” 是一个简单的词,没有词缀。但是,如果我们加上前缀 “en-” 会形成 “encode(编码)“,加上 “de-” 会形成 “decode(解码)“。
发展历史和文化背景
Section titled “发展历史和文化背景”“Code” 这个词在古罗马法律中,有一部非常有名的律法叫做 “Code of Justinian(查士丁尼法典)“,这应该就是 “code” 这个词最早的用法之一。但当代最常见的用法应该是计算机行业中的 “code(代码)“。
“Code” 的复数形式是 “codes”。作为动词时,“coding” 表示正在编码,“coded” 表示已经编码。
你可以将 “Code” 与 “Coding” 或 “Encode” “Decode” 这样的词联系在一起,这样当你想到其中一个词的时候,其它的词就会自然而然的跳进你的脑海。
John is a software engineer, and he spends most of his day in front of a computer coding. His code is like a virtual building block, constructing elaborate systems unseen to the naked eye. (约翰是一名软件工程师,他大部分时间都在电脑前编程。他的代码就像虚拟的积木,构筑着肉眼看不见的复杂系统。)