Rzemiosło · The Craft
What is The CraftLevelsGet startedChapters Search Download PLEN
Back to home

Glossary

The doctrine’s jargon in plain words: what it is, why it matters, a real-life analogy and where on the site it appears.

ADR (decision record)

A short note: what we chose, why, and which alternatives we rejected (Architecture Decision Record).

Six months later nobody has to guess whether a decision was deliberate and whether it’s safe to change.

AI_README

A map file in every code directory: what’s here, what it’s for and what to watch out for — written for search.

The assistant finds the right file with one search instead of reading the whole directory.

API

An agreed way for two programs to talk to each other — one asks, the other answers in a set format.

Through an API your app connects to outside services (payments, maps, AI). Treat an API key like a password.

Like a service window at an office: you submit your request the right way and get an answer, without going into the back room.

Backup

A copy of your data saved earlier, which you return to when something goes wrong.

It’s the only way to undo a change to data — code comes back from git, data only from a backup.

Like taking a photo of a shelf before rearranging the books — if you slip up, you can put everything back.

Branch

A separate working version of the project where you change something on the side, without touching what already works.

On a branch you experiment safely; only what’s been checked reaches the main version.

Like a “to think over” copy of a document — you play with it freely while the original waits untouched.

Cache

A temporarily remembered result, so the same thing isn’t computed again on every request.

Speeds the app up, but can be a trap: a stale cache shows old data.

Like jotting the receipt total on a note instead of re-adding the whole basket every time.

Cherry-pick

Copying one chosen commit from one branch to another, without the rest of the changes.

It ships an urgent fix without the unfinished work next to it — but check the result, as it can pull in neighbouring hunks.

Commit

A saved, labelled point in the project’s history — a confirmation of a specific batch of changes.

Small, described commits make a history you can return to any working state from.

Like a save point in a game: at any moment you can return exactly to that spot.

Database swap

Replacing the whole production database with a new version, carrying over user accounts and data.

The hardest operation in The Craft — it has its own runbook and needs explicit consent.

Deploy

Releasing a new version of the app “live”, where real people use it.

It’s the moment a change reaches real people — which is why it happens only on an explicit “deploy”.

Like a play’s premiere: rehearsals are over, the curtain goes up and the audience is already watching.

Where it appears
and 33 more

Docker / container

Packaging an app with everything it needs so it runs the same on every computer.

Kills “works on my machine” — the same environment locally and on the server.

Like a takeaway meal in a box with a full set of cutlery — you unpack it anywhere and it’s ready, nothing missing.

Dry-run

A “dry” run — the script shows what it WOULD do but changes nothing.

You see the effects before executing; a data change happens only after deliberate confirmation.

Like trying on clothes before the till — you see the effect before paying for anything.

Endpoint

A single “address” in an API you send a request to for a specific thing (e.g. the list of orders).

Apps talk through endpoints — one endpoint = one function you expose.

Environment (dev / prod)

Separate places where the app runs: “dev” for safe tests, “prod” for real users.

Dev is a playground, prod is where real users are — the rules for each are completely different.

Like a test kitchen and a dining room in a restaurant — you experiment in the back and serve only the tried dish.

Framework

A ready-made skeleton with the basic parts of an app, which you build on instead of starting from scratch.

It saves work but adds a dependency and weight — the doctrine reaches for one only when the interaction needs it.

Like a prefab house in a raw state — the walls and wiring are there, you fit out the interior your way.

GDPR

The EU’s data-protection law — how you may collect, keep and delete users’ data.

It concerns every app with people’s data. Better to write in consents and retention from the start than pay fines later.

Like the rules for keeping someone else’s documents in a safe: you don’t show them to just anyone and you ask before you use them.

git worktree

A separate working copy of the same repository, so a second parallel session works in its own folder and doesn’t clash with the first.

Two sessions in one folder overwrite each other’s work; a separate working tree prevents it.

Like a second desk on the same project — each has their own surface and papers, so nobody rearranges the other’s documents.

Guard

A test that enforces a project rule (e.g. “every module is in the AI_README”) and stops the commit when it’s broken.

A rule without a guard is only a wish — a long session will break it in good faith.

hreflang

A tag that tells the search engine what language a page is in and where its versions in other languages are.

Without it a multilingual site confuses Google — the language versions “fight” over the same phrase.

Like flags next to the menu in a tourist restaurant — you see at once which card is in English and which in Polish.

Idempotency

A property of an operation you can run many times with the same result — no duplication.

Key for scripts and events: a re-run doesn’t break data. Like an “ON” switch.

Like a light switch marked “ON”: pressed once or five times, the light simply stays on.

Index (database)

A lookup in the database that makes searching instant instead of scanning everything in order.

The first move for slow queries — like an index at the back of a book instead of reading 400 pages.

Like the index at the back of a book — you look under a term instead of reading 400 pages for one sentence.

Maintenance window

A short, planned period when users see a “work in progress” page while the database or configuration changes behind it.

It guarantees the app never runs, even briefly, on half-changed data.

Merge

Combining the changes from one branch into another.

A merge brings in every commit from the source branch — other people’s too — so first you check what exactly comes in.

Migration (database)

A controlled change to the database layout — adding a column, a table or moving data — step by step.

Like a renovation to plan: rebuilding data in a set order so nothing “collapses”.

Like a flat renovation to plan: you move walls in a set order so nothing collapses.

N+1

A performance bug: the app queries the database 200 times instead of once, asking separately for each item.

The most common cause of a “laggy” list. Like 200 phone calls instead of one request for the whole list.

Like phoning the warehouse separately about every product, instead of asking once for the whole list.

Node.js

A runtime that runs JavaScript on the server, not just in the browser.

When the site is already in JavaScript, one language on server and browser keeps the project simple.

Open Graph (OG)

Tags that decide how a link looks when pasted into Facebook, LinkedIn or a messenger (image, title, description).

A good link card means more clicks — a bad one can show what you don’t want (e.g. a price).

origin (remote repo)

The default name of the remote repository (e.g. on GitHub) your copy syncs with.

The server deploys what’s in origin — work not pushed from your laptop simply won’t ship.

Plan mode

A mode where the assistant first reads and presents a plan but changes no files — execution comes only after your approval.

For wide or hard-to-undo work: you review the decision, not the diff. A good plan also says how you’ll check it worked.

Like an architect who shows the drawing before the crew drives the first nail — you make fixes on paper, not on a finished wall.

Preprod (staging)

A faithful copy of production with no real users, where you rehearse a deploy.

A migration that fails on preprod is an ordinary Tuesday; in production it’s an incident.

Push / pull

Push sends your commits to the remote repository; pull fetches changes from there into your copy.

A push is an “outward” action — in The Craft it needs explicit consent, like a deploy.

Python

A popular, readable programming language — The Craft’s default for scripts, data and the back end.

A proven default: lots of ready tools and libraries, easy to drive with AI.

Repository (repo)

A store of the whole project’s code together with its full history of changes — who changed what and when.

The repo is the project’s memory: code, documentation and change history in one place.

Like a binder of document versions, where every edit is labelled and can be restored.

Rollback

Reverting a change to the previous, working state — “Ctrl+Z” for a deployment.

When a new version breaks production, a rollback restores the previous one in seconds instead of fixing in a panic.

Like undoing a move in a game or an entry in a document with “undo” — you go back to the state before the slip.

Runbook

A written step-by-step guide for production operations, with numbered lessons from incidents.

The memory of outages can’t live in someone’s head — the next deploy starts by reading the runbook.

Scraping

Automatically gathering data from websites with a program instead of copying by hand.

Powerful for acquiring data, but it needs manners: respect others’ rules (robots.txt), don’t overload the server.

Slug

A readable, short part of a page address that describes its content in words instead of a mysterious number.

Better for humans and SEO; a stable slug doesn’t break links when things change.

Like a clear label on a folder, “lease-agreement”, instead of “document-42” — you know at once what’s inside.

Smoke test

A quick “does it even work” test right after a deploy — checks the most important paths (e.g. login).

Catches disasters in 30 seconds before a user sees them. A cheap way to sleep well after a deploy.

Snapshot

A saved state of data from a specific moment — e.g. a database copy or a file of computed statistics.

It speeds things up and keeps them safe, but is stale from the moment it’s taken — you need to know where fresh data comes from.

SQL

The query language for a database — the way you “ask” the database for data or change it.

The universal standard for talking to a database. A badly written query can bog down the whole app.

SQLite

The simplest database — the whole thing lives in one file, with no separate server.

A great default to start: zero configuration, easy backup (you copy the file). As you grow, you migrate up.

Watchdog

An independent monitor that checks by itself whether data is fresh / the app is alive, and alarms when something stalls.

For cyclical jobs measure the effect (age of the freshest record), not the job’s exit code — a green report can lie.

Like a smoke detector: it doesn’t cook for you, it just shouts when something starts to burn.