Your Computer Is Two Things
Storage and compute. Everything else is a layer on top. The truck-bed analogy for RAM that makes it click.
Your Computer Is Two Things
Here is the aha for this entire lesson. Your computer is really just two things: storage and compute. Everything else (the operating system, apps, the internet) is a layer on top of those two.
That is it. Two things. Let's make them concrete.
Storage: The Filing Cabinet
Storage is where stuff lives when your computer is off. Your hard drive. Your files. Photos, spreadsheets, documents. Turn off the computer, turn it back on, and they are still there. Storage is persistent.
But there are two kinds of storage, and the difference matters more than most people realize:
Your hard drive (SSD) is like a giant hardware store warehouse. Massive. Slow to walk through. It holds everything you own, but retrieving something takes a trip down the aisle.
RAM (memory) is like the bed of a pickup truck. Small. Fast. Right there. When you open a file, your computer copies it from the warehouse (hard drive) into the truck bed (RAM) so the processor can work with it quickly. When you close the file, it gets unloaded from the truck bed. When you shut down, the truck bed is empty.
This is why having more RAM makes your computer feel faster. A bigger truck bed means more things can ride along at once without the computer needing to make trips back to the warehouse.
Storage
Where data lives when the power is off. Your hard drive, your files, your databases — anything that needs to stick around.
A filing cabinet. You put things in, close the drawer, and they're still there tomorrow.
- Hard drives and SSDs
- RAM (temporary, fast storage)
- Cloud storage (Google Drive, S3)
- Databases (PostgreSQL, MongoDB)
RAM: The Truck Bed
Close what you are not using. Free up the truck bed.
Here is why a "clean desktop" makes your computer faster. Every file, folder, and app sitting open takes up space in RAM (the truck bed). Close what you are not using, and you free up RAM for the things you are actually working on. It is not a myth. It is physics.
Compute: The Brain
Compute is the ability to DO things with data. The processor (CPU) runs instructions, performs calculations, executes operations. If storage is the filing cabinet, compute is the person who opens the cabinet, reads the files, and does something with them.
Here is the critical distinction: compute is ephemeral. It only exists while it is running. If you are saving a large file and your laptop crashes, the save operation is gone. The partially saved file might be corrupted. That is because the act of processing disappeared, but whatever was already written to storage persists.
Storage is like a book on a shelf. It stays whether anyone is reading it or not. Compute is like the act of reading. It only exists while someone is actually doing it. The moment they stop, the "reading" is gone, but the book remains.
Hands-On: See This For Yourself
Open Activity Monitor on your Mac (search for it in Spotlight, or find it in Applications > Utilities). Click the Memory tab at the top. Sort by the "Memory" column.
You will see every running app and how much RAM it is using. Chrome is almost always near the top. Each open tab is a separate process eating truck-bed space.
Now look at the bottom of the window. You will see "Memory Used" and "Memory Pressure." If the pressure graph is green, your truck bed has room. If it is yellow or red, your computer is making constant trips back to the warehouse, and everything feels slow.
Try this: open 20 Chrome tabs, then check Activity Monitor. Watch the memory usage climb. Now close all but 3 tabs and watch it drop. That is RAM in action, the truck bed filling up and emptying out.
Networking: The Connection
Networking is what lets your computer talk to other computers. Your WiFi, an ethernet cable, the internet itself. Without networking, your computer is an island. It can store and process, but it cannot communicate.
When you visit google.com, your computer sends a request through the network to Google's computers, and they send back a response. A firewall is like a bouncer at a door. It decides which network requests are allowed in and which get blocked.
Networking is important, but it is secondary. You can do enormous amounts of useful work on a computer with no internet connection. You cannot do anything on a computer with no storage or no compute. That is why the mental model is: storage and compute are the two core things. Networking connects them to the outside world.
The Operating System: The Friendly Layer
On top of storage and compute sits the operating system (Windows, macOS, Linux). The OS is just a user-friendly interface for managing these two things, plus networking.
You do not actually NEED the operating system for storage to work. If you took the screen off your laptop, the hard drive still holds your files. The OS just makes it easy for humans to interact with hardware through windows, icons, and clicks.
But the OS itself uses compute. Running macOS takes processing power. That is why a server in a data center (which does not need a pretty interface) runs a stripped-down OS without a graphical display. It saves compute for actual work instead of rendering a desktop nobody is looking at.
Different Computers, Same Two Things
Your laptop, a phone, a server in Google's data center. They are all storage + compute, with networking to connect them. The difference is how much of each they have and what they are optimized for.
- Your laptop: balanced. Enough of both for general use, plus a screen and keyboard for interaction.
- A server: lots of compute and storage, heavy networking, no screen. Designed to serve requests around the clock.
- Your phone: limited compute and storage, but strong networking (cellular + WiFi). Optimized for portability.
When your computer runs slow, it is almost always because one of the two core things is maxed out. Too many apps open? That is compute (CPU) and RAM. Hard drive full? That is storage.
Why This Matters
This is the mental model for everything that follows in this course. When we talk about the cloud (Lesson 10), it is just renting someone else's storage and compute. When we talk about APIs (Lesson 7), it is networking between computers. When we talk about databases (Lesson 8), it is organized storage.
Every concept in tech maps back to these two building blocks. Networking is just the road between them.
If someone starts throwing around technical terms and you get lost, ask yourself: is this about storage or compute? Almost everything in tech maps to one of those two. That question alone will cut through a huge amount of jargon.
Further Reading
- How Computers Work (Khan Academy): free video series covering the basics of hardware, software, and the internet
- Code.org: How Computers Work: short, beginner-friendly video playlist by Bill Gates and others
- Crash Course Computer Science: 40-episode YouTube series that starts from the very basics