News for hackers. Stuff that matters.
Re:Elixir GenServer Explained by dnautics on Tuesday April 27, 2021 @10:18PM (#26964699)
Oh that's so funny, because I'm an elixir user and we all claim that genserver (internal) organization is terrible.

But yes, it is way better than callback hell... It just could be better still.

Re:Elixir GenServer Explained by HH_GU on Wednesday April 28, 2021 @02:31AM (#26966357)
not genserver, what will you use?
Re:Elixir GenServer Explained by dnautics on Wednesday April 28, 2021 @02:40AM (#26966416)
There isn't anything. Dave thomas proposed a better way of organizing genservers, but I can't get behind it because his implementation is too magical and clever, but his idea for what the api should look like in the big picture is reasonable... I'm also generally in favor having everyone speak the same idioms, so it would take a very good implementation to get me off of genserver.

That said you shouldn't write genservers if you can help it. Using the frameworks genservers Is the best choice, Task is a better choice for most cases.