What is SHA-256? It is a hash function: it takes any input, from three letters to a whole game file, and turns it into a fixed 256-bit fingerprint, usually written as 64 hexadecimal characters. The same input always…
How computers work
64 posts
Published from 9 Oct 2026 to 6 Nov 2026.
How computers work is the study of how machines store data and follow instructions, from electronic circuits up to the programs people use.
At the bottom are transistors, tiny switches that are either on or off. Those two states stand for the binary digits one and zero, and every number, letter, image and sound inside the machine is stored as a pattern of them. Transistors are wired into logic gates, and gates are combined into circuits that can add, compare and remember values.
The main parts work together in a simple cycle. The processor fetches an instruction from memory, works out what it means, carries it out, and moves on to the next one, an enormous number of times each second. Memory holds the programs and data in use and is cleared when power is lost, while storage such as a solid state drive keeps files for the long term. Input and output devices, from keyboards to screens and network links, connect the machine to people and to other machines. System software sits between the hardware and the programs, sharing out the processor and memory among them.
Knowing these basics makes technology less mysterious and more useful. It helps programmers write faster and safer code, helps anyone work out why a device is slow or full, and gives a grounding for judging claims about security, privacy and artificial intelligence, all of which rest on the same simple building blocks.
Keyboard focus is the reason a browser game asks you to click it before your keys work. A web page holds many things that could use a key press: the page's own scrolling, links, buttons, a text box and the game. The…
Cache busting is giving a file a new address every time its content changes, usually by putting a version number or a hash in its name or after a ?v=. Browsers keep files by address. So a site can tell browsers to keep…
A loading progress bar knows how far along it is by doing one sum: work done divided by total work. In a browser the work is usually bytes, and the total comes from the server, which states each file's size before…
Is it a touch screen or mouse? A web page cannot see your hands, so it asks the browser. The browser can answer four slightly different questions: what the main input is, whether any input is a finger, how many touch…
What is device pixel ratio? It is the number of a screen's physical pixels the browser uses to draw one CSS pixel. A classic desktop monitor has a ratio of 1. Retina laptops have 2, and many phones have more. If your…
What is WebAssembly? It is a compact binary format for code, which your browser checks and runs at close to the speed of a program installed on your computer. Developers write a game in a language such as C++, C# or…
What is the safe area on a phone screen? It is the part of the display that no notch, camera hole or rounded corner can cover, the rectangle where anything you place is fully visible. Web pages need to know about it,…
What is lazy loading? It is a way of building a web page so that its heavy files load only when someone needs them, not the moment the page opens. It is also why a web game often loads only when you press Play: the page…
What happens to a browser game when you switch tabs? In most cases the browser slows it down or stops it. A hidden tab gets fewer animation frames (often none), its timers run less often, and the game waits until you…
A glow effect in 2D games is a soft patch of light drawn behind or around a sprite so that it looks bright, hot, or charged with energy. If you are asking what a glow effect in 2D games is, the short answer is this: it…
Texture clamp vs repeat comes down to one question: what should the graphics card read when a texture coordinate lands outside the image? Repeat wraps the coordinate around, so the image tiles. Clamp to edge pins it to…
If you have ever scaled up a tiny sprite and watched it turn to mush, you have met the problem this post solves. So, what is point filtering in graphics? It is a texture sampling mode that picks the single nearest texel…
What is a weighted random choice? It is a random pick where the odds favor one outcome over another. Instead of every option having the same chance, each option gets a number called a weight, and a bigger weight means a…
What is a queue in programming? It is a list where the first item you put in is the first item you take out. Think of people in a line at a shop: whoever joined first is served first. This post shows how a queue works,…
What is a sorted set? It is a collection that keeps two promises at once: it never holds the same value twice, and it always keeps its values in order. You can add a value, take one out, and read the smallest or largest…
What is a random seed in programming? It is a starting number you give a random number generator. Give it the same number and it produces the same "random" sequence every time. That idea is behind the phrase same seed,…
If you have ever wondered what is a 2D array in programming, the short answer is a grid of values you reach with two numbers: a row and a column. This guide covers rows and columns of tiles, how to create one, how to…
What is a tuple in code? It is a small, fixed group of values kept together as one thing. The simplest tuple holds two values, like the row and column of a tile, and the idea reaches from Python to C#. This post shows…
What is a binary heap? It is a tree of values, stored in a plain array, that keeps the smallest value (or the largest) at the front. You can read that value at once, and you can add or remove values quickly. That makes…
If you have seen the phrase in a coding course and wondered what is a priority queue?, the short answer is this: it is a collection where the next item out is always the most important one, not the oldest one. You put…
Delta time in games is the number of seconds that passed between the previous frame and the current one. You multiply your movement and timers by it, so the game runs at the same speed on a fast computer, a slow phone,…
If you are asking what is Dijkstra's algorithm, the short answer is this: it is a method for finding the cheapest path from one starting point to every other point in a weighted graph. "Cheapest" can mean shortest…
What is a unit test in programming? It is a small piece of code that runs one other small piece of code, the unit, and checks that it gives the answer you expect. The unit is usually a single function or method. The test…
If you are asking what is breadth-first search in programming?, the short answer is this: it is a way to explore a graph or a grid by visiting everything one step away first, then everything two steps away, then three,…
If you have asked yourself "what is memoization in programming?", the short answer is this: memoization is a way to make a function faster by remembering the answers it has already worked out. The first time you call the…
Hexadecimal, or hex, is a way of writing numbers with 16 symbols instead of 10: the hex digits 0 to 9 and A to F. If you have ever seen a color like #1ED678 or a memory address like 0x7FFE and wondered what is…
Powers of two in computing are the numbers you get by doubling again and again: 2, 4, 8, 16, 32, 64, 128, 256 and on to 1024. Computers use them because a computer stores everything as bits, and each extra bit doubles…
What is integer overflow? It is what happens when a calculation makes a whole number too big, or too small, for the space a program set aside to store it. The number does not grow to fit. Depending on the language and…
A lookup table in programming is a list of answers you store ahead of time, so your code can read a result by its position instead of working it out. You hand it a number, and it hands back whatever sits at that spot.…
Every other post on How computers work
- What Are Bitwise Operators in Programming? AND, OR, XOR
- What Is an Enum in Programming? Names, Numbers and Game Code
- What Does the Alpha Channel Do in an Image? A Plain Guide
- Computer Textures: What Is a Texture in Graphics?
- What Is a Bit in a Computer? One 0 or 1, Explained
- What Is Pixel Art in Video Games? A Simple Guide
- How Does Enemy AI Work in Video Games? A Simple Guide
- How Does a Game Loop Work? Input, Update, Render Explained
- What Is a Sprite in Gaming? Small 2D Pictures in Video Games
- What Is Collision Detection in Video Games? A Simple Guide
- What is a tile map in 2D video games? A plain guide
- What Does a CPU Scheduler Do in an Operating System?
- How do video games make random numbers?
- What is pathfinding? How game enemies find their way
- What is procedural generation in video games?
- What is chiptune music and how is it made?
- What is WebGL? How games run in a web browser
- Computer memory vs storage: what is the difference?
- What Are Computer Chips Made Of? Why It Is Silicon
- How does liquid cooling work? A PC cooling guide
- Parts of a Circuit Board: The Lines, Layers and Chips
- What is a load balancer? Meaning, how it works, an example
- What Is Clock Speed? CPU Clock Rate and GHz Explained
- Is Overclocking Safe? What It Does to a CPU or GPU
- CPU Pipeline Explained: What Is Instruction Pipelining?
- What is a CPU core? Cores and threads explained
- What is RAID? RAID 0, RAID 1, RAID 5 and RAID 6 explained
- What is a breakpoint in debugging?
- What is garbage collection in programming?
- Thermal Throttling: What It Is and Why It Slows Your PC
- What is multithreading? Threads explained in plain words
- What is a data bus in a computer?
- What does a kernel do in an operating system?
- How a CPU cache works: the processor's fast memory