Programming Fundamentals
The language-agnostic core every developer needs, from binary and variables to memory, concurrency and compilers.
Beginner
- What is Programming?: Writing precise instructions that a computer can follow to solve a problem.
- How Code Runs: How source code becomes instructions a CPU executes: compilers, interpreters, bytecode and JIT.
- Binary and Number Systems: Bits, bytes, binary and hexadecimal, converting between bases, and why integers overflow.
- Variables and Assignment: Giving names to values, changing what a name refers to, and naming things well.
- Data Types and Values: Numbers, text, booleans, null and collections, and how languages convert between them.
- Control Flow: Making decisions with if/else and repeating work with for and while loops.
- Functions and Parameters: Packaging steps into reusable, named units that take inputs and return outputs.
- Basic Data Structures: Lists/arrays, dictionaries/maps, sets and tuples, and how to choose between them.
- Debugging Basics: Finding and fixing bugs: reading errors and stack traces, printing, breakpoints and minimal reproductions.
- Version Control Basics: Tracking changes with Git: repositories, commits, branches, merges, remotes and good commit messages.
Intermediate
- Type Systems: How languages classify values and catch mismatches: static vs dynamic, strong vs weak, inference, nominal vs structural.
- Value vs Reference: What actually gets copied when you assign a variable or pass an argument, and why shared objects cause aliasing bugs.
- Stack and Heap: The two main regions of program memory: the call stack for function frames and the heap for longer-lived data.
- Scope and Lifetime: Where a name is visible (scope) versus how long its value exists (lifetime), including lexical scoping, shadowing and closures.
- Mutability and Immutability: Data that can change in place versus data that never changes, and why immutable data makes programs easier to reason about.
- Object-Oriented Programming: Organising code around objects that bundle data with behaviour: classes, encapsulation, abstraction, inheritance, polymorphism and interfaces.
- Inheritance vs Composition: Two ways to reuse behaviour: extending a class (is-a) or holding other objects (has-a), and why composition is usually preferred.
- Functional Programming: Building programs from pure functions, first-class and higher-order functions, map/filter/reduce, immutability, currying and composition.
- Error Handling Strategies: Exceptions vs error values, checked vs unchecked errors, failing fast, and reliable cleanup with finally, defer and RAII.
- Testing Fundamentals: Unit, integration and end-to-end tests, the test pyramid, arrange-act-assert, test doubles, TDD and what makes a test good.
- Character Encoding and Unicode: How text becomes bytes: ASCII, Unicode code points, UTF-8 and UTF-16, grapheme clusters, mojibake and string length pitfalls.
- Floating-Point Numbers: How computers store real numbers with IEEE 754, why 0.1 + 0.2 isn't 0.3, comparing with tolerance, NaN and Infinity, and handling money.
- Regular Expressions: A compact pattern language for matching text: literals, character classes, quantifiers, anchors, groups, greedy vs lazy, and ReDoS.
Advanced
- Memory Management and Garbage Collection: How programs get memory, give it back, and how languages automate (or don't automate) that job.
- Pointers and References: Values that hold the location of other values, and what goes wrong when that location is invalid.
- Processes and Threads: How the operating system runs many programs, and many paths within one program, at the same time.
- Concurrency and Race Conditions: What goes wrong when several tasks touch the same data at once, and why the result depends on timing.
- Locks and Deadlocks: Tools that make threads take turns on shared data, and the ways they can get stuck forever.
- Async and Event-Driven Programming: Handling many slow operations at once by reacting to events instead of blocking while you wait.
- How Compilers Work: The pipeline that turns source code text into something a machine can run.
- Bitwise Operations: Working directly with the individual bits of an integer: masks, flags, shifts and classic tricks.
- Design Patterns Overview: Named, reusable solutions to recurring design problems, and when they help or just add layers.
- Programming Paradigms: The major styles of organizing programs, what each is good at, and how modern languages mix them.
- Clean Code and Refactoring: Writing code other people can read and change safely, and improving existing code without breaking it.