Bài 5/13 · 18 từ · đã thuộc 0
Programming fundamentals
Lập trình căn bản
thuật toán
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.
Thuật toán mới tìm ra tuyến giao hàng ngắn nhất chỉ trong vài giây.
Social media platforms use algorithms to decide which posts users see.
Các mạng xã hội dùng thuật toán để quyết định người dùng thấy bài đăng nào.
Đồng nghĩaprocedureformulaprocessmethodroutineTrái nghĩarandomnesschanceguessworkmã nguồn
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.
Chỉ lập trình viên cấp cao mới được sửa mã nguồn của hệ thống lõi.
The client asked for a copy of the source code when the project ended.
Khách hàng yêu cầu bản sao mã nguồn khi dự án kết thúc.
Đồng nghĩacodeprogram codeTrái nghĩaexecutablebinary codengôn ngữ lập trình
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 là ngôn ngữ lập trình chính mà nhóm dữ liệu của chúng tôi sử dụng.
The job requires experience in at least one object-oriented programming language.
Công việc yêu cầu kinh nghiệm với ít nhất một ngôn ngữ lập trình hướng đối tượng.
mã, code, mã lệnh
instructions written in a programming language that make a computer program work
She wrote the code for the payment module in just two days.
Cô ấy viết code cho mô-đun thanh toán chỉ trong hai ngày.
Good code is easy for other developers to read and change.
Code tốt là code mà các lập trình viên khác dễ đọc và dễ sửa.
cú pháp
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.
Chương trình không chạy được vì có lỗi cú pháp ở dòng 42.
Python syntax is simple, which makes it good for beginners.
Cú pháp Python đơn giản nên phù hợp với người mới học.
biến
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.
Hãy đặt tên biến rõ ràng để người khác hiểu code của bạn.
The bug happened because the variable was never set to zero.
Lỗi xảy ra vì biến đó chưa bao giờ được gán bằng 0.
kiểu dữ liệu
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.
Lỗi xuất hiện vì hàm cần một số nhưng lại nhận kiểu dữ liệu chuỗi.
Choose the right data type for each column in the table.
Hãy chọn đúng kiểu dữ liệu cho từng cột trong bảng.
hàm
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.
Tôi đã viết một hàm tính thuế cho mọi hóa đơn.
Break large blocks of code into smaller functions.
Hãy tách các khối code lớn thành những hàm nhỏ hơn.
vòng lặ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.
Script dùng một vòng lặp để gửi email cho từng khách hàng trong danh sách.
The app froze because of an infinite loop in the code.
Ứng dụng bị treo vì có vòng lặp vô hạn trong code.
câu lệnh điều kiện
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.
Một câu lệnh điều kiện kiểm tra người dùng đã đăng nhập chưa trước khi hiển thị trang.
Too many nested conditional statements make the code hard to test.
Quá nhiều câu lệnh điều kiện lồng nhau khiến code khó kiểm thử.
mảng
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.
Hàm trả về một mảng mã khách hàng.
Store the monthly totals in an array and loop through them.
Hãy lưu tổng theo tháng vào một mảng rồi duyệt qua bằng vòng lặp.
gỡ lỗi, debug
to find and remove errors in a computer program
I spent the whole morning debugging the login page.
Tôi mất cả buổi sáng để debug trang đăng nhập.
Use the logs to debug problems that only happen on the live server.
Hãy dùng log để gỡ lỗi những sự cố chỉ xảy ra trên máy chủ thật.
lỗi (phần mềm), 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.
Nhóm kiểm thử phát hiện một lỗi khiến một số khách hàng bị trừ tiền hai lần.
The update fixes several minor bugs in the reporting module.
Bản cập nhật sửa vài lỗi nhỏ trong mô-đun báo cáo.
script, tập lệnh
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.
Chúng tôi đã viết một script sao lưu cơ sở dữ liệu mỗi đêm.
The deployment script failed because a file path was wrong.
Script triển khai bị lỗi vì một đường dẫn tệp bị sai.
thư viện (lập trình)
a collection of ready-made code that programmers can reuse in their own programs
We used an open-source library to generate PDF reports.
Chúng tôi dùng một thư viện mã nguồn mở để tạo báo cáo PDF.
Check the licence before adding a third-party library to the project.
Hãy kiểm tra giấy phép trước khi thêm thư viện bên thứ ba vào dự án.
lập trình hướng đối tượng (OOP)
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 và C# là những ngôn ngữ phổ biến cho lập trình hướng đối tượng.
The interview included questions on object-oriented programming concepts like classes and inheritance.
Buổi phỏng vấn có câu hỏi về các khái niệm lập trình hướng đối tượng như lớp và kế thừa.
IDE, môi trường phát triển tích hợp
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.
Phần lớn lập trình viên của chúng tôi dùng Visual Studio Code làm IDE.
A good IDE highlights errors while you type.
Một IDE tốt sẽ đánh dấu lỗi ngay khi bạn gõ.
