JKWA
Author of Advanced Functional Programming with Elixir
More optics in Funx: name your shareable boundaries with prisms
Includes a Livebook.
Like a
Lens, aPrismis composable. In Elixir, it can also help manage missing keys or expected nils, but that is incidental. APrismmodels conditional existence: a focus that exists only on certain branches of a sum type.Let’s say we are building a system to process transactions. A transaction can be a purchase or a refund, and it can be paid by check or credit card.
The tricky part is not extracting fields. It is deciding which payment operations apply.
Popular in Blog Posts
Building a LiveView powered chat app is easier than ever when using Streams! Sophie DeBenedetto shows us how in this article. She createa...
New
Following up on the previous post on using UDP multicasting to broadcast and detect peers on a network, I create a registry of those peer...
New
Hi there!
Recently I was playing around with extracting and updating data in the DB and for fun challenged myself to try to implement a ...
New
Just published the first part of series of articles aimed to explain the architecture behind a kv-store engine written in Elixir and impl...
New
OTP 26 was released and the Elixir 1.14.4 builds have been updated! Erlang OTP 26 changed how map keys are sorted, or not sorted actually...
New
Hey there,
I’ve started a little blog series about building and deploying Elixir applications. Now I would like to share with you the fi...
New
In December of 2023 we came to the realization that we needed to build our own image server. After hitting a few snags we decided that it...
New
This post is a guide on how Norba and I are building LiveMatch, a real-time app for soccer to follow multiple games in one place.
https:...
New
Introduction and first content post in my new series about running Elixir Phoenix apps on Kubernetes are live! I’m describing an opiniona...
New
Phoenix 1.7.0 brings a lot of new things when we run mix phx.gen my_app. These new and cool ways of doing things aren’t automatically bro...
New
Other popular topics
Hi All,
I set a environment variables in dev.exs , like below code.
when i start server, how can i set the ${enable} value?
thanks.
d...
New
Erlang/OTP 25 [erts-13.2.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1]
15:22:35.803 [error] gen_event {lager_file_backend...
New
Hey,
Just curious what are the main benefits of Elixir compared to Clojure?
When is Elixir more useful than Clojure and vice versa?
Th...
New
Original source of discussion: This topic on the Pragmatic Programmers’ Functional Web Development with Elixir, OTP, and Phoenix forum.
...
New
What learn first? Rust or Elixir
Hi Elixir community!
I’m here because i want learn a new language. I’m a junior developer and mainly i ...
New
I am VERY much an elixir newbie. I have taken one elixir course and one phoenix course on Udemy. During that course, I saw the instructor...
New
I am trying to run a deploy with docker and I successfully runned with this command:
docker build -t romenigld/blog-prod .
but when I t...
New
This post is a wiki (feel free to hit the edit button near the bottom right of this post to add your own changes!)
This post collects co...
New
There are pre-rolled solutions for other frameworks that do work. However, Phoenix does not seem to have these. Have people had good expe...
New
Lets say i have map like this fetching from my database
%{"_id" => #BSON.ObjectId<58eb1a7a9ad169198c3dXXXX>, "email" => "XXX...
New








