Pelajaran 5/13 · 18 perkataan · 0 sudah dipelajari
Programming fundamentals
Asas pengaturcaraan
algoritma
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.
Algoritma baharu itu menemukan laluan penghantaran yang paling pendek dalam beberapa saat.
Social media platforms use algorithms to decide which posts users see.
SinonimprocedureformulaprocessmethodroutineAntonimrandomnesschanceguessworkkod sumber
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.
Hanya pembangun kanan yang boleh mengubah kod sumber sistem teras itu.
The client asked for a copy of the source code when the project ended.
Sinonimcodeprogram codeAntonimexecutablebinary codebahasa pengaturcaraan
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 ialah bahasa pengaturcaraan utama yang digunakan oleh pasukan data kami.
The job requires experience in at least one object-oriented programming language.
kod, kod atur cara
instructions written in a programming language that make a computer program work
She wrote the code for the payment module in just two days.
Dia menulis kod untuk modul pembayaran itu dalam masa dua hari sahaja.
Good code is easy for other developers to read and change.
sintaks
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.
Atur cara itu tidak akan berjalan kerana terdapat ralat sintaks pada baris 42.
Python syntax is simple, which makes it good for beginners.
pemboleh ubah
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.
Berikan setiap pemboleh ubah nama yang jelas supaya orang lain memahami kod anda.
The bug happened because the variable was never set to zero.
jenis data
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.
Ralat itu muncul kerana fungsi menjangkakan nombor tetapi menerima jenis data teks.
Choose the right data type for each column in the table.
gelung
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.
Skrip itu menggunakan gelung untuk menghantar e-mel kepada setiap pelanggan dalam senarai.
The app froze because of an infinite loop in the code.
penyataan bersyarat, pernyataan bersyarat
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.
Penyataan bersyarat memeriksa sama ada pengguna telah log masuk sebelum memaparkan halaman.
Too many nested conditional statements make the code hard to test.
skrip
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.
Kami menulis skrip yang membuat sandaran pangkalan data setiap malam.
The deployment script failed because a file path was wrong.
pustaka, perpustakaan kod
a collection of ready-made code that programmers can reuse in their own programs
We used an open-source library to generate PDF reports.
Kami menggunakan pustaka sumber terbuka untuk menjana laporan PDF.
Check the licence before adding a third-party library to the project.
pengaturcaraan berorientasikan objek, 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 dan C# ialah bahasa yang popular untuk pengaturcaraan berorientasikan objek.
The interview included questions on object-oriented programming concepts like classes and inheritance.
IDE, persekitaran pembangunan bersepadu
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.
Kebanyakan pembangun kami menggunakan Visual Studio Code sebagai IDE mereka.
A good IDE highlights errors while you type.
