JKWA
Author of Advanced Functional Programming with Elixir
Polymorphism and Structs in Elixir
Another in my series of trimmings from Advanced Functional Programming with Elixir . This one explores how polymorphism relies on tags and how Elixir’s structs make that pattern safer and more robust.
Most Liked
krasenyp
Thank you for this. I’ve been following the community since 2017 and, sadly, in my opinion the functional programming paradigm has been dismissed at least since then. I’ve observed that most of the community, and the projects I’ve worked on, are OOP projects in disguise. Yes, there’s immutability and anonymous functions, but people want to call globally registered processes and have side effects everywhere. Yes, it works, due to BEAM’s characteristics, and there are ways to even write manageable tests but it’s far from what it could be.
3
Popular in Blog Posts
How to set up the Content Security Policy header with Phoenix LiveView and support inline styles and scripts with CSP nonces.
New
What I genuinely value at my workplace is that I can easily explore new languages through internal mobility. Throughout my career within ...
New
New
Posted via Devtalk (see this thread for details).
New
There is a new community resource available on writing “Safe Ecto Migrations”. When we get a migration wrong, it can lock up your product...
New
On your LiveView page, you are using a custom component. You want to be able to pass HTML attributes into the component, but the componen...
New
This post asks if we can remove Alpine from the PETAL stack. Can we do everything we need with just LiveView? Also, let’s explore an area...
New
Hi,
You all probably know that José Valim is Brazilian and that his native language is Portuguese. I, Herminio Torres, Matheus Pesanha a...
New
Jason Stiebs shows a couple ways for a LiveView to make it easy for users to click and copy an important value to their clipboard. He sho...
New
It seems unlikely that anyone will find these facts interesting or useful, but here they are anyway.
New
Other popular topics
Hello!
tl;dr Announcing Oban, an Ecto based job processing library with a focus on reliability and historical observability.
After spen...
New
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New
Good day to you all.
I have been struggling to get a query involving like and ilike to work.
Can anyone assist me on this, please?
pro...
New
Elixir plugin for JetBrain’s IntelliJ Platform (including Rubymine)
This is a plugin that adds support for Elixir to JetBrains IntelliJ...
New
None of the current solutions worked well for me, so I went ahead and built a user management system from scratch.
This project took far...
New
Hi,
I need to transform a list of numbers into a map where the keys are the indexes and the values are the original values of the list....
New
When I run the Plug and I recompile I wind up having to use Ctrl C to quit iex and start again. Witht the help of rlwrap I can use the cu...
New
Hi guys, i’m new in the Elixir world, and i have to say, that i love it!
i’m having some problem to understand anonymous functions with ...
New
Original source of discussion: This topic on the Pragmatic Programmers' Functional Web Development with Elixir, OTP, and Phoenix forum.
...
New
Hello again - after a longish gap I’ve decided I really must dig into Elixir and see what’s been happening here - so I have a few questio...
New







