this post was submitted on 11 Oct 2025
187 points (94.7% liked)

Programmer Humor

26827 readers
2369 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] Pyro@programming.dev 2 points 3 hours ago (2 children)

Isn't your example just the builder pattern?

[–] Kache@lemmy.zip 1 points 14 minutes ago* (last edited 10 minutes ago)

Yeah, that explanation is missing the critical point of generically applying external functions through flat_map/bind

I think this is a good explanation: https://fsharpforfunandprofit.com/rop/

[–] marcos@lemmy.world 1 points 2 hours ago

A monad is a builder that lets you use previous partial results to make decisions while you build.