8

الفصل الثامن

تحدث
اللغة

مفردات البناء —
ليس كودًا، فقط الأسماء والأفعال.

أنت على وشك الجلوس مع وكيل برمجة وبناء شيء. سيستخدم كلمات مثل "deploy" و"endpoint" و"component" و"schema". إذا كانت هذه الكلمات غامضة، ستشعر بالضياع — ليس لأنك لا تستطيع البناء، بل لأنك لا تستطيع التوجيه. هذا الفصل يعطيك حلقة فك التشفير. ليس كيف تبرمج. بل كيف تتحدث لغة البناء.

فكر فيها مثل قيادة السيارة. لا تحتاج أن تفهم محركات الاحتراق الداخلي، أو نسب نقل الحركة، أو ضغط سائل الفرامل. تحتاج أن تعرف: دواسة البنزين، الفرامل، المقود، المرايا. مفردات التوجيه، لا التنفيذ.

الـ Stack: حلقة فك التشفير

كل تطبيق — من Instagram إلى قائمة مهام بسيطة — مبني من أربع طبقات. المطورون يسمونها "الـ stack". إليك الموضوع كاملًا، مبسطًا:

Frontend (الواجهة الأمامية)

ما يراه الناس ويلمسونه. الأزرار، النصوص، الصور، الحركات. غرفة الطعام في المطعم.

Backend (الواجهة الخلفية)

المنطق خلف الكواليس. يعالج الطلبات، يتحقق من كلمات المرور، يرسل الإيميلات. المطبخ.

Database (قاعدة البيانات)

حيث يتذكر تطبيقك الأشياء. حسابات المستخدمين، المنشورات، الإعدادات. المخزن وكتاب الوصفات.

Deployment (النشر)

كيف يصل على الإنترنت. الاستضافة، النطاقات، البث المباشر. فتح أبواب المطعم.

هذا كل شيء. كل تطبيق استخدمته يومًا هو مزيج من هذه الطبقات الأربع. عندما يقول وكيل البرمجة "سأعد الـ backend"، يعني "سأكتب المنطق الذي يعمل خلف الكواليس." عندما يقول "لننشره"، يعني "لنضعه على الإنترنت." لا تحتاج أن تعرف كيف تعمل أي من هذه الطبقات. تحتاج أن تعرف أنها موجودة ولماذا.

الوكيل كمعلم

إليك الجزء الذي لا يخبرك به أحد: وكيل البرمجة هو أيضًا معلمك. لا تعرف ماذا يعني "npm"؟ اسأل. محتار من رسالة خطأ؟ الصقها وقل "اشرح لي هذا كشخص غير مطور." تريد أن تعرف لماذا اختار الوكيل React بدل شيء آخر؟ اسأل. سيشرح منطقه بلغة بسيطة، خطوة بخطوة، بعدد المرات التي تحتاجها.

أول خمس دقائق

افتح أداة البرمجة. صِف مشروعك بلغة بسيطة: "أريد بناء متتبع تمارين حيث أسجل تمريناتي وأرى تقدمي مع الوقت." الوكيل سيطرح أسئلة توضيحية، ويقترح stack، ويبدأ البناء. مهمتك الأولى هي أن تجيب على أسئلته وتراقب ما يبنيه.

استكشف الطبقات الأربع لتطبيق الويب. اضغط لتتعلم المفردات — ثم اختبر نفسك.

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!