Cheat sheet · Foundations
CS core subjects cheat sheet
Opens with creditsFor computer science students and self-taught developers revising the core subjects: how computers run programs, OOP, operating systems, networks, databases, software engineering and theory. Use it to check you can explain each idea in your own words, then go back to the roadmap topic for anything you cannot.
Chapters
8 chapters · 72 concepts
1How a computer runs a programBits, logic, the CPU, memory and the path from source code to running instructions. Every later chapter sits on this picture.10 concepts
- 1Binary and hexadecimalNumber systems with base 2 and base 16.
- 2Two's complementThe standard way to store signed integers: to negate a number, invert every bit and add one.
- 3Character encodingThe mapping from characters to numbers and bytes.
- 4Floating pointThe binary format for real numbers: a sign, an exponent and a fraction.
- 5Logic gatesTiny circuits that compute a boolean function of their inputs.
- 6CPU, registers and ALUThe CPU executes instructions.
- 7Fetch, decode, executeThe loop every CPU runs: fetch the instruction at the program counter, decode it, execute it, then move to the next instruction or jump.
- 8Memory hierarchyStorage layers from registers and CPU caches to RAM, SSD and network, each much larger and much slower than the one above.
- 9Stack and heapTwo memory regions of a running program.
- 10Compiler, interpreter and JITA compiler translates a whole program to machine code ahead of time; an interpreter executes it as it reads.
10 in this chapterOpen this chapter2Object-oriented programming and designClasses, the four pillars, composition and SOLID. The aim is code that stays easy to change, not a list of definitions.9 concepts
- 1Class and objectA class defines the data and behaviour of a kind of thing; an object is one instance of it with its own state.
- 2Coupling and cohesionCohesion is how closely the parts of one class belong together; coupling is how much one class depends on the internals of others.
- 3EncapsulationKeeping an object's data private and exposing only operations that keep it valid.
- 4InheritanceA subclass reuses and extends a parent class, and can be used wherever the parent is expected.
- 5PolymorphismOne call working on many types, each responding in its own way.
- 6Abstraction and interfacesDepending on what something does rather than how.
- 7CompositionBuilding an object from other objects it holds and delegates to, such as a Car that has an Engine.
- 8SOLID principlesFive design guidelines: single responsibility, open closed, Liskov substitution, interface segregation and dependency inversion.
- 9Design patternA named, reusable solution to a common design problem, such as Strategy for swappable algorithms or Observer for notifying listeners.
9 in this chapterOpen this chapter- Operating systemsHow one machine runs many programs safely: processes, threads, scheduling, virtual memory, synchronisation and file systems.11 conceptsOpens with credits
- Computer networksLayers, addressing, transport, DNS, HTTP and TLS: everything between typing a URL and seeing the page.9 conceptsOpens with credits
- Databases: theory and internalsThe relational model, keys, normalisation, transactions, isolation and indexes. Queries stay light here; the SQL roadmap goes deeper.9 conceptsOpens with credits
- Software engineeringHow teams build software: life cycles, requirements, UML, version control, testing and code quality.9 conceptsOpens with credits
- Theory worth knowingComplexity, discrete maths, automata, grammars and the limits of computation, at the level of intuition.9 conceptsOpens with credits
- Tie it together with projectsBuild small systems that force the subjects to connect, and use exams to check understanding rather than memory.6 conceptsOpens with credits
- 9Glossary, A to ZEvery concept in the sheet and the smaller terms it uses, in one list.219 terms
About this sheet
OS, networks, databases, OOP.
Related on Sefism
Picked from the other libraries by shared topics.
Career questions
See allWork with me
Stuck on something specific?
Writing only gets you so far. If you want an answer to your situation rather than the general case, book a session and we will work through it together. Sessions are free for approved Sefism members, and a few slots open each week.
- 1:1 Mentorship
- Fresh Graduate Mentorship
- Career Guidance
Brand deals, promos and partnerships: tauseeffayyaz@gmail.com