Alister Education / Computer Education / Programming Basics
COMPUTER EDUCATION · LESSON 13

Programming Basics

Learn the foundations of programming, algorithms, variables, conditions, loops, functions and beginner projects.

BeginnerProgramming8 min
CPUfetch • decode • executeDATARESULT

What is programming?

Programming is the process of writing instructions that a computer can execute to perform a task or solve a problem.

Algorithm first

An algorithm is a step-by-step method for solving a problem. Before writing code, it is often useful to describe the solution in plain language.

Example: Find the larger of two numbers
1. Read number A.
2. Read number B.
3. Compare A and B.
4. Display the larger number.

Programming building blocks

Variables

Named places used to hold values.

Conditions

Let a program make decisions, such as if something is true.

Loops

Repeat a block of instructions.

Functions

Reusable blocks of code that perform a defined task.

Languages

Python, JavaScript, Java, C, C++ and many other languages are used for different purposes. The language is a tool; the important skill is learning how to break a problem into clear steps.

Start with practice

Good beginner projects include a calculator, quiz, number guessing game, unit converter or simple webpage. Build small projects, test them, find errors and improve them.