BOB 2026

Functional Programming in TypeScript
13.03.2026 , Tutorials 1
Sprache: English

Functional programming offers powerful tools for building robust, maintainable software, and Software Development as a whole has moved more and more towards employing a functional style in its programs—yet comprehensive guides for normal work in real-world applications are still hard to find. This tutorial aspires to fill a part of this gap: It teaches functional programming patterns and shows you how to apply them immediately in your daily work, with TypeScript as a language.

We'll start with the fundamentals: immutability, pure functions, and function composition. You'll learn how model your data to make illegal states unrepresentable, how to push out you error types using Parse, don't Validate, and how to push effects out of the core of your application. We tackle those while building a small frontend application using reduce functions over our state, and you'll see how functional principles scale from small utilities to entire applications.

By the end, you'll understand not only functional programming patterns, but how you can employ them in TypeScript development.

Since this tutorial is only marginally relying on language features of TypeScript, large parts of this tutorial translates over relatively easy to other programming languages.


3-5 Aspekte zum Mitnehmen:

The whole tutorial is about "applying things to daily life"—some concrete things are:
- pushing side effects out of the core of the app
- "Parse, don't Validate" applied to TypeScript/frontend code
- making illegal states unrepresentable with Algebraic Data Types
- a concrete usage of the reducer pattern in SolidJS/TypeScript

Beat Hagenlocher is a Software Architect at Active Group GmbH.

Always on the lookout for the perfect programming stack to his (side) projects in, he currently has conceded that TypeScript is actually "good enough for most things, for now" and writes his frontend software with that.

Apart from writing software, he hosts Tü.λ | Functional Programming Night Tübingen and tends to his digital garden.

When not at the PC, he can be found doing sports, learning a new skill or adding to his book list.