Computer Science · Beginner
How Computers Work
From a switch to the internet, one layer at a time — the ground floor everything else is built on.
- Lessons
- 37 lessons
- Total runtime
- 56 hours of video
- Modules
- 7 modules
- Optional lessons
- 18 optional
Free. No account.

About this course
Most people who use computers professionally have a gap somewhere in the middle. They know their language and they know roughly what electricity is, and between those two points is a region of vagueness containing the words register, cache, kernel and packet. The gap is rarely a problem, right up until it is — and then it is the reason a bug makes no sense, or a performance decision gets made by superstition.
This course closes it. It is Crash Course Computer Science in order, which builds the machine from the bottom: a switch becomes a logic gate, gates become arithmetic, arithmetic plus memory becomes a processor, a processor plus instructions becomes something you can program. Nothing is assumed and nothing is skipped, and by the fourth module you can trace a line of code down to electrons without any step being magic.
The order is the whole value. Each episode is about eleven minutes and each one genuinely uses the last, which is why watching three consecutive episodes teaches far more than watching three interesting ones. It is also why this works as a course and not merely as a playlist.
The later modules cover the parts you interact with daily and understand least — operating systems, file systems, and then networks and the internet as a stack of layers rather than a single thing. About four hours in the core sequence, in eleven-minute pieces, which makes it unusually easy to finish. The optional lessons go a great deal deeper on the three topics that most reward it — how a processor physically works, what an operating system is actually doing, and how networks stack up into the internet — and take the pool to around fifty-six hours. It pairs well with the programming courses here: take it before if you like knowing why things work, or after if you would rather see the machinery once the code is familiar.
What you'll be able to do
- Trace the path from a physical switch to a working processor
- Read and write binary, and explain how text and numbers are represented
- Say what a CPU actually does in a single clock cycle
- Explain what an operating system is for, and what the kernel does
- Describe how a request travels from your browser to a server and back
- Understand the difference between an algorithm and its implementation, and why some are faster
Curriculum
37 lessons · 56 hours
Before Electronics
3 lessons · 1h 5m
- 01CompletedEarly ComputingCrashCourseVideoComputing as an activity long before it was a machine — looms, censuses and mechanical calculation. Useful because it separates the idea of computation from the electronics that later happened to implement it.11m
- 02CompletedElectronic ComputingCrashCourseVideoRelays, then vacuum tubes, then transistors. Three technologies doing exactly the same job faster, which is most of what the history of computing turns out to be.11m
- 03CompletedHow a Computer Works — From Silicon to AppsOptionalImprobable MatterVideoThe entire stack in one video, starting from the physics of doped silicon. A useful overview of where this whole course is going before you start climbing the layers.43m
From Switches to Arithmetic
3 lessons · 32m
- 04CompletedBoolean Logic & Logic GatesCrashCourseVideoThe bottom layer. Everything above this in the course is gates arranged more elaborately — which is a genuinely surprising claim until the next two episodes demonstrate it.10m
- 05CompletedRepresenting Numbers and Letters with BinaryCrashCourseVideoHow two states become any number, any letter and eventually any image. The section on floating point explains a family of bugs that otherwise look like the computer cannot add up.11m
- 06CompletedHow Computers Calculate - the ALUCrashCourseVideoAn adder built out of the gates from two episodes ago. This is the moment the course stops being history and starts being construction.11m
Building a Computer
9 lessons · 3h 34m
- 07CompletedRegisters and RAMCrashCourseVideoMemory made from the same gates, wired to remember. Worth watching twice — the latch is the least intuitive circuit in the course and the most important.12m
- 08CompletedThe Central Processing UnitCrashCourseVideoArithmetic plus memory plus a clock, and suddenly there is a computer. Fetch, decode, execute is the loop every processor you will ever use is running right now.12m
- 09CompletedInstructions & ProgramsCrashCourseVideoWhere a program stops being an abstraction and becomes numbers in memory that the previous episode's loop reads. The bridge between hardware and software, in eleven minutes.11m
- 10CompletedAdvanced CPU DesignsOptionalCrashCourseVideoOptional. Caches, pipelining and multiple cores — the tricks that make modern processors fast, and the reason their real behaviour is harder to predict than the simple model suggests.12m
- 11CompletedHow a CPU WorksOptionalIn One LessonVideoA complete, very simple processor built up in twenty minutes. The clearest single explanation of the fetch-decode-execute cycle there is.20m
- 12CompletedHow Do Transistors Build Into a CPU?OptionalBranch EducationVideoThe layer below the logic gates, animated at the scale of individual transistors. This is where the abstraction in the Boolean logic lesson stops being an abstraction.27m
- 13CompletedThe Engineering That Runs the Digital WorldOptionalBranch EducationVideoA modern processor rather than a simplified one — pipelines, cores and caches, rendered in a level of visual detail nothing else here approaches.36m
- 14CompletedHow CPU Memory and Caches WorkOptionalComputerphileVideoWhy the gap between the processor and main memory dominates modern performance, and what the cache hierarchy does about it. The most practically useful lesson in this module for a programmer.35m
- 15CompletedHow Do CPUs Read Machine Code?OptionalBen EaterVideoBen Eater on real hardware, with an oscilloscope, watching a 6502 fetch instructions one clock cycle at a time. Nothing else makes the machine feel this physical.49m
Software
6 lessons · 6h 17m
- 16CompletedThe First Programming LanguagesCrashCourseVideoWhy anyone bothered inventing a language when the machine already had instructions. The invention of the compiler is one of the genuinely great ideas in the subject.12m
- 17CompletedProgramming Basics: Statements & FunctionsCrashCourseVideoThe constructs every language shares, described from underneath now that you know what they compile down to.12m
- 18CompletedIntro to AlgorithmsCrashCourseVideoWhy two correct programs can differ by a factor of a million. Big-O notation introduced as something useful rather than something examinable.11m
- 19CompletedData StructuresCrashCourseVideoArrays, lists, trees and graphs, and the idea that how you arrange data determines what is cheap to ask of it.10m
- 20CompletedAlan TuringOptionalCrashCourseVideoOptional, and the most philosophical episode here: what a computer can compute in principle, and the proof that some things cannot be computed at all.12m
- 21CompletedAlgorithms and Data Structures TutorialOptionalfreeCodeCamp.orgVideoOptional, and a serious step up in depth — five hours implementing the structures from the two episodes above, in code. Take it if the ten-minute treatment left you wanting the real thing.5h 20m
The Machine You Actually Use
8 lessons · 28h 46m
- 22CompletedOperating SystemsCrashCourseVideoThe program whose job is running other programs. Multitasking, memory protection and why one crashing application no longer takes the machine with it.13m
- 23CompletedMemory & StorageCrashCourseVideoThe hierarchy from registers to disk, and the enormous speed differences between the levels. This is the episode that explains most performance surprises in real software.12m
- 24CompletedFiles & File SystemsCrashCourseVideoWhat a file is when you look underneath the icon, and why deleting one does not actually remove anything.11m
- 25CompletedCompressionOptionalCrashCourseVideoOptional. Lossless and lossy, and the reason a photograph can be a tenth of its size while a text file cannot. A satisfying self-contained idea.12m
- 26CompletedOperating System BasicsOptionalBrian WillVideoProcesses, kernel mode and system calls in twenty minutes. The concepts the eleven-minute episode has to leave out, and the ones that make the rest comprehensible.23m
- 27CompletedHow the OS Actually WorksOptionalBen DickenVideoScheduling, virtual memory and file systems, demonstrated rather than described. The best single hour here on what happens between your program and the hardware.1h 20m
- 28CompletedWhat Is an Operating System? — Berkeley CS162OptionalJohn KubiatowiczVideoThe opening lecture of Berkeley's operating systems course. A real university treatment, and a good test of whether you want the full twenty-five-hour version below.1h 23m
- 29CompletedOperating Systems Course for BeginnersOptionalfreeCodeCamp.orgVideoTwenty-five hours, a complete university module. The longest item in this catalogue by some distance, and a genuine alternative to a semester of coursework.24h 52m
Connecting Them
7 lessons · 16h 3m
- 30CompletedComputer NetworksCrashCourseVideoTwo machines sharing a wire, and the surprisingly social problem of deciding who talks when. Packet switching is the idea to take from this one.12m
- 31CompletedThe InternetCrashCourseVideoThe layers — IP, TCP, DNS — and how a message survives a journey nobody planned in advance. The best twelve minutes anywhere on what happens when you press enter in a browser.12m
- 32CompletedThe World Wide WebCrashCourseVideoThe web as one application running on the internet, not a synonym for it. A distinction almost universally lost, and useful to have straight.12m
- 33CompletedCybersecurityCrashCourseVideoThreat models, authentication and why security is a property of a whole system rather than a feature you add. The natural closing episode for everything above.12m
- 34CompletedHow Does the Internet Work?OptionalfreeCodeCamp.orgVideoThe whole journey of a request, from typing a URL to bytes arriving back. Ties together the four short episodes above into one continuous story.1h 43m
- 35CompletedComputer Networking — OSI Model Deep DiveOptionalKunal KushwahaVideoFour hours going layer by layer with real-world examples at each. The layered model is the whole idea of networking, and this is where it stops being a diagram to memorise.4h 7m
- 36CompletedComputer Networking Course — Network EngineeringOptionalfreeCodeCamp.orgVideoNine hours aimed at the CompTIA Network+ certification — routing, switching, subnetting and troubleshooting. Vocational rather than conceptual, and the right thing if networks are becoming your job.9h 25m
What Comes Next
1 lesson · 12m
Credits
Every lesson in this course was made by one of these channels. Tubeversity sequenced them; it did not make them. If a course is useful to you, the people below are the ones who earned it.