代码 (dàimǎ) — code; source code
HSK 5 | noun | code; source code; programming code
代码 (dàimǎ)
代码 refers to a set of instructions written in a programming language that a computer can execute, or more broadly, any system of coded symbols used for encoding information.
Meanings
- [noun] source code; programming code (instructions written for a computer to execute)
- [noun] code; coded symbols (a system of symbols representing information)
Example Sentences
程序员每天要编写大量代码,以实现软件的各项功能。 Chéngxùyuán měitiān yào biānxiě dàliàng dàimǎ, yǐ shíxiàn ruǎnjiàn de gè xiàng gōngnéng. Programmers write large amounts of code every day to implement the various functions of software.
这段代码存在一个严重的安全漏洞,黑客可以利用它入侵系统。 Zhè duàn dàimǎ cúnzài yī gè yánzhòng de ānquán lòudòng, hēikè kěyǐ lìyòng tā rùqīn xìtǒng. This piece of code has a serious security vulnerability that hackers can exploit to break into the system.
开源代码使开发者能够在他人的工作基础上继续创新。 Kāiyuán dàimǎ shǐ kāifāzhě nénggòu zài tārén de gōngzuò jīchǔ shàng jìxù chuàngxīn. Open-source code enables developers to continue innovating on the basis of others' work.
她花了整整一周时间调试代码,终于找到了导致程序崩溃的错误。 Tā huāle zhěngzhěng yī zhōu shíjiān tiáoshì dàimǎ, zhōngyú zhǎodàole dǎozhì chéngxù bēngkuì de cuòwù. She spent a full week debugging the code and finally found the error causing the program to crash.
人工智能系统的代码越来越复杂,普通人已经很难理解其运作原理。 Réngōng zhìnéng xìtǒng de dàimǎ yuèlái yuè fùzá, pǔtōngrén yǐjīng hěn nán lǐjiě qí yùnzuò yuánlǐ. The code of AI systems is becoming increasingly complex, and it is already very difficult for ordinary people to understand how they work.
学习编写代码已经成为许多学校的必修课,因为编程技能在未来非常重要。 Xuéxí biānxiě dàimǎ yǐjīng chéngwéi xǔduō xuéxiào de bìxiū kè, yīnwèi biānchéng jìnéng zài wèilái fēicháng zhòngyào. Learning to write code has become a required course in many schools because programming skills will be very important in the future.
Collocations
| Collocation | Meaning |
|---|---|
| 编写代码 | to write code |
| 源代码 | source code |
| 开源代码 | open-source code |
| 代码审查 | code review |
| 调试代码 | to debug code |
| 代码漏洞 | code vulnerability |
Usage Notes
代码 in its primary modern sense refers to computer programming code. It can also refer to coded systems in general (e.g., QR codes are sometimes called 二维码, not using 代码). In technology contexts, 代码 is the standard term for source code or programming code.
Related terms include 程序 (program), 软件 (software), 算法 (algorithm), and 编程 (programming). 代码 is central vocabulary for any discussion of software development, cybersecurity, or the technology industry.
Memory Hook
代 means "to represent/substitute" and 码 means "code/number" — 代码 is a system of symbols that "represents" instructions, i.e., code.