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.

17 conceptsBeginner to Intermediate

Every programming languages concept

Programming languagesBeginner

Static vs dynamic typing

Whether type errors are caught before the program runs or while it runs.
OPEN LESSON
Programming languagesBeginner

Hoisting in JavaScript

Why code can call a function before its definition, and what the temporal dead zone is.
OPEN LESSON
Programming languagesBeginner

Pass by value vs pass by reference

What a function receives: a copy of the value, or the caller’s own variable.
OPEN LESSON
Programming languagesBeginner

References

Two names can lead to one object, so a change through one shows through the other.
OPEN LESSON
Programming languagesIntermediate

Prototypal inheritance

JavaScript objects inherit by linking to other objects and searching up the chain.
OPEN LESSON
Programming languagesIntermediate

Generators and iterators

A function that pauses at yield and hands out values one at a time, on demand.
OPEN LESSON
Programming languagesIntermediate

Coroutines

Functions that pause and resume, so many tasks can take turns on one thread.
OPEN LESSON
Programming languagesIntermediate

Concurrency vs parallelism

Taking turns on one core versus truly running at once on several.
OPEN LESSON
Programming languagesIntermediate

Goroutines and channels

Lightweight Go functions that run side by side and pass values through channels.
OPEN LESSON
Programming languagesIntermediate

Garbage collection

The runtime traces what a program can still reach and frees everything else.
OPEN LESSON
Programming languagesBeginner

Classes and objects

A class is the template; each object built from it carries its own data.
OPEN LESSON
Programming languagesIntermediate

Polymorphism

One method call, many behaviours: each object answers in its own way.
OPEN LESSON
Programming languagesBeginner

Pure functions

Functions that only turn inputs into an output, and why that makes code easy to trust.
OPEN LESSON
Programming languagesBeginner

Map, filter and reduce

Three tools that change, select and combine the items of a list without a loop.
OPEN LESSON
Programming languagesIntermediate

Monads

A box around a value and one rule for chaining steps, built up from lookups that can fail.
OPEN LESSON
Programming languagesIntermediate

Regular expressions

Patterns for matching text, and how the engine backtracks its way to a match.
OPEN LESSON
Programming languagesBeginner

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