Programming languages explained
The rules underneath the code you write: when types are checked, and what a language does with your declarations before it runs them.
Every programming languages concept
Static vs dynamic typing
Whether type errors are caught before the program runs or while it runs.
OPEN LESSON
Hoisting in JavaScript
Why code can call a function before its definition, and what the temporal dead zone is.
OPEN LESSON
Pass by value vs pass by reference
What a function receives: a copy of the value, or the caller’s own variable.
OPEN LESSON
References
Two names can lead to one object, so a change through one shows through the other.
OPEN LESSON
Prototypal inheritance
JavaScript objects inherit by linking to other objects and searching up the chain.
OPEN LESSON
Generators and iterators
A function that pauses at yield and hands out values one at a time, on demand.
OPEN LESSON
Coroutines
Functions that pause and resume, so many tasks can take turns on one thread.
OPEN LESSON
Concurrency vs parallelism
Taking turns on one core versus truly running at once on several.
OPEN LESSON
Goroutines and channels
Lightweight Go functions that run side by side and pass values through channels.
OPEN LESSON
Garbage collection
The runtime traces what a program can still reach and frees everything else.
OPEN LESSON
Classes and objects
A class is the template; each object built from it carries its own data.
OPEN LESSON
Polymorphism
One method call, many behaviours: each object answers in its own way.
OPEN LESSON
Pure functions
Functions that only turn inputs into an output, and why that makes code easy to trust.
OPEN LESSON
Map, filter and reduce
Three tools that change, select and combine the items of a list without a loop.
OPEN LESSON
Monads
A box around a value and one rule for chaining steps, built up from lookups that can fail.
OPEN LESSON
Regular expressions
Patterns for matching text, and how the engine backtracks its way to a match.
OPEN LESSON
Character encoding (ASCII, Unicode, UTF-8)
How text becomes bytes, from ASCII's 128 characters to UTF-8, and why it sometimes garbles.
OPEN LESSON