8

第八章

言葉を
覚えよう

ものを作るための語彙 —
コードじゃなく、名詞と動詞だけ。

コーディングエージェントと一緒に何かを作ろうとしている。エージェントは「デプロイ」「エンドポイント」「コンポーネント」「スキーマ」といった言葉を使ってくる。これらの言葉が不透明だと、迷子になる。作れないからじゃなく、ディレクションできないからだ。この章はそのデコーダーリングを渡す。コーディングの方法じゃない。ものを作るための言葉の話し方だ。

車の運転で考えてみよう。内燃エンジンもトランスミッション比もブレーキ液の圧力も理解する必要はない。知るべきなのは、アクセル、ブレーキ、ハンドル、ミラー。実装じゃなく操縦の語彙だ。

スタック:デコーダーリング

すべてのアプリ、Instagramからシンプルなタスクリストまで、4つのレイヤーから構成されている。開発者はこれを「スタック」と呼ぶ。全体像を解説しよう。

フロントエンド

人が見て触れるもの。ボタン、テキスト、画像、アニメーション。レストランで言えばダイニングルーム。

バックエンド

裏側のロジック。リクエストを処理し、パスワードを確認し、メールを送る。キッチンだ。

データベース

アプリが物事を記憶する場所。ユーザーアカウント、投稿、設定。パントリーとレシピブックだ。

デプロイメント

インターネット上に置く方法。ホスティング、ドメイン、公開。レストランの扉を開けることだ。

以上。今まで使ったすべてのアプリは、この4つのレイヤーの組み合わせだ。コーディングエージェントが「バックエンドをセットアップする」と言ったら、「裏側のロジックを書く」という意味だ。「デプロイしよう」と言ったら、「インターネット上に置こう」という意味だ。これらのレイヤーがどう動くかを知る必要はない。存在することと、何のためのものかを知っていればいい。

エージェントは家庭教師でもある

誰も教えてくれないことがある。コーディングエージェントは同時に君の先生でもある。「npm」の意味がわからない? 聞けばいい。エラーメッセージが理解できない? 貼り付けて「開発者じゃない人にわかるように説明して」と言えばいい。エージェントがなぜReactを選んだか知りたい? 聞けばいい。わかりやすい言葉で、ステップごとに、何度でも説明してくれる。

最初の5分

コーディングツールを開こう。プロジェクトを普通の言葉で説明する。「エクササイズを記録して、進捗を確認できるワークアウトトラッカーを作りたい。」エージェントは確認の質問をし、スタックを提案し、構築を始める。君の最初の仕事は、エージェントの質問に答え何が作られているか見守ることだ。

ウェブアプリの4つのレイヤーを探索しよう。クリックして語彙を学び、テストしてみよう。

The Stack Decoder

Click a layer to explore its vocabulary

The frontend is everything a user interacts with — buttons, text, images, forms, animations. It runs in the browser on the user's device.

Think of a restaurant. The frontend is the dining room — the menu, the tables, the decor. It's what customers experience.

Nouns (the things)
Component

A reusable piece of the interface, like a button or a card.

ReactVueSvelte
Page

A single screen or view in your app.

Home pageSettings pageProfile page
Style

How things look — colors, fonts, spacing, layout.

CSSTailwindSass
State

Data that can change — like whether a menu is open or a form field is filled.

Dark mode on/offItem count in cartCurrent tab
Verbs (the actions)
RenderDisplay something on screen. When a page renders, it becomes visible.
NavigateMove from one page to another.
Handle eventsReact to user actions like clicks, typing, or scrolling.

The backend is the server-side code that processes requests, applies business logic, and communicates with the database. Users never see it directly.

The backend is the kitchen. Orders come in, the kitchen prepares them, and sends out the finished dish. Customers don't see the kitchen, but nothing works without it.

Nouns (the things)
Server

A computer that listens for requests and sends back responses.

Node.jsPython/FlaskGo
API

A set of rules for how the frontend talks to the backend. Like a waiter taking orders.

REST APIGraphQLtRPC
Endpoint

A specific URL the frontend can call to get or send data.

/api/users/api/login/api/posts
Authentication

Verifying who a user is — login systems, passwords, sessions.

JWT tokensOAuthCookies
Verbs (the actions)
FetchRequest data from the backend. "The app fetches your profile from the server."
ProcessApply logic to data — calculate, validate, transform.
AuthorizeCheck if a user has permission to do something.

The database stores all the persistent data — user accounts, posts, settings, anything that needs to survive a page refresh or server restart.

The database is the pantry and the recipe book. It stores all the ingredients (data) and keeps them organized so the kitchen (backend) can find them fast.

Nouns (the things)
Table

A structured collection of data, like a spreadsheet. Each row is a record.

Users tablePosts tableOrders table
Schema

The blueprint for your data — what fields exist and what type of data each holds.

name: textage: numbercreated_at: date
Query

A request to find, add, update, or delete data in the database.

SELECT * FROM usersINSERT INTO postsDELETE FROM comments
Migration

A change to your database structure — like adding a new column to a table.

Add email fieldCreate orders tableRemove old column
Verbs (the actions)
StoreSave data so it persists. "Store the user's preferences in the database."
QueryAsk the database for specific data. "Query all users who signed up today."
MigrateUpdate the database structure without losing existing data.

Deployment is the process of taking your app from your computer and putting it on the internet where anyone can use it. It includes hosting, domains, and keeping things running.

Deployment is opening the restaurant. You've built the dining room, hired the kitchen staff, stocked the pantry — now you unlock the front door and put up a sign.

Nouns (the things)
Hosting

A service that runs your app on the internet 24/7.

VercelNetlifyRailwayFly.io
Domain

Your app's address on the internet — the URL people type to find you.

myapp.comcool-project.vercel.app
Environment Variables

Secret settings (like API keys) stored outside your code so they stay private.

API_KEY=abc123DATABASE_URL=...
Build

The process of converting your source code into optimized files ready to serve.

npm run buildProduction buildStatic export
Verbs (the actions)
DeployPush your app to the internet. "Deploy to Vercel" means put it live.
BuildPrepare your code for production — optimize, bundle, compress.
MonitorWatch your app for errors, slowdowns, or crashes after it's live.
Share this course
エンジンの仕組みを知る必要はない。運転の仕方を知っていればいい。

言葉を知った。アイデアもある。さあ、コーディングエージェントと一緒に実際に作る番だ。次は、ビルドループの技術 — イテレーション、評価、壊れたときにどうするか。

Complexity Score

New tool unlocked!