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.

12 Likes

Keeping in mind that the POCO/POJO/PORO equivalent is POD (Plain Old Data (structure)).

7 Likes

Or even better, POES (Plain Old Elixir Struct).

Better than writing POEMs, is writing them to work with POESy data! :smile:

5 Likes

Is it bad form to resuscitate old threads? I’m just here to share the love you felt all those years ago @marciol, I had a moment of “wait, what the..” as it clicked in my brain what the initials were spelling out.

A beautiful acronym for a beautiful language. Thanks for sharing.

3 Likes

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 Likes

Writing a function
Input produces output
So simple and pure

#haiku

3 Likes

Related functions
Collected in the same place
Creates a module

2 Likes

When writing a computer program
You may be amazed to find
That Plain Old Elixir Modules
Are how the code is organised

No matter how complex
Or unique your coding style
It still comes down to modules
When it’s time to compile

You can even change the language
Make it Erlang or maybe Gleam
It still comes down to modules
When you’re running on the BEAM