
chiroptical
A short introduction to `maybe_expr` in Erlang
I am a huge fan of functional programming and recently discovered the maybe
expression in Erlang. In the blog post I show an example of code I refactored recently using maybe
, how to enable the expression in OTP 25 (and up), and compare it to a language feature in Haskell (ExceptT
).
Most Liked

chiroptical
Awesome, thanks for the info! I am very hopeful to start writing more of my Erlang journeys.
1
Popular General Dev topics

Hey all, I blogged about using pattern matching to replace conditional checks (post in Spanish)
New

This talk by @wolf4earth was posted in a thread about pull requests, but it warrants a thread of its own :blush:
As Sascha highlights, b...
New

New

If you were unable to join us recently for Code Mesh V conference you can catch up with our full suite of talk videos, QandA sessions and...
New

https://nscrutables.medium.com/fbi-foia-response-sheds-new-light-on-infamous-hacktivist-pentagon-incident-a44a318b4a46
This piece will ...
New

This thread was posted by one of our members via one of our news source trackers.
New

I published this post yesterday and thought that this community might appreciate it:
To save you a click, here are the bulk of the adv...
New

This is what we’ve been doing in our last HackWeek at NextRoll with @maco and @pablocostass
Now you can add typespecs to your modules us...
New

I put together a quick run through of the talks that I attended at Elixir Conf EU 2023, in Lisbon.
New

We’re excited to announce Custom Playgrounds, a developer-first way to loop colleagues into your LLM app development flow, accelerate ite...
New
Other popular topics

Which, if any, games do you play? On what platform?
I just bought (and completed) Minecraft Dungeons for my Nintendo Switch. Other than ...
New

No chair. I have a standing desk.
This post was split into a dedicated thread from our thread about chairs :slight_smile:
New

My first contact with Erlang was about 2 years ago when I used RabbitMQ, which is written in Erlang, for my job. This made me curious and...
New

Rust is an exciting new programming language combining the power of C with memory safety, fearless concurrency, and productivity boosters...
New
New

I ended up cancelling my Moonlander order as I think it’s just going to be a bit too bulky for me.
I think the Planck and the Preonic (o...
New

I have seen the keycaps I want - they are due for a group-buy this week but won’t be delivered until October next year!!! :rofl:
The Ser...
New

“A Mystical Experience” Hero’s Journey with Paolo Perrotta @nusco
Ever wonder how authoring books compares to writing articles?...
New

Build highly interactive applications without ever leaving Elixir, the way the experts do. Let LiveView take care of performance, scalabi...
New

Author Spotlight
Dmitry Zinoviev
@aqsaqal
Today we’re putting our spotlight on Dmitry Zinoviev, author of Data Science Essentials in ...
New
Categories:
Sub Categories:
- All
- In The News (10004)
- Dev Chat (200)
- Questions (30)
- Resources (118)
- Blogs/Talks
- Jobs (3)
- Events (14)
- Code Editors (58)
- Hardware (57)
- Reviews (4)
- Sales (15)
- Design & UX (4)
- Marketing & SEO (1)
- Industry & Culture (14)
- Ethics & Privacy (19)
- Business (4)
- Learning Methods (4)
- Content Creators (7)
- DevOps & Hosting (9)
Popular Portals
- /elixir
- /rust
- /wasm
- /ruby
- /erlang
- /phoenix
- /keyboards
- /rails
- /js
- /python
- /security
- /go
- /swift
- /vim
- /clojure
- /java
- /haskell
- /emacs
- /svelte
- /onivim
- /typescript
- /crystal
- /c-plus-plus
- /tailwind
- /kotlin
- /gleam
- /react
- /flutter
- /elm
- /ocaml
- /ash
- /vscode
- /opensuse
- /centos
- /php
- /deepseek
- /html
- /scala
- /zig
- /debian
- /nixos
- /lisp
- /agda
- /sublime-text
- /textmate
- /react-native
- /kubuntu
- /arch-linux
- /ubuntu
- /revery
- /spring
- /django
- /manjaro
- /diversity
- /nodejs
- /lua
- /c
- /julia
- /slackware
- /neovim