Computer Basics & Scratch Coding
Hardware overview, typing skills and visual coding with Scratch.
3 lessonsComputer Basics & CodingFree to enrol
Lessons
01
How Computers Work
Video: enrol to watchA computer takes input, processes it, stores it, and produces output. Everything else is detail on that pattern.
The main parts
- CPU: the processor, carrying out instructions. Its speed is measured in gigahertz
- RAM: temporary working memory, cleared when power is lost. This is why unsaved work disappears in a power cut
- Storage: the hard drive or SSD, keeping files permanently
- Motherboard: connects everything
- GPU: handles graphics, and increasingly other heavy calculation
- Power supply, and a cooling fan
RAM versus storage
The one learners most often confuse. RAM is the desk you work on - fast, small, cleared each day. Storage is the filing cabinet - slower, large, permanent. More RAM lets you run more at once; more storage lets you keep more files.
Input and output
Input: keyboard, mouse, microphone, camera, touchscreen. Output: monitor, speakers, printer. A touchscreen does both.
Hardware and software
Hardware is physical. Software is instructions. The operating system (Windows, macOS, Linux, Android) manages the hardware and runs your applications.
Binary
Computers store everything as 1s and 0s, because a circuit is either on or off. One binary digit is a bit; eight bits make a byte. Text, images, music and video are all ultimately numbers.
1024 bytes is a kilobyte, then megabyte, gigabyte, terabyte.
How a program runs
It loads from storage into RAM, the CPU fetches each instruction, decodes and executes it, billions of times a second.
Practice
Find out your device's CPU, RAM and storage capacity, and write down what each one does.
02
Keyboard & Typing Practice
Video: enrol to watchTouch typing means typing without looking at the keys. It is a genuinely life-long time saver, and the method matters more than the hours.
The home row
Left hand on A, S, D, F. Right hand on J, K, L, semicolon. Thumbs rest on the space bar.
F and J have small raised bumps so you can find the home position without looking. Fingers always return here after each key.
Finger assignments
Each finger covers a column. Left index takes F, G, R, T, V, B. Right index takes J, H, U, Y, M, N. Little fingers cover the outer keys and shift.
Following the assignment feels slow at first and is the whole point - it is what makes speed possible later.
Do not look
This is the hard rule, and the one everyone breaks. Looking at the keyboard feels faster today and prevents you ever becoming fast. Cover your hands if needed. Expect to be slower for the first two weeks.
Posture
Feet flat, back straight, wrists level rather than bent, screen at eye height, elbows roughly at right angles. Poor posture over years causes real injury.
Accuracy before speed
Typing fast with errors is slower overall, because correcting costs more than careful typing. Aim for 95% accuracy, then let speed grow by itself.
Realistic targets
Beginners 20 words per minute, average adults 40, proficient typists 60-80.
Practice
Fifteen minutes daily beats two hours weekly. Use a free typing tutor that drills specific weak keys rather than random text.
03
Coding with Scratch Blocks
Video: enrol to watchScratch teaches programming by snapping blocks together, so you learn the logic without fighting typing errors.
The screen
The stage (top right) is where your project runs. The sprite list sits beneath it. The block palette is on the left, sorted by colour, and the scripts area in the middle is where you build.
Sprites and the stage
A sprite is a character or object. The stage is the background. Each sprite has its own scripts.
The block categories
- Motion (blue): move, turn, go to
- Looks (purple): say, change costume, size
- Sound (pink)
- Events (yellow): when green flag clicked
- Control (orange): wait, repeat, if
- Sensing (light blue): touching, ask
- Operators (green): maths and comparison
- Variables (orange): store values
Every script starts with an event
Usually "when green flag clicked". Without an event block, nothing runs - the commonest beginner puzzle.
The three ideas that matter
Sequence: instructions run in order, top to bottom.
Loops: "repeat 10" or "forever" avoid copying a block twenty times. Loops are what make programs powerful rather than long.
Conditionals: "if touching edge, then turn around". The program makes a decision.
Variables
A variable stores something that changes - a score, a life count. Create one, then "change score by 1" when something happens.
Debugging
When it misbehaves, click blocks individually to see what each does. Add a "say" block to show a variable's value. Thinking about why it did what it did, rather than guessing at changes, is the real skill.
Practice
Make a sprite move with arrow keys, and add a score that increases when it touches another sprite.