跳至主要內容

第 5/13 課 · 18 個單字 · 已學會 0 個

Programming fundamentals

程式設計基礎

  1. 1

    algorithm(noun)

    /ˈælɡərɪðəm/

    演算法

    a set of step-by-step rules that a computer follows to solve a problem or complete a task

    The new algorithm finds the shortest delivery route in seconds.

    這套新演算法能在幾秒內找出最短的配送路線。

    Social media platforms use algorithms to decide which posts users see.

    同義詞procedureformulaprocessmethodroutine
    反義詞randomnesschanceguesswork
  2. 2

    source code(noun)

    /sɔːrs kəʊd/

    原始碼, 源碼

    the original instructions of a program, written by programmers in a form people can read

    Only senior developers can change the source code of the core system.

    只有資深開發人員可以修改核心系統的原始碼。

    The client asked for a copy of the source code when the project ended.

    同義詞codeprogram code
    反義詞executablebinary code
  3. 3

    programming language(noun)

    /ˈprəʊɡræmɪŋ ˌlæŋɡwɪdʒ/

    程式語言

    a formal language with its own words and rules, such as Python or Java, used to write computer programs

    Python is the main programming language used by our data team.

    Python 是我們資料團隊主要使用的程式語言。

    The job requires experience in at least one object-oriented programming language.

  4. 4

    code(noun)

    /kəʊd/

    程式碼, 原始碼

    instructions written in a programming language that make a computer program work

    She wrote the code for the payment module in just two days.

    她只花了兩天就寫完付款模組的程式碼。

    Good code is easy for other developers to read and change.

  5. 5

    syntax(noun)

    /ˈsɪntæks/

    語法

    the rules for how words, symbols and punctuation must be written in a programming language

    The program will not run because there is a syntax error on line 42.

    程式無法執行,因為第 42 行有語法錯誤。

    Python syntax is simple, which makes it good for beginners.

  6. 6

    variable(noun)

    /ˈveəriəbl/

    變數

    a named place in a program that stores a value which can change while the program runs

    Give each variable a clear name so others understand your code.

    請為每個變數取一個清楚的名稱,讓其他人能看懂你的程式碼。

    The bug happened because the variable was never set to zero.

  7. 7

    data type(noun)

    /ˈdeɪtə taɪp/

    資料型別, 資料類型

    the kind of value a variable can hold, such as a number, text or true/false

    The error appeared because the function expected a number but received a text data type.

    出現錯誤是因為函式預期接收數字,卻收到文字型別的資料。

    Choose the right data type for each column in the table.

  8. 8

    function(noun)

    /ˈfʌŋkʃn/

    函式, 函數

    a named block of code that performs a particular task and can be used many times

    I wrote a function that calculates tax for every invoice.

    我寫了一個函式,用來計算每張發票的稅額。

    Break large blocks of code into smaller functions.

  9. 9

    loop(noun)

    /luːp/

    迴圈

    a part of a program that repeats the same instructions until a condition is met

    The script uses a loop to send an email to each customer on the list.

    這個腳本使用迴圈,寄電子郵件給名單上的每位客戶。

    The app froze because of an infinite loop in the code.

  10. 10

    conditional statement(noun)

    /kənˈdɪʃənl ˈsteɪtmənt/

    條件陳述式, 條件敘述

    a programming instruction, such as if/else, that runs different code depending on whether a condition is true

    A conditional statement checks whether the user is logged in before showing the page.

    條件陳述式會在顯示頁面之前檢查使用者是否已登入。

    Too many nested conditional statements make the code hard to test.

  11. 11

    array(noun)

    /əˈreɪ/

    陣列

    a data structure that stores a list of values of the same type in a fixed order

    The function returns an array of customer IDs.

    這個函式會回傳一個客戶 ID 的陣列。

    Store the monthly totals in an array and loop through them.

  12. 12

    compile(verb)

    /kəmˈpaɪl/

    編譯

    to change source code into a form that a computer can run

    The project takes about five minutes to compile.

    這個專案大約需要五分鐘來編譯。

    The code compiled successfully, but it crashed during testing.

  13. 13

    debug(verb)

    /ˌdiːˈbʌɡ/

    除錯, 偵錯

    to find and remove errors in a computer program

    I spent the whole morning debugging the login page.

    我花了整個早上為登入頁面除錯。

    Use the logs to debug problems that only happen on the live server.

  14. 14

    bug(noun)

    /bʌɡ/

    程式錯誤, 臭蟲, Bug

    a mistake in a program that makes it behave in a wrong or unexpected way

    Testers found a bug that charged some customers twice.

    測試人員發現了一個會讓部分客戶被重複扣款的程式錯誤。

    The update fixes several minor bugs in the reporting module.

  15. 15

    script(noun)

    /skrɪpt/

    腳本, 指令碼

    a short program that automates a task, often written in a language such as Python or Bash

    We wrote a script that backs up the database every night.

    我們寫了一個腳本,每晚備份資料庫。

    The deployment script failed because a file path was wrong.

  16. 16

    library(noun)

    /ˈlaɪbrəri/

    函式庫, 程式庫

    a collection of ready-made code that programmers can reuse in their own programs

    We used an open-source library to generate PDF reports.

    我們使用了一個開源函式庫來產生 PDF 報表。

    Check the licence before adding a third-party library to the project.

  17. 17

    object-oriented programming(noun)

    /ˌɒbdʒɪkt ˈɔːrientɪd ˈprəʊɡræmɪŋ/

    物件導向程式設計, 物件導向程式

    a style of programming that organizes code into objects that contain both data and functions

    Java and C# are popular languages for object-oriented programming.

    Java 和 C# 是物件導向程式設計中很受歡迎的語言。

    The interview included questions on object-oriented programming concepts like classes and inheritance.

  18. 18

    IDE(abbreviation)

    /ˌaɪ diː ˈiː/

    整合開發環境, IDE

    integrated development environment: a software application with tools for writing, testing and debugging code

    Most of our developers use Visual Studio Code as their IDE.

    我們大多數的開發人員都使用 Visual Studio Code 作為整合開發環境。

    A good IDE highlights errors while you type.