marciol
The beauty of Plain Old Elixir Modules - POEM
Thinking about how Contexts on Phoenix 1.3 are beautiful in the simplicity, elegance and minimalism, coalesced in the smallest unity of Elixir, the Plain Old Elixir Modules, I got surprised by the acronym obtained from this definition - POEM.
The way of get straight to the problem, reducing the unnecessary abstractions is a virtue that Elixir inherited from Erlang. I just need to share this felling.
Most Liked
peerreynders
kelvinst
Or even better, POES (Plain Old Elixir Struct).
Better than writing POEMs, is writing them to work with POESy data! 
5
gaggle
adamu
Writing a function
Input produces output
So simple and pure
#haiku
3
arcanemachine
Nope, I find old gems, and resuscitate them as I see fit.
Worst case scenario, it sits on the frontpage for a couple days, then gets forgotten about again.
2
Popular in Discussions
Hi everyone,
I’ve been following Elixir since around 2016 and tinkering with it on and off, but I haven’t had the opportunity to use it ...
New
I am happy to introduce the very α version of the new programming language compiled to BEAM.
Welcome Cure.
It has literally three kille...
New
Just wondering what the community currently thinks, prefers, and/or recommends for working with UI components. (e.g. daisyUI, MishkaChele...
New
So, anyone got a chance to look at this?!?
I’m kind of glad this came along. We can just throw this into our Auth pages and won’t have t...
New
I created a Forth processor in Elixir. This is my hobby project.
https://github.com/sasagawa888/Forth
New
I wonder if it’s possible to mimic a simple “class reopening”/inhertinace-based SEAM in Elixir to alter a module’s behaviour without edit...
New
Hi there! :wave:
@frigidcode and I (but mostly him) have been running an Elixir Book club, we’re almost done with Designing Elixir Syste...
New
In upgrading from Ecto 2 to Ecto 3 I’m dealing with a failing test. If I use ExMachina build(:address) I’ll get an error trying to put_e...
New
The |> operator appears in many languages, mostly in the functional world. F# has essentially the exact same operator, as does OCaml. ...
New
When I try to run my applications and I haven’t updated the dependencies, the output tells me to run mix deps.get.
Why doesn’t the binar...
New
Other popular topics
Hello, I get Persian date from my client and convert it to normal calendar like this:
def jalali_string_to_miladi_english_number(persi...
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
In Ruby, I can go:
User.find_by(email: "foobar@email.com").update(email: "hello@email.com")
How can I do something similar in Elixir? ...
New
Elixir plugin for JetBrain’s IntelliJ Platform (including Rubymine)
This is a plugin that adds support for Elixir to JetBrains IntelliJ...
New
Could someone help me? I'm making my first elixir program, number guessing game. I can't figure out how to convert the user's guess from ...
New
I have seen a lot of code which picks the first element from a list using Enum.at(0) instead of List.first. Is there a reason why people ...
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
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
After calling mix ecto.create I get this error:
17:00:32.162 [error] GenServer #PID<0.412.0> terminating
** (Postgrex.Error) FATAL...
New
I will often find my self writing things similar to:
case some_value do
nil -> something()
"" -> something()
_ -> someth...
New







