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 Responses

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.

Where Next?

Popular in Chat/Questions Top

davearonson
I am looking for smallish problems to solve, using Elixir concepts beyond the basic syntax and concepts of Elixir as a language, such as ...
New
Nvim
Anybody know of a Pragmatic Studio 40% off coupon code for video course like Phoenix?
New
ericdouglas
I think that would be really interesting to have official books created by the community about all kinds of development we can do with El...
New
Fl4m3Ph03n1x
Background I have been reading quite a lot about design and architecture in Elixir and overall FP. My latest incursions took to me the On...
New
pietrofxq
I’ve bought the following books: Programming Elixir 1.6 Programming Phoenix 1.4 Programming Ecto Functional Web Development with Elixir...
New
phykos
In Ruby, which is very similar to Elixir I do this: def test yield end test do puts("sup there") end Here, the yield keyword will be...
New
AstonJ
It’s been a while since we asked this - I’m sure others (especially newcomers to the language) will be interested to hear how you’ve all ...
New
wolfiton
Question: Can someone recommend me some good resources on learning performance for phoenix elixir applications and a design pattern I sh...
New
jace
I wanted to write a library for interacting with a Web API as a practical way of learning Elixir. However, there seem to be a lot of diff...
New
jslearner
Will learning Erlang really help in being a better Phoenix or Elixir developer or is it a waste of time?
New

Other popular topics Top

vertexbuffer
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
siddhant3030
Hi, I have to write a raw query for one of my project. But till now I have used ecto queries and don’t have much experience writing raw ...
New
skosch
To my knowledge, put_in, Map.update etc. all have the one limitation of not automatically creating intermediate keys when needed (for exa...
New
johnnyicon
Hi all, I’ve just started learning Elixir and Phoenix Framework, so please pardon my n00bness at this stage. I’m trying to use Postgres...
New
josevalim
Hi everyone, One of the features added to Elixir early on to help integration with Erlang code was the idea of overridable function defi...
New
SoCreat
i’m a new one to elixir which editor can i use vs code? or atom? Thanks! :smiley:
New
komlanvi
Hi everyone, I was playing with phoenix liveView but I run into an issue. I have a form and want to validate each input text when the te...
New
AstonJ
We’ve put together this wiki for Phoenix LiveView - please feel free to add any info you feel is worth including. What is Phoenix LiveV...
New
marick
I had some trouble figuring out how to make many-to-many associations work. Once I got it working, I wrote a blog post. Because I’m a nov...
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

We're in Beta

About us Mission Statement