
Programming
Paradigms
SW7 · Autumn 2026
Aalborg University Copenhagen
Programming Paradigms
SW7 · Autumn 2026 · Aalborg University Copenhagen
This course examines key design decisions and major differences between programming languages, focusing on characteristics such as state, control flow, process communication, data types and modularity.
These decisions shape everyday engineering: git branches instantly because it never overwrites data, allowing access to all previous states; WhatsApp serves hundreds of millions of users on message-passing concurrency; Android adopts Rust because most security vulnerabilities are memory errors that the language design rules out through its type system. These concepts, however, have a wider scope than any single technology or programming language that only make some design choices default. As AI assistants generate more of the code, recognizing the paradigm beneath an unfamiliar program becomes a core engineering skill. In this course, we will learn to identify and apply these design decisions through study, practice, and implementation.
Thirteen sessions, every Wednesday 12:30–16:15: a 2×45 min lecture, then a 2 h lab with homework. We already know Java, C#, Python and some C; we will read and write OCaml and other languages as the ideas require them.
Sessions
Part 1 Data & control sessions 2-5
How a program holds its data and decides what runs next: data that is never overwritten, values defined by their cases or by their operations, recursion and folds, and functions handed around as values to drive a traversal or to delay a computation.
| Date | Session | ||
|---|---|---|---|
| 09 SepWhyTestStory | 02 Persistent and Ephemeral Data Structures Block 1Persistent data structures PDF | Lab | |
| Block 1 Persistent data structuresPDF | Warm-upThe two-list queue, on paper | PDF·solutions | |
| Block 2 Introduction to OCamlPDF·OCaml | QuestOne queue, three languages | HTML·solutions | |
| 16 SepWhyTestStory | 03 Algebraic Data Types and Objects | Lab | |
| Block 1 Two ways to be a valueHTML·PDF | Warm-upA notification as a type | PDF·OCaml·solutions | |
| QuestA little music language | HTML·GitHub·solutions | ||
| 23 SepWhyTestStory | 04 Functional Programming and Control | Lab | |
| Block 1 Control patternsHTML·PDF | Warm-upThe λ-calculus on paper | PDF·solutions | |
| Block 2 The λ-calculusHTML·PDF | QuestAn evaluator for the λ-calculus | HTML·GitHub·solutions | |
| 30 SepWhyTestStory | 05 Functions as Values: Iterators and Streams | Lab | |
| Block 1 IteratorsHTML·PDF | Warm-upLists, then Pascal's triangle | PDF·solutions | |
| Block 2 Thunks and streamsHTML·PDF | QuestMaking a mini text editor | HTML·GitHub·solutions | |
Part 2 Coordination & communication sessions 6-9
Language constructs for concurrent and distributed programming, on one system, a bank, built four ways: on one thread with async and await, with threads that share memory, with processes that pass messages, and across machines that can fail.
| Date | Session | ||
|---|---|---|---|
| 07 OctWhyTestStory | 06 Asynchronous Programming | Lab | |
| Block 1 Coordination & communicationHTML·PDF | Warm-upThe lecture in JS and Python | ||
| Block 2 Asynchronous programmingHTML·PDF | QuestContinuations (optional) | HTML·GitHub | |
| 21 OctWhyTestStory | 07 Multi-ThreadingNotes | Lab | |
| Block 1 Mutual exclusionHTML·PDF | Warm-upFour Java classes | HTML·GitHub | |
| Block 2 Atomics; independence of the orderHTML·PDF | QuestA mini ray tracer | HTML·GitHub | |
| 04 NovWhyTestStory | 08 Message PassingNotes | Lab Warm-up Coming soon Quest Coming soon | |
| Block 1 Determinism, choice and buffer capacityHTML·PDF | Warm-up | Coming soon | |
| Block 2 Actors and mailboxesHTML·PDF | Quest | Coming soon | |
| 11 Nov | 09 Failure and Recovery | Not given this year | |
Part 3 Types & abstraction sessions 10-13
What a type system guarantees before a program runs: static types, polymorphism, and abstraction that hides a representation behind its operations; the course closes with declarative programming.
| Date | Session | ||
|---|---|---|---|
| 16 NovWhyTestStory | 10 Static Type Systems | Lab | |
| Block 1 Typing of a functional languageHTML·PDF·Demo | Warm-upIn-class exercises on typing | PDF·solutions | |
| Block 2 Typing of an imperative languageHTML·PDF | QuestSemantics and typing of break and continue | PDF·solutions | |
| 18 NovWhyTestStory | 11 Polymorphism | Lab | |
| Block 1 Polymorphism and type inferenceHTML·PDF | Warm-upExercises on monomorphic and polymorphic typing | PDF·solutions | |
| QuestAlgorithm W in OCaml | HTML·GitHub·solutions | ||
| 25 NovWhyTestStory | 12 Data Abstraction Block 1 Block 2 | Lab Warm-up Quest | |
| Block 1 | Warm-up | ||
| Block 2 | Quest | ||
| 02 DecWhyTestStory | 13 Declarative Programming and Conclusion Block 1 Block 2 | Lab Warm-up Quest | |
| Block 1 | Warm-up | ||
| Block 2 | Quest | ||
Materials
Slides, handouts, lab code and solutions live in the course repository, linked from each session page as the course runs. Clone it once and git pull for updates.
Topics, languages and lab material appear for each session as we reach it — later sessions may still change.