Jonathan Müller

Functional Programming in C++

What do ranges, error handling, and I/O have in common? A single functional concept that simplifies complex C++ systems.

Functional Programming in C++
#1about 3 minutes

Understanding functional programming principles in C++

Functional programming is a declarative style that eliminates state to reduce bugs, and C++ allows combining its benefits with imperative performance.

#2about 4 minutes

Building lazy data pipelines with C++20 ranges and views

Use `std::ranges` and views like `transform` and `filter` to create lazy, state-free data processing pipelines that avoid intermediate allocations.

#3about 8 minutes

Solving complex problems with advanced range adaptors

Leverage powerful range adaptors like `cartesian_product` for combinations and `chunk_by` for splitting sequences based on a predicate.

#4about 6 minutes

Creating composable error handling with `std::expected`

Model failures as values using `std::expected` to build clear, functional error handling pipelines with `transform` and `and_then`.

#5about 4 minutes

Separating IO from computation using deferred actions

Isolate side effects by composing IO operations as declarative actions, a pattern that mirrors the upcoming C++26 senders and receivers framework.

#6about 2 minutes

Understanding monads as a unifying composition pattern

Recognize that ranges, `std::expected`, and IO actions are all monads, sharing a common interface for composition with `transform` and `and_then`.

Related jobs
Jobs that call for the skills explored in this talk.

test

Milly
Vienna, Austria

Intermediate

test

Milly
Vienna, Austria

Intermediate

Featured Partners

Related Articles

View all articles
CH
Chris Heilmann
All the videos of Halfstack London 2024!
Last month was Halfstack London, a conference about the web, JavaScript and half a dozen other things. We were there to deliver a talk, but also to record all the sessions and we're happy to share them with you. It took a bit as we had to wait for th...
All the videos of Halfstack London 2024!
BB
Benedikt Bischof
How we Build The Software of Tomorrow
Welcome to this issue of the WeAreDevelopers Live Talk series. This article recaps an interesting talk by Thomas Dohmke who introduced us to the future of AI – coding.This is how Thomas describes himself:I am the CEO of GitHub and drive the company’s...
How we Build The Software of Tomorrow

From learning to earning

Jobs that call for the skills explored in this talk.