minderrx2-art

minderrx2-art

Any tips on learning Elixir?

I’ve been learning Elixir for about a month now, and I’ve reached the stage where I’m trying to do basic things utilizing GenServer, but I just get overwhelmed trying to design the GenServer system as well as making it compatible with the logic that Im writing. I usually start writing supervisor then genserver then logic and data layer.

How do you approach writing software in Elixir?

Most Liked

cmo

cmo

Pencil and paper. Easier for me to flesh out ideas before typing.

At this stage you need to make stuff to learn your way around. I would read Elixir in Action and do the exercism track.

DaAnalyst

DaAnalyst

Create a simple app in Phoenix LiveView. Face the breadth all at once, but keep it shallow (so your head doesn’t explode). Rely on generators as much as you can. Have an LLM guide you through the process.

IMO, you need to go through some Elixir-application level (flat/incremental) code writing before starting to create (working) GenServers, that is unless you’re a backend type of a person.

Early gratification is essential for (everyone, actually) newcomers.

matt-savvy

matt-savvy

Same as learning any other technology, really. You want to spend part of your time trying to accomplish a specific goal (usually a project you’re working on) and part of your time exploring and just learning more (reading docs, working your way through books).

Personally, I would approach your problem pretty differently. You might want to try starting with a big picture understanding of what you’re trying to do, and then working from the bottom up. You can either aim to accomplish one thing end-to-end, or try to get a few pieces of functionality together.

For your specific scenario, I would recommend Designing Elixir Systems with OTP, the authors do a great job of giving you a way to think about how to understand what responsibilities each layer of your system should have, how to build it from the ground up.

Last Post!

AstonJ

AstonJ

You ay be interested in my post here:

..and be sure to check out the Elixir Learning Resources > Books and Learning Resources > Courses - many of those threads contain reviews which are worth a look :023:

Where Next?

Popular in Chat/Questions Top

Scoty
Hey, I am currently reading Programming Elixir and I am doing one of the exercises where you should write a solution to the “I’m thinkin...
New
Nopp
Hello there, i have a lot to read and to learn, but are there some books, that are focussing on how i “should” plan the architecture of ...
New
New
pdgonzalez872
Do we have a list of academic/research papers: about Elixir/Erlang? that use Elixir/Erlang? about the Beam? If so, could you please po...
New
Santheepkumar
Hi all, I am a Fullstack JS developer for last 2 years. I need a good guide to learn elixer. Any suggestions please
New
shansiddiqui94
Hello, I have an interview coming up and I seem to have forgotten important concepts of Elixir. So I was wondering if you guys know of a...
New
armanm
I know zero downtime deployment can mean different things depending on your application and what your users can tolerate so expectations ...
New

Other popular topics Top

minhajuddin
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
lanycrost
Hi everyone! I need implement if…else if…else condition from my elixir code, and anymore of this control flow structures not work proper...
New
greenz1
I have a phoenix application from which a user can download multiple(5-6) files of size 1MB. I couldn’t find anything related to sending ...
New
sorentwo
Hello! tl;dr Announcing Oban, an Ecto based job processing library with a focus on reliability and historical observability. After spen...
985 44608 311
New
bsollish-terakeet
Credo is smart enough to check for (something like) this: assert length(the_list) == 0 with this response: Checking if an enum is empt...
New
WestKeys
Currently suffering from paralysis by [HTTP client] analysis. This is rather unusual in Elixirland as there tends to be consensus on the ...
New

We're in Beta

About us Mission Statement