minderrx2-art

minderrx2-art

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?

Showing Posts 1 to 4

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.

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:

— All posts loaded —

Where Next? Top

Trending in Chat/Questions Top

Other Trending Topics Top

JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
garrison
Hobbes is a low-level distributed database for the Elixir programming language. Hobbes provides a simple, safe, and scalable storage lay...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
mcass19
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve. They are GUI (Emerge) and State management (S...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews