Coding Foundations 0 Bits · Level 1

Foundation map for beginner vibe coders

Coding Foundations

Simple explanations of words in coding, automation, IT and computer science. Short sentences. One idea in each sentence. ASD-STE100 style. Each topic has a real situation or an error, with the steps to correct it.

Computer Basics

Binary and Bits and Bytes

not_started

What it is

A computer keeps all data as 0 and 1. One 0 or one 1 is a bit. Eight bits are one byte. One byte can hold a small piece of data, for example one letter.

Why it is important

All file sizes and memory sizes start from bits and bytes. When you see KB, MB or GB, you know what they count.

Real situation

Your photo is 4 MB. The upload form shows the limit "2 MB maximum". The upload stops.

File too large. Maximum size: 2 MB.

What to do

  1. Find the file size in the file properties.
  2. Make the photo smaller with an image tool.
  3. Upload the smaller file again.

Connected to

RAM (Memory), Storage (SSD and HDD), Data Types (String, Number, Boolean)

CPU (Processor)

not_started

What it is

The CPU is the part of the computer that does the instructions of programs. It does calculations and makes decisions very quickly. People call it the brain of the computer.

Why it is important

A fast CPU makes your editor, your build and your AI tools run faster.

Troubleshoot

Your computer is very slow. The fan is loud. The CPU usage in Task Manager is 100%.

What to do

  1. Open Task Manager (Ctrl + Shift + Esc).
  2. Sort the list by CPU.
  3. Find the program that uses the most CPU.
  4. Close that program if you do not need it.

Connected to

RAM (Memory), GPU (Graphics Card), Motherboard, Program vs Process

RAM (Memory)

not_started

What it is

RAM is the short-term memory of the computer. It holds the apps and files that you use now. When you turn off the computer, RAM becomes empty.

Why it is important

More RAM lets you keep more tools open at the same time. With less RAM, the computer becomes slow.

Error you can see

You open VS Code, 30 browser tabs and a video editor. The computer stops and shows a warning.

Your computer is low on memory.

What to do

  1. Save your work.
  2. Close the browser tabs that you do not need.
  3. Close one large app.
  4. Look at the Memory column in Task Manager again.

Connected to

CPU (Processor), Storage (SSD and HDD), Binary and Bits and Bytes

Storage (SSD and HDD)

not_started

What it is

Storage keeps your files when the computer is off. An SSD is fast and has no moving parts. An HDD is older and slower. An HDD has a disk that turns inside it.

Why it is important

This helps you select a drive. It also tells you why one PC opens files fast and another PC opens files slowly.

Error you can see

You try to install a large program. The install stops.

There is not enough space on disk C:.

What to do

  1. Open Settings > System > Storage.
  2. Delete files that you do not need.
  3. Empty the Recycle Bin.
  4. Start the install again.

Connected to

RAM (Memory), Files, Folders and Paths, Backup

GPU (Graphics Card)

not_started

What it is

A GPU is a chip that makes images and video for the screen. It can also do a lot of math at the same time. AI work and video editing use this power.

Why it is important

Video editing and local AI tools need a strong GPU. This is one reason that some PCs can do more work than others.

Real situation

You export a video. The export takes 2 hours on a laptop with no GPU. The same export takes 10 minutes on a PC with a strong GPU.

What to do

  1. Find the GPU name in Task Manager > Performance.
  2. In the editor, set export to use the GPU (hardware encoding).

Connected to

CPU (Processor), Motherboard, RAM (Memory)

Motherboard

not_started

What it is

The motherboard is the main board inside the computer. The CPU, the RAM and the storage connect to it. Through the motherboard, these parts send data to each other.

Why it is important

When you upgrade a PC, the motherboard tells you which parts fit and work.

Real situation

You buy new RAM for your PC. The RAM does not fit in the slot. The motherboard uses a different RAM type.

What to do

  1. Find the motherboard model before you buy a part.
  2. Read the list of parts that the motherboard supports.
  3. Buy only a part from that list.

Connected to

CPU (Processor), RAM (Memory), GPU (Graphics Card), Storage (SSD and HDD)

Operating System

not_started

What it is

The operating system (OS) is the main software that operates the computer. Windows, macOS and Linux are examples. The OS controls files, apps and hardware for you.

Why it is important

Commands and file paths are a little different on each OS. This explains many small problems at the start.

Error you can see

A tutorial tells you to type ls. You type it in Windows Command Prompt.

'ls' is not recognized as an internal or external command.

What to do

  1. Find which OS the tutorial uses.
  2. In Command Prompt, use dir. It does the same work as ls.
  3. Or use PowerShell or Git Bash, which accept ls.

Connected to

Files, Folders and Paths, Program vs Process, Shell and Bash

Files, Folders and Paths

not_started

What it is

A file holds data, for example a photo or a document. A folder holds files. A path is the address of a file. The path shows the folders that you open to find the file.

Why it is important

Most coding tasks start with the correct file. That is why paths are in every project.

Error you can see

You run a command. The command cannot find your file.

Error: ENOENT: no such file or directory, open 'data/users.json'

What to do

  1. Read the path in the error.
  2. Make sure that the file is in that folder.
  3. Make sure that the name and the letters are correct.
  4. Run the command from the correct folder.

Connected to

File Extensions, Storage (SSD and HDD), Operating System, Terminal and Command Line

File Extensions

not_started

What it is

An extension is the part of a file name after the last dot. Examples are .txt, .jpg and .py. The extension tells the type of file and the app that opens it.

Why it is important

The extension tells you if a file is code, an image or data before you open it.

Troubleshoot

You save a web page as index.html. The browser shows only text. Windows hides extensions, so the real name is index.html.txt.

What to do

  1. Open File Explorer > View.
  2. Turn on File name extensions.
  3. Change the name to index.html.
  4. Open the file again in the browser.

Connected to

Files, Folders and Paths, HTML, Python, JSON

Program vs Process

not_started

What it is

A program is a set of instructions that is saved in storage. A process is a program while it runs. A process uses memory and CPU.

Why it is important

This explains why an app can be installed but not open. It also explains why one app can run as many processes.

Error you can see

You try to start your project. The port is already in use. An old process of the same project still runs.

Error: listen EADDRINUSE: address already in use :::3000

What to do

  1. Find the terminal that runs the old process.
  2. Push Ctrl + C in that terminal to stop it.
  3. If you cannot find it, stop the node process in Task Manager.
  4. Start the project again.

Connected to

CPU (Processor), RAM (Memory), Operating System, Code and Syntax

Hardware vs Software

not_started

What it is

Hardware is the parts of the computer that you can touch. Examples are the screen, the keyboard and the chips. Software is the instructions and apps that run on the hardware.

Why it is important

When you know the difference, you can find the cause faster. The problem is a broken part or a bug in the code.

Troubleshoot

Your keyboard does not type. You must find if the problem is hardware or software.

What to do

  1. Restart the computer.
  2. Connect the keyboard to a different USB port.
  3. Try the keyboard on a different computer.
  4. If it does not work on any computer, the hardware is broken.

Connected to

CPU (Processor), Operating System, Errors and Bugs

Programming Core

Code and Syntax

not_started

What it is

Code is instructions that you write for the computer. Syntax is the set of rules for how to write these instructions. If the syntax is wrong, the computer cannot read the code.

Why it is important

One missing comma or bracket can stop all of the code. This is true also when an AI wrote the code.

Error you can see

The AI adds a new function. Now the page is empty. The browser console shows an error.

SyntaxError: Unexpected token '}' (app.js:42)

What to do

  1. Open the file and go to line 42.
  2. Look for a missing or extra bracket, comma or quote near that line.
  3. Correct it and save the file.
  4. Load the page again.

Connected to

Variable, Errors and Bugs, Debugging

Variable

not_started

What it is

A variable is a box with a name. The box holds a value. The value can be a name, a number or a list. The program can change the value while it runs.

Why it is important

Variables are in almost every line of code that the AI writes. They are one of the first words to learn well.

Error you can see

Your code uses a variable before it has a value.

ReferenceError: total is not defined

What to do

  1. Find the name in the error (total).
  2. Find where the code makes total.
  3. Make sure the code makes the variable before it uses it.
  4. Make sure that the spelling is the same everywhere.

Connected to

Data Types (String, Number, Boolean), Function, Code and Syntax

Data Types (String, Number, Boolean)

not_started

What it is

The data type tells the type of a value. A string is text. A number is a value that you can use in math. A boolean is only true or false.

Why it is important

Many bugs occur when the code expects a number but gets text. Types explain many errors.

Real situation

Your cart adds two prices, "10" and "5". The total shows 105, not 15. The prices are strings, so the code joins the text.

What to do

  1. Change the strings to numbers with Number("10").
  2. Then add the numbers.
  3. Make sure that the total shows 15.

Connected to

Variable, Conditionals (If and Else), Boolean Logic, JSON

Conditionals (If and Else)

not_started

What it is

A conditional lets a program make a choice. If a condition is true, the program does one thing. If the condition is false, the program does a different thing.

Why it is important

This is how apps make decisions. For example, an app shows one screen when you are logged in and a different screen when you are not.

Real situation

Every user sees the admin page. The code uses = (set a value) instead of === (compare two values). The condition is always true.

if (role = "admin")

What to do

  1. Find the if line.
  2. Change = to ===.
  3. Log in as a normal user.
  4. Make sure that the admin page does not show.

Connected to

Boolean Logic, Data Types (String, Number, Boolean), Loops, Function

Loops

not_started

What it is

A loop does the same steps many times. You do not write the steps again and again. The loop stops when a condition tells it to stop.

Why it is important

Loops process lists. For example, a loop checks each order or each file, one at a time.

Troubleshoot

Your page freezes. The tab does not respond. The loop never stops because the counter never changes.

What to do

  1. Close the frozen tab.
  2. Find the loop in the code.
  3. Make sure that the counter changes in each step.
  4. Make sure that the stop condition can become true.

Connected to

Array and List, Conditionals (If and Else), Function, Algorithm

Function

not_started

What it is

A function is a block of code with a name and one job. You can run it again each time you need that job. You can give it input. It can give back a result.

Why it is important

Functions keep code short and clear. The AI often tells you that it made or changed a function.

Error you can see

You call a function. The code stops.

TypeError: calculateTotal is not a function

What to do

  1. Find the function name in the error.
  2. Make sure the function exists.
  3. Make sure the spelling and capital letters are the same.
  4. If the function is in a different file, make sure that you import it.

Connected to

Variable, Input and Output, Library and Package, Code and Syntax

Array and List

not_started

What it is

An array, or list, holds many values in order. Examples are a list of names or a list of numbers. Each value has a position. In most languages, the count starts at 0.

Why it is important

Most real data comes as a list, for example posts, products and students. You will see arrays everywhere.

Real situation

Your list has 3 names. You ask for item number 3, but you get nothing. The positions are 0, 1 and 2.

names[3] → undefined

What to do

  1. Remember that the first item is at position 0.
  2. Use names[2] for the third name.
  3. Use names.length to get the number of items.

Connected to

Loops, Variable, Object, Data Structure

Object

not_started

What it is

An object puts related values together in one group. Each value has a name. For example, a person has a name, an age and an email. Each named part is a property.

Why it is important

Objects are how code shows real things, for example a user, a product or an order.

Error you can see

The code tries to read the email of a user. But the user was not found, so the user is empty.

TypeError: Cannot read properties of undefined (reading 'email')

What to do

  1. Find the object before .email (here, user).
  2. Find out why the object is empty.
  3. Add a check: if the user is empty, show a message.
  4. Read the email only when the user exists.

Connected to

Variable, Array and List, JSON, Object-Oriented Programming (OOP)

Errors and Bugs

not_started

What it is

An error is a message that tells you that something went wrong. The program could not continue its plan. A bug is a mistake in the code. A bug makes the program do the wrong thing.

Why it is important

Read the error first. Do not guess. This is the fastest way to correct most problems.

Troubleshoot

Your app shows a long red error. It has many lines.

TypeError: x is undefined
    at render (app.js:88)
    at main (app.js:12)

What to do

  1. Read the first line. It tells you what went wrong.
  2. Read the first file and line number. It tells you where.
  3. Open that file at that line.
  4. Give the full error to the AI, not only "it does not work".

Connected to

Debugging, Code and Syntax, The Debugging Workflow

Debugging

not_started

What it is

Debugging is the work to find and remove the cause of a bug. You read the error. You check the values step by step. You test one small change at a time.

Why it is important

This skill makes a stuck vibe coding session move again.

Troubleshoot

The total on your page is wrong. There is no error message.

What to do

  1. Add console.log(total) before the line that shows the total.
  2. Load the page and open the browser console.
  3. Compare the value with the value that you expect.
  4. Move the log back step by step until you find the wrong value.

Connected to

Errors and Bugs, The Debugging Workflow, Testing, Comments

Comments

not_started

What it is

A comment is a note inside the code. The computer does not read it. People write comments to tell why a part of the code is there or how it works.

Why it is important

Good comments help you and the AI to understand old code later.

Real situation

You open your project after 3 months. You do not know why a strange line is there. A comment on that line tells you: "Safari needs this fix."

// Safari needs this fix. Do not remove.

What to do

  1. Write a comment when the reason for the code is not clear.
  2. Tell why, not only what.
  3. Remove comments that are no longer correct.

Connected to

Code and Syntax, README and Documentation, Refactoring

Input and Output

not_started

What it is

Input is data that goes into a program, for example text that a user types. Output is what the program gives back, for example text on the screen or a saved file.

Why it is important

Almost every tool that you make takes input and gives output. This is the frame of all the work.

Real situation

A form asks for an age. A user types "twenty". The program expects a number, so the output is wrong.

What to do

  1. Check the input before you use it.
  2. If the input is not correct, show a clear message.
  3. Use the input only after it passes the check.

Connected to

Function, Variable, API

Library and Package

not_started

What it is

A library, or package, is ready-made code that other people wrote. You can use it in your project. You do not have to make everything yourself. You add it with a package manager.

Why it is important

When the AI tells you to install a package, this is what it means. Packages save you a lot of time.

Error you can see

You run the project. The code uses a package that is not installed.

Error: Cannot find module 'express'

What to do

  1. Read the package name in the error.
  2. Run npm install express in the project folder.
  3. Run the project again.

Connected to

Package Manager (npm, pip), Function, Framework (React, Next.js)

Languages and Their Jobs

HTML

not_started

What it is

HTML is the language that gives structure to a web page. It marks headings, paragraphs, images, links and buttons. The browser then knows what each part of the page is.

Why it is important

Every web page starts with HTML. This is true also when a framework hides the HTML from you.

Troubleshoot

Half of your page is bold. One <b> tag does not have its closing tag.

<p><b>Sale today</p>

What to do

  1. Find the first place where the page looks wrong.
  2. Find the open tag near that place.
  3. Add the closing tag: <b>Sale today</b>.
  4. Load the page again.

Connected to

CSS, JavaScript, Markup Language vs Programming Language, How a Web Page Loads

CSS

not_started

What it is

CSS is the language that controls how a web page looks. It sets colors, space, sizes and layout. It also sets how the page changes on small and large screens.

Why it is important

When the look of a page is wrong, the fix is almost always in the CSS. When you know this word, your questions to the AI are better.

Troubleshoot

You change a button color in CSS. The color does not change.

What to do

  1. Push Ctrl + Shift + R to load the page without the cache.
  2. Right-click the button and select Inspect.
  3. Look for your rule. If it has a line through it, a different rule wins.
  4. Make your rule more specific, or correct the class name.

Connected to

HTML, JavaScript, UI and UX, Framework (React, Next.js)

JavaScript

not_started

What it is

JavaScript is the programming language that makes web pages interactive. It responds to clicks. It changes content without a new page load. It also sends and gets data from servers.

Why it is important

Most web apps that you make use JavaScript. It is the main language to learn.

Troubleshoot

You click a button. Nothing happens.

What to do

  1. Push F12 to open the developer tools.
  2. Click the Console tab.
  3. Click the button again.
  4. Read the red error and give it to the AI.

Connected to

TypeScript, HTML, CSS, Frontend vs Backend

TypeScript

not_started

What it is

TypeScript is JavaScript with more rules about data types. These rules help you find mistakes early. You find the mistake before the code runs.

Why it is important

Many AI coding tools write TypeScript by default. You will see its type notes in your projects.

Error you can see

The build stops. A function expects a number, but the code gives it text.

Type 'string' is not assignable to type 'number'.

What to do

  1. Find the file and line in the error.
  2. Find the value that has the wrong type.
  3. Change the value to the correct type, for example Number(value).
  4. Run the build again.

Connected to

JavaScript, Data Types (String, Number, Boolean), Errors and Bugs

Python

not_started

What it is

Python is a programming language with code that is clear and easy to read. People use it a lot for automation, data work and AI tools.

Why it is important

Python is a good first language for scripts. Scripts save your time on tasks that you do again and again.

Error you can see

You run a Python script. Python shows an error about spaces.

IndentationError: unexpected indent

What to do

  1. Go to the line in the error.
  2. In Python, the spaces at the start of a line are important.
  3. Make the lines in the same block start at the same position.
  4. Use 4 spaces, not tabs.

Connected to

Script, What Automation Is, Shell and Bash, Package Manager (npm, pip)

SQL

not_started

What it is

SQL is the language that gets data from a database. It also adds, changes and deletes data. You write short commands that tell the database what you want.

Why it is important

Every app that saves users, orders or posts uses SQL or a similar tool behind the screen.

Error you can see

You run a query. The database does not know a column.

ERROR: column "emial" does not exist

What to do

  1. Read the name in the error.
  2. Compare it with the real column names in the table.
  3. Correct the spelling (email).
  4. Run the query again.

Connected to

Data and Database, SQL Queries (SELECT), Table, Row and Column, CRUD

Shell and Bash

not_started

What it is

A shell is a program that runs text commands on the computer. Bash is a well-known shell. A shell script can run many commands one after the other.

Why it is important

The AI often gives you install steps as shell commands. Shell commands are not frightening when you know the shell.

Error you can see

You try to run a script that you downloaded.

bash: ./setup.sh: Permission denied

What to do

  1. CAUTION: Run only scripts from people that you trust.
  2. Read the script before you run it.
  3. Type chmod +x setup.sh to let the file run.
  4. Type ./setup.sh again.

Connected to

Terminal and Command Line, Basic Shell Commands, Script, Operating System

Markup Language vs Programming Language

not_started

What it is

A markup language, for example HTML, shows structure and meaning. It cannot make decisions or calculations. A programming language, for example JavaScript, can make choices, repeat steps and calculate results.

Why it is important

This stops a common confusion. HTML alone cannot do logic. It needs a programming language with it.

Real situation

You want a page that calculates a price when the user types a number. You try to do this in HTML only. It does not work.

What to do

  1. Use HTML for the input box and the result area.
  2. Use JavaScript to read the number and calculate the price.
  3. Use JavaScript to show the result in the page.

Connected to

HTML, JavaScript, Python, Code and Syntax

Tools of the Trade

Terminal and Command Line

not_started

What it is

A terminal is a window where you type text commands. You do not click. The command line is the line in that window where you type and run each command.

Why it is important

You install tools, start projects and correct setups in the terminal. It is important to feel comfortable there.

Error you can see

You install Node.js. Then you type node in a terminal that was already open.

'node' is not recognized as an internal or external command.

What to do

  1. Close the terminal.
  2. Open a new terminal. It reads the new settings.
  3. Type node -v.
  4. If the error stays, restart the computer.

Connected to

Basic Shell Commands, Shell and Bash, Editor vs IDE (VS Code)

Basic Shell Commands

not_started

What it is

These are short commands for daily work. You can list files, go into a folder, make a folder, copy or delete a file and show where you are. Examples are ls, cd, mkdir and pwd.

Why it is important

With these few commands, you can move through any project and not get lost.

Troubleshoot

You run npm install. It fails because you are in the wrong folder.

npm ERR! enoent Could not read package.json

What to do

  1. Type pwd to show where you are.
  2. Type ls to list the files.
  3. Type cd my-project to go into the project folder.
  4. Type npm install again.

Connected to

Terminal and Command Line, Files, Folders and Paths, Shell and Bash

Editor vs IDE (VS Code)

not_started

What it is

An editor is a simple app to write code. An IDE is an editor with more tools in it. The tools run code, find errors and manage files. VS Code is a popular, free code editor with IDE tools.

Why it is important

In VS Code, you can see and change the code that the AI writes for you.

Troubleshoot

You change a file in VS Code. The website does not change. A white dot shows on the file tab, so the file is not saved.

What to do

  1. Look for the white dot on the file tab.
  2. Push Ctrl + S to save the file.
  3. Turn on File > Auto Save to prevent this problem.

Connected to

Terminal and Command Line, Code and Syntax, Debugging

Git

not_started

What it is

Git is a tool that records the changes to your files over time. You can save snapshots of your work. You can go back to an older version. You can also work with other people and not overwrite their work.

Why it is important

Git is the undo history for your full project. It helps you when an AI change breaks something.

Troubleshoot

The AI changed 10 files. Now the app does not work. You want the last working version.

What to do

  1. CAUTION: The next command deletes all changes that you did not commit.
  2. Type git status to see the changed files.
  3. Type git restore . to go back to the last commit.
  4. Run the app again.

Connected to

GitHub, Git Workflow (Commit, Branch, Merge, Pull Request), Backup

GitHub

not_started

What it is

GitHub is a website that keeps Git projects online. Teams use it to share code, review changes and keep a backup copy in the cloud.

Why it is important

Many open tools and templates are on GitHub. You must know how to get them.

Error you can see

You push your code to GitHub. GitHub stops the push because it has new changes that you do not have.

! [rejected] main -> main (fetch first)

What to do

  1. Type git pull --rebase to get the new changes.
  2. If Git shows a conflict, correct it and save.
  3. Type git push again.

Connected to

Git, Git Workflow (Commit, Branch, Merge, Pull Request), Cloud

Git Workflow (Commit, Branch, Merge, Pull Request)

not_started

What it is

A commit is a saved snapshot with a short message. A branch is a separate line of work. A merge joins two branches. A pull request asks other people to review and accept your changes.

Why it is important

These four words are in almost every team workflow and AI coding workflow. They make Git easy to understand.

Error you can see

You merge a branch. You and a teammate changed the same line.

CONFLICT (content): Merge conflict in index.html

What to do

  1. Open index.html.
  2. Find the lines between <<<<<<< and >>>>>>>.
  3. Keep the correct text and delete the markers.
  4. Save, then type git add index.html and git commit.

Connected to

Git, GitHub, Release (Build, Test, Ship)

Package Manager (npm, pip)

not_started

What it is

A package manager installs and updates libraries for your project with one command. npm is for JavaScript projects. pip is for Python projects.

Why it is important

When setup steps tell you to install dependencies, this tool does that work for you.

Error you can see

You run npm install. Two packages need different versions of the same package.

npm ERR! ERESOLVE unable to resolve dependency tree

What to do

  1. Read the two package names in the error.
  2. Give the full error to the AI and ask for compatible versions.
  3. Only as a last step, try npm install --legacy-peer-deps.

Connected to

Library and Package, JavaScript, Python, Terminal and Command Line

Environment Variables and the .env File

not_started

What it is

Environment variables are settings that are kept outside of your code. Examples are keys and passwords. They are often in a file with the name .env. You do not share this file with the public.

Why it is important

This is how you keep your API keys safe. You do not put them in code that other people can see.

Error you can see

Your app works on your laptop. On the live server, the AI feature fails. The server does not have the key.

Error: OPENAI_API_KEY is not set

What to do

  1. WARNING: Do not put the key in your code or on GitHub.
  2. Open the settings of your host (for example Vercel).
  3. Add the variable with the same name and value.
  4. Deploy the app again.

Connected to

Login, Tokens and API Keys, Security Basics (Passwords, Permissions, Encryption), API

README and Documentation

not_started

What it is

A README is the first file in a project. It tells what the project is, how to install it and how to use it. Documentation is the full set of guides for a tool or a project.

Why it is important

Read the README first. It answers most setup questions before you ask the AI.

Real situation

You download a project from GitHub. You type npm start. It fails. The README tells you to type npm install first and to make a .env file.

What to do

  1. Open README.md before you run anything.
  2. Do the steps in the order that the README gives.
  3. If a step fails, give the step and the error to the AI.

Connected to

Comments, GitHub, Planning and Requirements

Web Development

Frontend vs Backend

not_started

What it is

The frontend is the part of the app that you see and touch, for example pages and buttons. The backend is the hidden part on the server. It controls data, login and rules.

Why it is important

When you know which side has the problem, you know where to look. You also know what to ask the AI to correct.

Troubleshoot

You click Save. The page shows "Saved". But when you load the page again, the data is not there.

What to do

  1. Open the developer tools > Network tab.
  2. Click Save again and find the request.
  3. If the request is red or 500, the problem is in the backend.
  4. If there is no request, the problem is in the frontend.

Connected to

Client and Server, JavaScript, API, Server and Hosting

Client and Server

not_started

What it is

The client is the app or browser on the device of the user. It asks for things. The server is a computer that listens, does the work and sends an answer back.

Why it is important

Every web and app feature is a conversation between these two. This is core vocabulary.

Error you can see

The page loads but shows no products. The server had a problem.

500 Internal Server Error

What to do

  1. Know that a 5xx code is a server problem, not a client problem.
  2. Open the server logs (for example, Vercel > Logs).
  3. Find the error at the same time.
  4. Give that error to the AI.

Connected to

Frontend vs Backend, Server and Hosting, HTTP Requests (GET and POST), API

How a Web Page Loads

not_started

What it is

When you open a page, the browser asks the server for the HTML. Then it gets the CSS for the look and the JavaScript for actions. It also gets images and data. Then it builds the page that you see.

Why it is important

When a page is slow or empty, this order helps you find the part that failed.

Troubleshoot

The page shows text but no style. It looks like a plain document. The CSS file did not load.

GET /styles.css 404 (Not Found)

What to do

  1. Open the developer tools > Network tab.
  2. Load the page again.
  3. Find the red line (404).
  4. Make sure that the file name and path in the HTML are correct.

Connected to

HTML, CSS, JavaScript, DNS and Domain Names, Client and Server

Framework (React, Next.js)

not_started

What it is

A framework is a ready-made structure to build apps. It comes with rules and tools. React helps you build the parts of a page. Next.js adds routing, server work and more on top of React.

Why it is important

The AI often builds your ideas inside a framework. You must know what the framework does for you.

Error you can see

The page in Next.js shows a warning. The HTML from the server is different from the HTML in the browser.

Error: Hydration failed because the server rendered HTML didn't match the client.

What to do

  1. Look for values that change each time, for example the date or a random number.
  2. Show these values only after the page loads in the browser.
  3. Give the full error to the AI with the name of the component.

Connected to

JavaScript, Library and Package, Frontend vs Backend

API

not_started

What it is

An API is a clear way for one program to ask another program for data or an action. The program that asks gets an answer in a fixed format. Think of it as a menu and an order system between software.

Why it is important

Your apps use APIs to get weather, payments, AI, maps and almost all outside services.

Error you can see

Your app calls an AI API. The API stops the request.

401 Unauthorized

What to do

  1. Know that 401 means that the key is wrong or missing.
  2. Make sure that the API key is in the .env file.
  3. Make sure that the key is not expired.
  4. Restart the app so that it reads the key again.

Connected to

REST API, HTTP Requests (GET and POST), Connecting Apps Through APIs, JSON

REST API

not_started

What it is

REST is a common style to build APIs. It uses web addresses and standard actions: get, create, update and delete. Many services use this style, so tools can work together.

Why it is important

When a service has a REST API, your app can probably connect to it in a standard way.

Error you can see

You ask a REST API for a product. The address is wrong.

404 Not Found: GET /api/prodcts/12

What to do

  1. Read the address in the error.
  2. Compare it with the address in the API documentation.
  3. Correct the spelling (/api/products/12).
  4. Send the request again.

Connected to

API, HTTP Requests (GET and POST), CRUD, Client and Server

HTTP Requests (GET and POST)

not_started

What it is

An HTTP request is a message from the client to the server. GET asks for data. POST sends new data, for example a form or a new account.

Why it is important

Forms, login and saved data use these requests. Errors here explain many broken features.

Error you can see

Your form sends data to the server. The server does not accept the method.

405 Method Not Allowed

What to do

  1. Find the method that the form uses (GET or POST).
  2. Find the method that the server expects.
  3. Make the two the same.
  4. Send the form again.

Connected to

HTTP and HTTPS, REST API, API, Client and Server

Login, Tokens and API Keys

not_started

What it is

Login checks who you are. A token is a temporary pass that the server gives you after login. With a token, you do not log in again on each click. An API key is a secret code that lets a program use a service.

Why it is important

When you keep keys secret and know what a token does, you prevent lockouts and stolen accounts.

Error you can see

You use the app for 2 hours. Then each action fails. The token has a time limit.

401 Unauthorized: jwt expired

What to do

  1. Log out and log in again to get a new token.
  2. Ask the AI to add an automatic token refresh.
  3. WARNING: If a key is visible to the public, delete it and make a new key immediately.

Connected to

Sessions and Cookies, Environment Variables and the .env File, Security Basics (Passwords, Permissions, Encryption), API

Sessions and Cookies

not_started

What it is

A cookie is a small piece of data that a website saves in your browser. A session uses this data to remember that you are logged in when you go to other pages.

Why it is important

This explains why you stay logged in. It also explains why you are logged out everywhere when you clear cookies.

Troubleshoot

You log in to your app. When you go to the next page, the app asks you to log in again. The cookie is not saved.

What to do

  1. Open the developer tools > Application > Cookies.
  2. Make sure that the session cookie is there.
  3. If it is not there, check the cookie settings (domain, Secure, SameSite).
  4. On localhost, use http, or turn off the Secure flag for tests.

Connected to

Login, Tokens and API Keys, Client and Server, HTTP and HTTPS

Data and Databases

Data and Database

not_started

What it is

Data is facts in a useful form, for example names, prices and scores. A database is an organized system that keeps data. In a database, you can find and change data quickly.

Why it is important

Every app that remembers users or content needs a database. It is behind almost everything that you make.

Real situation

Your app keeps the users in a variable. You restart the server. All users are gone. A variable is in RAM, but a database keeps data on storage.

What to do

  1. Keep data that must stay in a database, not in a variable.
  2. Restart the app and make sure that the data is still there.

Connected to

Table, Row and Column, SQL, CRUD

Table, Row and Column

not_started

What it is

A database table is like a spreadsheet for one type of thing, for example users. Each row is one item, for example one user. Each column is one fact about the item, for example the name or the email.

Why it is important

When you see data as tables, database questions and AI answers about data become clear.

Error you can see

You add a new user. The email column must have a value, but the form sends no email.

ERROR: null value in column "email" violates not-null constraint

What to do

  1. Read the column name in the error.
  2. Make the form field for that column required.
  3. Send the form again with a value.

Connected to

Data and Database, SQL Queries (SELECT), ID and Primary Key, CSV and Spreadsheets vs Databases

SQL Queries (SELECT)

not_started

What it is

A query is a question to a database. SELECT is the SQL word that reads data. For example, you can ask for the names of all users that joined this month.

Why it is important

To read data with SELECT is the most common database task in real projects.

Real situation

You want only the users from Manila. Your query shows all 10,000 users because it has no filter.

SELECT name FROM users WHERE city = 'Manila';

What to do

  1. Write SELECT with only the columns that you need.
  2. Add WHERE to filter the rows.
  3. Add LIMIT 50 when you test, so the result is small.

Connected to

SQL, Table, Row and Column, CRUD, Data and Database

JSON

not_started

What it is

JSON is a text format to send data as names and values. It uses braces { } and brackets [ ]. Each name has a value, for example "name": "Ana".

Why it is important

APIs send data as JSON. You see JSON each time your app talks to a service.

Error you can see

Your app reads a JSON file. The file has an extra comma at the end of a list.

SyntaxError: Unexpected token } in JSON at position 58

What to do

  1. Open the JSON file.
  2. Look for a comma before } or ].
  3. Remove the extra comma.
  4. Use a JSON validator to check the full file.

Connected to

API, Object, Data Types (String, Number, Boolean), REST API

CSV and Spreadsheets vs Databases

not_started

What it is

A CSV is a plain text file. Commas separate the values. It is like a simple spreadsheet. A spreadsheet is easy for people to edit. A database is better when an app needs fast, safe access to a lot of data by many users.

Why it is important

This helps you select where to keep data. Use a sheet for a simple list. Use a database for a real app.

Troubleshoot

You open a CSV in Excel. The names with ñ show strange letters, for example "Peña". The file is UTF-8, but Excel reads it as a different encoding.

What to do

  1. In Excel, select Data > From Text/CSV.
  2. Set File Origin to UTF-8.
  3. Load the data.

Connected to

Table, Row and Column, Data and Database, Files, Folders and Paths

ID and Primary Key

not_started

What it is

An ID is a unique number or code for a row. No two rows have the same ID. The primary key is the column that the table uses as that unique ID.

Why it is important

Apps use IDs to point to exactly one user, one order or one post. The data does not mix.

Error you can see

You import the same list two times. The second import fails.

ERROR: duplicate key value violates unique constraint "users_pkey"

What to do

  1. Know that this ID is already in the table.
  2. Do not import rows that are already there.
  3. Or let the database make the IDs automatically.

Connected to

Table, Row and Column, CRUD, Data and Database

CRUD

not_started

What it is

CRUD means Create, Read, Update and Delete. These are the four basic actions that you can do on data in almost every app.

Why it is important

Most app features are one of these four actions with a good screen on top.

Real situation

You make a to-do app. Each button is one CRUD action: Add (Create), the list (Read), Edit (Update) and the trash icon (Delete).

What to do

  1. List the CRUD actions that your app needs.
  2. Ask the AI for one feature at a time.
  3. Test each action before you go to the next one.

Connected to

SQL Queries (SELECT), REST API, Data and Database, HTTP Requests (GET and POST)

Automation

What Automation Is

not_started

What it is

Automation is when a computer does a repeated task without your help. It follows the steps that you set one time. You use a little time now to save time each time the task runs.

Why it is important

This is the core of AI work and business tool work. Find a repeated task. Then let the system do it.

Real situation

Each Monday, you copy 50 form answers into a spreadsheet by hand. This takes 1 hour. An automation does it in 1 minute.

What to do

  1. Write the manual steps on paper.
  2. Find the trigger (a new form answer).
  3. Find the action (add a row to the sheet).
  4. Make the automation and test it with one form answer.

Connected to

Script, Workflow and Pipeline, Trigger and Action, Scheduled Task and Cron Job

Script

not_started

What it is

A script is a file of commands that the computer runs in order to do a task. It can be short, for example to change the names of many files. It can also be long, for example to make a report.

Why it is important

A script is the easiest way to change a manual routine into one click or an automatic run.

Error you can see

You try to run a PowerShell script on Windows. Windows stops it.

running scripts is disabled on this system

What to do

  1. CAUTION: Run only scripts that you trust and have read.
  2. Open PowerShell.
  3. Type Set-ExecutionPolicy -Scope CurrentUser RemoteSigned.
  4. Run the script again.

Connected to

Python, Shell and Bash, What Automation Is, Bot

Scheduled Task and Cron Job

not_started

What it is

A scheduled task runs at a set time, for example each day at 5 AM. A cron job is a common way to set that schedule on many systems. It uses a short time pattern.

Why it is important

Morning briefs, backups and daily posts run in this way. You will see these words many times.

Troubleshoot

Your daily post must go out at 7 AM. It goes out at 3 PM. The server uses UTC time, not Philippine time (UTC+8).

0 7 * * *

What to do

  1. Find the time zone of the server.
  2. Change the time to UTC: 7 AM in Manila is 11 PM UTC the day before.
  3. Use 0 23 * * * for the cron pattern.
  4. Or set the time zone in the tool settings.

Connected to

What Automation Is, Trigger and Action, Workflow and Pipeline, Bot

Trigger and Action

not_started

What it is

A trigger is the event that starts an automation, for example a new email or a set time. An action is what occurs next, for example to save a file or to send a message.

Why it is important

Almost every automation tool uses this pair. It is the fastest way to design a flow.

Real situation

A client fills in a form on your site. You want a welcome email and a new row in your CRM.

What to do

  1. Set the trigger: new form answer.
  2. Set action 1: send the welcome email.
  3. Set action 2: add the contact to the CRM.
  4. Send one test form and check both actions.

Connected to

What Automation Is, Webhook, Workflow and Pipeline, No-Code Automation Tools (Zapier, Make, n8n)

Webhook

not_started

What it is

A webhook lets one app tell another app immediately that an event occurred. The first app sends a small message to a web address. The second app listens at that address.

Why it is important

Webhooks make automations feel instant. For example, a payment opens a course immediately.

Troubleshoot

Your webhook works in test. In real use, it does nothing. You used the test URL, not the production URL.

What to do

  1. In n8n, find the Production URL of the Webhook node.
  2. Put that URL in the other app.
  3. Turn on (activate) the workflow.
  4. Send one real event and check the execution.

Connected to

API, Trigger and Action, Connecting Apps Through APIs, HTTP Requests (GET and POST)

Connecting Apps Through APIs

not_started

What it is

This means that you use the API of each app so that the apps can send data to each other. For example, form answers go to a spreadsheet. Then they go to an email tool.

Why it is important

Your tools stop being separate islands. They start to work as one system.

Error you can see

Your flow sends data to an API too fast. The API stops some requests.

429 Too Many Requests

What to do

  1. Know that 429 means you sent too many requests in a short time.
  2. Add a wait step between requests.
  3. Send the data in small groups (batches).
  4. Read the rate limit in the API documentation.

Connected to

API, Webhook, What Automation Is, No-Code Automation Tools (Zapier, Make, n8n)

No-Code Automation Tools (Zapier, Make, n8n)

not_started

What it is

These tools let you build automations when you select triggers and actions on the screen. You write little or no code. Zapier and Make are hosted services. You can run n8n on your own server.

Why it is important

With these tools, you can make useful automations quickly. You can do this before you can write the same flow in code.

Troubleshoot

Your Zap stops. You get an email that a step failed. The Google connection expired.

What to do

  1. Open the run history of the Zap.
  2. Find the step with the red mark.
  3. Read the error message.
  4. Connect the account again, then replay the failed run.

Connected to

Trigger and Action, Connecting Apps Through APIs, Workflow and Pipeline, What Automation Is

Workflow and Pipeline

not_started

What it is

A workflow is the full set of steps that a task follows from start to end. A pipeline is a workflow where the output of one step is the input of the next step. It is like an assembly line.

Why it is important

When you give each step a clear name, the automation becomes dependable. Without clear steps, the automation becomes confusing.

Troubleshoot

Your pipeline has 6 steps. The final email is empty. You must find which step lost the data.

What to do

  1. Open the last execution.
  2. Look at the output of step 1.
  3. Go to the next step and look at its output.
  4. The first step with empty output is the step that has the problem.

Connected to

What Automation Is, Trigger and Action, Script, Planning and Requirements

Bot

not_started

What it is

A bot is a program that does tasks or talks to people automatically. For example, it answers common questions or posts on a schedule. A bot follows rules. It can also use an AI model to decide the answers.

Why it is important

A bot is often a first automation project. A bot is only a program with a job.

Real situation

Your chat bot answers the same question again and again in a loop. It reads its own messages as new questions.

What to do

  1. Add a rule: do not reply to messages from the bot.
  2. Add a limit to the number of replies.
  3. Test with two messages.

Connected to

Script, What Automation Is, AI Agent, Scheduled Task and Cron Job

n8n

Learning

What it is

n8n is a visual automation tool. You build a workflow when you connect nodes on a screen. Each node is one step. n8n can connect apps, AI models and messages.

Why it is important

n8n is one of the main automation tools that you study. Nodes and workflows in n8n are the base of all your automation lessons.

Error you can see

A node in your workflow shows a red mark. It cannot find a field from the previous node.

Cannot read properties of undefined (reading 'json')

What to do

  1. Click the red node and read the error.
  2. Open the node before it and look at its output.
  3. Make sure that the field name in your expression is the same as the output.
  4. Run the node again with Test step.

Connected to

No-Code Automation Tools (Zapier, Make, n8n), Workflow and Pipeline, Webhook, Trigger and Action, Connecting Apps Through APIs

GoHighLevel (GHL)

Learning

What it is

GoHighLevel (GHL) is an all-in-one platform for CRM and marketing. It has pipelines, calendars, forms, email and SMS. It also has funnels and its own workflow builder.

Why it is important

Many agencies and businesses use GHL for leads and clients. It is one of the main tools that you study, with n8n.

Troubleshoot

A new lead fills in a form. The GHL workflow does not start.

What to do

  1. Open the workflow and make sure it is Published, not Draft.
  2. Make sure that the trigger uses the same form.
  3. Open the Execution Logs for that contact.
  4. Send one test form.

Connected to

No-Code Automation Tools (Zapier, Make, n8n), n8n, Workflow and Pipeline, Trigger and Action, Connecting Apps Through APIs

Node

not_started

What it is

A node is one block in a workflow, for example in n8n. Each node has one small job. One node gets data. A different node sends a message. When you connect the nodes, you make the full automation. The word has a second meaning: Node.js is a tool that runs JavaScript outside the browser.

Why it is important

You see the word node a lot in n8n and in Claude Code. Think of a node as one step with one job.

Error you can see

Claude Code tells you to run a project. The terminal shows that Node.js is too old.

error: This project requires Node.js 18 or later. You have v14.

What to do

  1. Type node -v to see your version.
  2. Download the LTS version from nodejs.org.
  3. Close and open the terminal again.
  4. Type node -v again.

Connected to

No-Code Automation Tools (Zapier, Make, n8n), Workflow and Pipeline, Trigger and Action, JavaScript

AI and Vibe Coding

Vibe Coding

Learning

What it is

Vibe coding is when you build software and describe what you want to an AI coding assistant. You use simple words. Then you guide the AI with feedback while it writes and corrects the code. You control the result, but you do not write each line.

Why it is important

Many beginners build in this way now. It works best when you also learn the foundations on this map. Then you can judge and guide the work of the AI.

Real situation

You ask the AI to correct a bug. It corrects it but breaks a different feature. You ask again. It breaks one more thing.

What to do

  1. Stop after two failed tries.
  2. Use git to go back to the last working version.
  3. Give the AI the exact error and the expected result.
  4. Ask for one small change at a time.

Connected to

Prompt, AI Coding Assistants (Claude Code, OpenCode), LLM and AI Model

Prompt

Learning

What it is

A prompt is the instruction or question that you give to an AI model. A clear prompt tells what you want. It also gives the context and tells what a good result is.

Why it is important

A better prompt gives better code and fewer correction cycles. You use this skill every day.

Real situation

Bad prompt: "Make it better." The AI changes the full design. Good prompt: "On the home page, make the Buy button gold. Do not change other parts."

What to do

  1. Tell what you want.
  2. Tell where (the file or the page).
  3. Tell what must not change.
  4. Tell how you will check the result.

Connected to

Vibe Coding, LLM and AI Model, Context and Context Window

LLM and AI Model

not_started

What it is

An AI model is a program that learned from a lot of data. It can do tasks, for example writing and coding. An LLM (large language model) is a model that learned from text. It can read and write words and code.

Why it is important

When you know what a model can and cannot do, you trust it only in the correct places.

Real situation

You ask the AI about a library update from last month. It gives old information. Its training data stopped before that date.

What to do

  1. Ask the AI for the date of its knowledge.
  2. For new tools, give it the link or the documentation.
  3. Check new facts in the official documentation.

Connected to

Prompt, Token, Context and Context Window, Hallucination

Context and Context Window

not_started

What it is

Context is all the information that the AI sees in the current chat. This includes your messages, the files and its previous answers. The context window is the limit of how much information it can see at one time.

Why it is important

When the AI forgets an early detail, the context window is often the cause. Repeat the important facts.

Troubleshoot

After a long chat, the AI forgets your rule: "Do not change the colors." It changes the colors.

What to do

  1. Start a new chat for a new task.
  2. Put the important rules in a file, for example CLAUDE.md.
  3. Give a short summary of the facts at the start of the new chat.

Connected to

Prompt, Token, LLM and AI Model, RAG (Retrieval)

Token

not_started

What it is

A token is a small piece of text that the AI reads and writes. Often, a token is a part of a word. AI tools count tokens to measure length, cost and how much fits in the context window.

Why it is important

Long files and long chats use more tokens. This changes the speed, the cost and the memory of the chat.

Error you can see

You paste a very long log file into the chat. The tool stops it.

prompt is too long: 250000 tokens > 200000 maximum

What to do

  1. Do not paste the full file.
  2. Find the part with the error.
  3. Paste only the last 50 lines, or the lines near the error.

Connected to

Context and Context Window, LLM and AI Model, Prompt

AI Agent

not_started

What it is

An AI agent is an AI model with tools and a goal. It can act without your help. For example, it reads files, runs commands and checks the results. It continues until the task is done or until it needs your decision.

Why it is important

Agents can build things fast for you. You still need the foundations to check their work and to give clear directions.

Real situation

An agent asks you: "Can I run rm -rf build?" You must decide.

What to do

  1. Read the full command before you approve it.
  2. Find out which files the command changes or deletes.
  3. If you are not sure, ask the agent to explain the command first.
  4. Approve only when you understand the result.

Connected to

LLM and AI Model, AI Coding Assistants (Claude Code, OpenCode), MCP (Model Context Protocol), Bot

AI Coding Assistants (Claude Code, OpenCode)

not_started

What it is

These are AI tools that are made for coding. They can read a full project. They can write and edit files. They can run commands and correct errors with your guidance. You tell the goal. They type and check.

Why it is important

These are your main partners when you build. When you know their strengths, you ask for work in a better way.

Troubleshoot

Claude Code tells you "Done". You open the page and the change is not there.

What to do

  1. Ask the assistant which files it changed.
  2. Make sure that the server shows the new files (restart it or load the page again).
  3. Ask the assistant to check the result in the browser.
  4. Do not accept "Done" without a test.

Connected to

Vibe Coding, Prompt, AI Agent, Editor vs IDE (VS Code)

MCP (Model Context Protocol)

not_started

What it is

MCP is a standard way to connect an AI model to outside tools and data, for example files, calendars and databases. MCP gives the AI a safe, fixed way to ask a tool for information or an action.

Why it is important

With MCP, an assistant can check your real tools. It does not guess from the chat.

Troubleshoot

You add an MCP server. The AI tells you that it does not have the tool.

What to do

  1. Restart the AI app after you add the server.
  2. Make sure that the server shows as connected.
  3. Make sure that the command and path in the config are correct.
  4. Ask the AI to list its tools.

Connected to

AI Agent, API, AI Coding Assistants (Claude Code, OpenCode)

Hallucination

not_started

What it is

A hallucination is a confident answer from the AI that is not true. For example, the AI makes a fact, a link or a function that does not exist. This occurs because the model predicts the next words. It does not check facts.

Why it is important

When you know this, you stay safe. Check important facts, links and code. Do not trust each answer.

Error you can see

The AI tells you to use a function. The function does not exist in the library.

TypeError: lib.autoFixAll is not a function

What to do

  1. Search for the function name in the official documentation.
  2. If it is not there, tell the AI that the function does not exist.
  3. Ask the AI to use only functions from the documentation.

Connected to

LLM and AI Model, Prompt, Testing

RAG (Retrieval)

not_started

What it is

RAG is a method where the AI first searches real documents or data. Then it uses what it found to answer. Retrieval means to get the correct information before the answer.

Why it is important

RAG lets AI tools answer from your own notes and files, not only from their training.

Real situation

Your support bot answers a question about prices with old prices. The new price list is not in its documents.

What to do

  1. Add the new price list to the documents of the bot.
  2. Remove the old price list.
  3. Ask the same question again and check the answer.

Connected to

Context and Context Window, LLM and AI Model, Data and Database

Computer Science Core

Algorithm

not_started

What it is

An algorithm is a clear set of steps that solves a problem. It is like a recipe. One problem can have many algorithms. Some are faster or simpler than others.

Why it is important

When the AI tells you about a better approach, it often means a better algorithm for the job.

Real situation

You must find a name in a sorted list of 1,000,000 names. You can check each name, one by one. Or you can open the list at the middle, then the middle of the correct half, and continue. The second algorithm needs only about 20 checks.

What to do

  1. Write the steps in simple words first.
  2. Ask the AI if there is a faster algorithm for the same steps.

Connected to

Data Structure, Big O (Why Speed Matters), Sorting and Searching, Function

Data Structure

not_started

What it is

A data structure is a way to organize data so that it is easy to use. An example is a list for things in order. A different example is a lookup table (map) for a fast search by name.

Why it is important

The correct structure makes code simpler and faster. The wrong structure makes everything difficult.

Real situation

Your app finds a user by email. It checks a list of 50,000 users each time. It is slow. A map with the email as the key finds the user immediately.

What to do

  1. Find the value that you search by (the email).
  2. Ask the AI to keep the users in a map with that key.
  3. Measure the speed before and after.

Connected to

Algorithm, Array and List, Object, Big O (Why Speed Matters)

Big O (Why Speed Matters)

not_started

What it is

Big O is a way to show how the time of a program grows when the data grows. It helps you compare methods. You do not have to time each method on a real computer.

Why it is important

It explains why an app is fast with 10 items but very slow with 10,000 items.

Real situation

Your page compares each product with each other product. With 100 products, that is 10,000 comparisons. With 10,000 products, that is 100,000,000 comparisons. The page freezes.

What to do

  1. Look for a loop inside a loop.
  2. Ask the AI for a method that does not compare each item with all items.
  3. Test with a large amount of data before you go live.

Connected to

Algorithm, Data Structure, Sorting and Searching

Recursion

not_started

What it is

Recursion is when a function calls itself. It calls itself to solve a smaller part of the same problem. It continues until it gets to a simple case that it can answer immediately.

Why it is important

Recursion is in folders inside folders and in data with a tree shape. When you know it, you are not confused.

Error you can see

A function calls itself but never gets to the simple case. It never stops.

RangeError: Maximum call stack size exceeded

What to do

  1. Find the function that calls itself.
  2. Find the stop condition (the base case).
  3. Make sure that each call moves closer to that stop condition.
  4. Test with a very small input.

Connected to

Function, Algorithm, Data Structure

Boolean Logic

not_started

What it is

Boolean logic works with the values true and false. It uses the words AND, OR and NOT. It is the base of each decision that the code makes.

Why it is important

Search filters, login rules and if statements all use it. You do not see it, but it is everywhere.

Real situation

You want users that are from Manila AND are active. The code uses OR. The list shows all users from Manila and all active users.

What to do

  1. Say the rule in words first: "both must be true".
  2. Use AND (&&) when both must be true.
  3. Use OR (||) when one is enough.
  4. Test with one user for each case.

Connected to

Data Types (String, Number, Boolean), Conditionals (If and Else), Algorithm

Object-Oriented Programming (OOP)

not_started

What it is

OOP is a style of coding. You put data and the actions on that data together in objects. For example, a car object has a color and a drive action. This helps you show real things in code.

Why it is important

Many libraries and frameworks use this style. Its words are in many AI explanations.

Error you can see

You use a class but you forget the word new.

TypeError: Class constructor Car cannot be invoked without 'new'

What to do

  1. Find the line in the error.
  2. Write new Car() instead of Car().
  3. Run the code again.

Connected to

Object, Function, Data Structure, Functional Programming (The Idea)

Functional Programming (The Idea)

not_started

What it is

Functional programming is a style where you use small functions. Each function takes input and gives output. It does not change data outside of it. The goal is steps that are predictable and easy to test.

Why it is important

React and many modern tools use these ideas. You will hear these words also in web work.

Real situation

In React, you add an item to a list with list.push(item). The screen does not change. React sees the same list, so it does not update.

What to do

  1. Do not change the old list.
  2. Make a new list: [...list, item].
  3. Give the new list to setList.
  4. Make sure that the screen shows the new item.

Connected to

Function, Object-Oriented Programming (OOP), Input and Output

Sorting and Searching

not_started

What it is

Sorting puts items in an order, for example names from A to Z. Searching finds one item in a group. Both are classic problems with known fast and slow methods.

Why it is important

Almost every list screen sorts or searches. This is practical computer science that you use each day.

Real situation

You sort the numbers 1, 5, 10 and 20. The result is 1, 10, 20, 5. The code sorts them as text, not as numbers.

What to do

  1. In JavaScript, use list.sort((a, b) => a - b) for numbers.
  2. Test with numbers that have different lengths.
  3. Make sure that the result is 1, 5, 10, 20.

Connected to

Algorithm, Big O (Why Speed Matters), Array and List, Data Structure

IT, Internet and Cloud

Internet and Networks

not_started

What it is

A network connects computers so that they can share data. The internet is a very large network of networks. It connects devices around the world with the same rules.

Why it is important

When something does not connect, this picture helps you ask the correct question. Is the problem in the device, the local network or the wider internet?

Troubleshoot

Your site does not open. You must find where the problem is.

What to do

  1. Open a different site, for example google.com.
  2. If no site opens, restart the router.
  3. If only your site does not open, use a different device or mobile data.
  4. If it does not open anywhere, the problem is on the server.

Connected to

IP Address, DNS and Domain Names, Server and Hosting, HTTP and HTTPS

IP Address

not_started

What it is

An IP address is a number label for a device on a network. It is like a home address for data. It tells other devices where to send answers.

Why it is important

Login alerts and server settings often show IP addresses. Now you know what that number is.

Real situation

Your app runs on your laptop at localhost:3000. Your phone cannot open localhost:3000. On the phone, localhost means the phone itself.

What to do

  1. Find the local IP address of the laptop (type ipconfig).
  2. Connect the phone to the same Wi-Fi.
  3. On the phone, open http://192.168.1.5:3000 (use your IP address).
  4. If it does not open, let the app listen on all addresses (0.0.0.0).

Connected to

Internet and Networks, DNS and Domain Names, Server and Hosting

DNS and Domain Names

not_started

What it is

A domain name is an address that people can read, for example example.com. DNS is the system that changes that name into the IP address of the server that keeps the site.

Why it is important

When you connect your own domain, you change DNS settings. Then this step is not frightening.

Error you can see

You connect a new domain to your site. The browser cannot find it.

DNS_PROBE_FINISHED_NXDOMAIN

What to do

  1. Make sure that the DNS record in your domain provider is correct.
  2. Compare it with the record that your host (for example Vercel) gives you.
  3. Wait. DNS changes can take from minutes to 48 hours.
  4. Check the domain with a DNS checker site.

Connected to

IP Address, Internet and Networks, Server and Hosting, How a Web Page Loads

HTTP and HTTPS

not_started

What it is

HTTP is the set of rules that browsers and servers use to send web pages and data. HTTPS is the same set of rules with encryption. Encryption changes the data into a secret code, so other people cannot read it while it moves.

Why it is important

The S is important for login pages and payment pages. APIs also use these rules.

Error you can see

You open your site. The browser shows a red warning.

NET::ERR_CERT_COMMON_NAME_INVALID — Your connection is not private

What to do

  1. WARNING: Do not type passwords on a page with this warning.
  2. Make sure that the SSL certificate is for this exact domain.
  3. In your host, add the domain and let it make the certificate.
  4. Wait for the certificate, then open the site again.

Connected to

HTTP Requests (GET and POST), Security Basics (Passwords, Permissions, Encryption), Client and Server

Server and Hosting

not_started

What it is

A server is a computer that stays on to answer requests from clients. Hosting is the service that keeps your site or app on a server that connects to the internet.

Why it is important

Every site that you launch needs hosting. This word tells you where your work really lives.

Error you can see

Your site worked yesterday. Today the host shows an error page.

502 Bad Gateway

What to do

  1. Know that 502 means the server behind the host did not answer correctly.
  2. Open the logs in your hosting dashboard.
  3. Find the error at the time of the problem.
  4. Restart or deploy the app again after you correct it.

Connected to

Client and Server, Cloud, Deployment, DNS and Domain Names

Cloud

not_started

What it is

The cloud is computers on the internet that a provider owns. You use them, not your own machine, to keep data and run apps. You rent space and power when you need it.

Why it is important

Your files, sites and AI tools mostly live in the cloud. It is the ground that they run on.

Real situation

You delete a file from your laptop. It also disappears from your phone and from OneDrive. Sync copies each change to all devices.

What to do

  1. Know that sync is not a backup.
  2. To get the file back, open the cloud Recycle Bin (for example OneDrive online).
  3. Keep a separate backup of important files.

Connected to

Server and Hosting, Deployment, Backup, Virtual Machine and Container (Docker)

Deployment

not_started

What it is

Deployment is when you put a finished version of your app on a server. Then real users can open and use it. It includes moving the code, setting the settings and checking that it works live.

Why it is important

To build on your laptop is only half of the work. Deployment makes the app real for other people.

Error you can see

The app works on your laptop. The deploy fails on the host.

Build failed: Module not found: Can't resolve './Components/Header'

What to do

  1. Read the file name in the error.
  2. Compare the capital letters with the real file name (components or Components).
  3. Windows ignores capital letters, but the server does not.
  4. Correct the name and deploy again.

Connected to

Release (Build, Test, Ship), Server and Hosting, Cloud, GitHub

Virtual Machine and Container (Docker)

not_started

What it is

A virtual machine acts like a full separate computer inside a real computer. A container is a lighter box. It holds one app and everything that the app needs, so it runs the same way everywhere. Docker is a popular tool for containers.

Why it is important

This explains how one server runs many apps safely. It also explains why a setup works on one machine but not on another.

Error you can see

You start a container. It cannot use the port.

Bind for 0.0.0.0:5432 failed: port is already allocated

What to do

  1. Find what uses the port (type docker ps).
  2. Stop the old container (docker stop <name>).
  3. Or use a different port, for example -p 5433:5432.
  4. Start the container again.

Connected to

Cloud, Server and Hosting, Operating System, Deployment

Security Basics (Passwords, Permissions, Encryption)

not_started

What it is

A password proves that you are you. Permissions set what an account can see or change. Encryption changes data into a secret code, so only a person with the correct key can read it.

Why it is important

These three ideas protect your accounts, your users and your API keys in each project.

Real situation

You push your project to a public GitHub repo. GitHub sends you an email: a secret key is visible in your code.

What to do

  1. WARNING: Think that the key is already stolen.
  2. Delete (revoke) the key in the service immediately.
  3. Make a new key and put it in the .env file only.
  4. Add .env to the .gitignore file.

Connected to

Login, Tokens and API Keys, HTTP and HTTPS, Environment Variables and the .env File

Backup

not_started

What it is

A backup is an extra copy of important data in a different place. When the original is lost, damaged or deleted, you can get the data back from the backup.

Why it is important

A backup habit can save a full project. It can also save your files and your content library.

Real situation

Your laptop stops. The drive is damaged. Your project was only on that laptop.

What to do

  1. Keep 3 copies of important data.
  2. Keep them on 2 different types of storage.
  3. Keep 1 copy in a different place (for example the cloud).
  4. Test a restore one time each month.

Connected to

Storage (SSD and HDD), Cloud, Git

Building Software (The Process)

Planning and Requirements

not_started

What it is

Planning is when you decide what to build before you build it. Requirements are a clear list of what the app must do and who it is for. With this list, all people agree on the goal.

Why it is important

A short, clear plan is the difference between an AI build that hits the target and a build that goes everywhere.

Real situation

You ask the AI for "a booking app". It makes a full hotel system. You only needed one form for tutor sessions.

What to do

  1. Write who uses the app.
  2. Write the 3 to 5 things that the app must do.
  3. Write what the app must not do.
  4. Give this list to the AI before it starts.

Connected to

UI and UX, Release (Build, Test, Ship), README and Documentation, Workflow and Pipeline

UI and UX

not_started

What it is

UI (user interface) is what the user sees and touches: buttons, text and layout. UX (user experience) is how easy and smooth the full flow is, from start to end.

Why it is important

Good UI and UX are why some pages feel correct and other pages are confusing, also with the same content.

Real situation

Users do not complete your sign-up form. The form has 12 fields and a small button at the bottom.

What to do

  1. Remove each field that you do not need now.
  2. Make the button large and clear.
  3. Ask one person to use the form while you watch.
  4. Change what confuses them.

Connected to

CSS, Frontend vs Backend, Planning and Requirements, Testing

Testing

not_started

What it is

Testing is when you check that the app does what it must do. You try real actions and edge cases before users try them. You can test by hand when you click. Automatic tests are checks that are written as code.

Why it is important

A quick test before you ship finds bad bugs while they are cheap to correct.

Real situation

Your form works with a normal name. It fails with an empty name, a very long name and a name with an emoji.

What to do

  1. Test the normal case.
  2. Test an empty input.
  3. Test a very long input.
  4. Test special letters (ñ, emoji) and test on a phone.

Connected to

Debugging, The Debugging Workflow, Release (Build, Test, Ship), Errors and Bugs

The Debugging Workflow

not_started

What it is

This is a routine to correct a problem. First, read the error. Next, make the bug occur again. Next, find the small area where it occurs. Next, change one thing. Last, test again. Do these steps again until the app stays correct.

Why it is important

A routine is better than a random guess. This is very important when you are tired.

Troubleshoot

Users tell you that the checkout fails "sometimes".

What to do

  1. Read the error in the logs.
  2. Find the steps that make the error occur again.
  3. Remove parts until you find the smallest case.
  4. Change one thing and test again.

Connected to

Debugging, Errors and Bugs, Testing

Refactoring

not_started

What it is

Refactoring is when you make the inside of the code better but do not change what it does outside. The goal is code that is cleaner and simpler. This code is easier to change later.

Why it is important

When the AI tells you that it refactored something, it cleaned the code. It did not add a feature.

Real situation

The AI refactors a file. Now the login does not work. The refactor changed the behavior.

What to do

  1. Commit before each refactor.
  2. Test the main features after the refactor.
  3. If a feature breaks, use git to go back.
  4. Ask for a smaller refactor.

Connected to

Comments, Code and Syntax, Maintenance and Technical Debt, Function

Release (Build, Test, Ship)

not_started

What it is

A release is a finished version of the app that you give to users. To build is to prepare the final files. To test is to check these files. To ship is to deploy that version live.

Why it is important

This is the finish line of each project. When you know the steps, each launch is calm.

Error you can see

The build stops because of a warning that is now an error.

Failed to compile. 'useState' is defined but never used.

What to do

  1. Run npm run build on your laptop before you deploy.
  2. Read each error and correct it.
  3. Run the build again until it passes.
  4. Deploy only after the build passes.

Connected to

Deployment, Testing, Git Workflow (Commit, Branch, Merge, Pull Request), Planning and Requirements

Maintenance and Technical Debt

not_started

What it is

Maintenance is the continuous work to correct bugs and keep the app running after release. Technical debt is the extra work in the future that quick shortcuts make now.

Why it is important

Each app that you launch needs care. When you name the debt, you can plan when to clean it.

Real situation

You updated a package. Three pages stopped. The old code used a quick fix that only worked with the old version.

What to do

  1. Write each shortcut in a list (a debt list).
  2. Update packages one at a time.
  3. Test after each update.
  4. Correct one debt item each week.

Connected to

Refactoring, Debugging, Planning and Requirements

104 topics. Coding Foundations.

Otto

Your guide on this site