GLOSSARY

Glossary

50 terms that come up across this site, explained in everyday words. Click a topic name to see it in motion.

Algoritma

A clear sequence of steps to get a task done, like a recipe.

See: Algorithms, steps and input size (0.1)
API

The official door one program uses to ask another for something. The app on your phone uses an API to ask a server for data.

Array

A list of items stored in a row and numbered from 0, like numbered lockers.

See: Arrays and dynamic arrays (1.1)
Big-O

A way of saying how fast work grows as the data grows. O(n) means twice the data, twice the work.

See: Big-O (0.2)
Browser

The app you open websites with, such as Chrome, Safari or Firefox.

Bundle

The file of program code a browser downloads when you open a website.

See: Bundle splitting and tree shaking (F11)
Cache

A place to keep a copy of something expensive to produce, so next time it needn't be made again. Like jotting down a number you call often.

See: Caching and LRU caches (B4)
CDN

A network of servers in many cities holding copies of a site, so it's sent from the place nearest you.

See: CSR vs SSR vs SSG (F12)
Database

Where an app keeps its data, tidy and permanent: accounts, orders, messages.

See: Database indexes (B2)
DOM

The arrangement of every part of a web page (headings, buttons, images) inside the browser, shaped like a tree.

See: The DOM and virtual DOM diffing (F3)
Edge

A line joining two points in a graph, like a road between two towns.

See: Representing graphs (8.1)
Fungsi

A named set of steps that can be run again and again, like the "cook rice" button on a rice cooker.

Graph

Points joined by lines: towns and roads, people and friendships, pages and links.

See: Representing graphs (8.1)
Hash

Turning text into a number with a fixed formula, so the computer knows straight away which drawer to keep it in.

See: Hash functions (2.1)
Hash map

A chest of drawers where everything is filed by name, so it can be fetched almost instantly.

See: Hash maps and collisions (2.2)
Heap

An arrangement that always knows where the smallest (or largest) item is, like an emergency room that always knows who's most urgent.

See: Heaps and priority queues (7.1)
HTML

The language that lays out a web page's content: headings, paragraphs, images, buttons.

See: CSR vs SSR vs SSG (F12)
Index (database)

A sorted list behind a database table, like the index at the back of a book, so data can be found without reading it all.

See: Database indexes (B2)
JavaScript

The programming language that runs in the browser and makes web pages react when you click.

Linked list

A list where each item holds a clue to the next one, like a treasure hunt.

See: Linked lists (1.2)
Load balancer

A greeter at the front who spreads visitors over several servers, so none is overwhelmed.

See: Load balancers (B8)
Loop

Repeating the same steps for each item, for example "for every order, add up its total".

See: Algorithms, steps and input size (0.1)
Memoization

Writing down answers already worked out so the same question isn't worked out again.

See: Memoization (9.1)
Node

One point in a tree or graph, holding one value.

See: Trees and traversal (6.1)
O(1)

The work stays the same however much data there is. Like opening locker 7: straight there, no searching.

See: Big-O (0.2)
O(log n)

The work grows only a little as data grows a lot, because each step throws away half the possibilities. A million items take about 20 steps.

See: Linear search vs binary search (4.1)
O(n)

The work matches the amount of data: every item is looked at once.

See: Big-O (0.2)
O(n²)

The work grows very fast: twice the data, four times the work. Usually because every item is compared with every other item.

See: Big-O (0.2)
Pointer (penunjuk)

A note that points to another place in memory, like a home address.

See: Linked lists (1.2)
Query

A question sent to a database, such as "get every order belonging to user 42".

See: N+1 queries (B1)
Queue

A line: whoever arrives first is served first.

See: Queue and circular queue (1.5)
Race condition

A bug that happens when two processes change the same data at the same moment, so the result depends on who was quicker.

See: Transactions and race conditions (B11)
Rekursi

A function that solves a problem by calling itself on a smaller version of the problem.

See: Recursion and the call stack (3.1)
Render

Drawing or updating what's on screen from data.

See: Re-renders and memoization (F4)
Replica

A copy of a database that keeps following the main one, used to share the reading load.

See: Replication and eventual consistency (B13)
Request

A message an app sends to a server, such as "send me the product list". The server replies with a response.

Retry

Trying a failed or unanswered request again.

See: Idempotency and retries (B12)
Server

A computer that runs all the time in a data centre and serves requests from many users at once.

Shard

One slice of data too big for a single database, kept in a database of its own.

See: Sharding (B14)
Sorting

Putting data in order, for example smallest to largest or alphabetically.

See: Bubble, selection and insertion sort (4.3)
SQL

The language used to ask a database questions and give it instructions.

See: Database indexes (B2)
Stack

A pile: the last thing put on is the first taken off, like a stack of plates.

See: Stack (1.4)
State

The app's current situation, which can change, such as what's in the cart or which tab is open.

See: Re-renders and memoization (F4)
Thread

One line of work inside a program. One thread can only do one thing at a time.

See: The event loop (F1)
Timeout

A time limit for waiting. If no answer arrives in time, the request counts as failed.

See: Service dependencies and circuit breakers (B15)
Transaksi (transaction)

Several data changes that must all succeed, or all be undone. Never halfway.

See: Transactions and race conditions (B11)
Tree

Branching data like a family tree or the folders on your computer: one top, then branches.

See: Trees and traversal (6.1)
Variabel

A labelled box holding one value that can change, such as "total = 0".

Worker

A separate program that does jobs behind the scenes, like sending email, so users don't have to wait.

See: Message queues and background jobs (B10)