Latest #best-practices Threads Top

caioaao
Hey, I know this has been discussed ad nauseum, but I couldn’t find a definitive answer or at least some consensus around this, so let me...
New
Joser
Claude Code Plugin for Elixir: Custom Skills and Hooks for Better Code Quality I’ve been experimenting with Claude Code for Elixir devel...
New
warmwaffles
We have a rather large code base ~2200 elixir files and growing. On my nice Ryzen 9, it takes ~47 seconds to analyze the generated PLT fi...
New
Slesa
I read the book “Domain Modelllng Made Functional” several times. And it was absolute clear, that I want to have some types sich as “Unc...
New
fhunleth
We’re using Livebook for data analysis and are putting all of our notebooks in a common private git repository. We’ve built up some utili...
New
axelson
The docs have a few lines like A task may run for too long and would be interrupted by code releases or other node restarts (from: Rec...
New
amirOrbe
Hi everyone, I have a function with two parameters with default values something like: def(param1 \\ %{}, param2 \\ "") do ### end this...
New
DidactMacros
Hey all. I’d like to know your thoughts on whether it would be helpful to review the notion of establishing the standard of using gerund...
New
James_E
I’m developing an application that’s going to be (for the forseeable future) installed and managed in a pretty boring, standard way — not...
New
herman
I have seen some good examples for best practices in sharing test suites: Test a module for a given behaviour Test a behaviour that use...
New

This Week's Trending Top

This Month's Trending Top

caioaao
Hey, I know this has been discussed ad nauseum, but I couldn’t find a definitive answer or at least some consensus around this, so let me...
New

This Year's Trending Top

Joser
Claude Code Plugin for Elixir: Custom Skills and Hooks for Better Code Quality I’ve been experimenting with Claude Code for Elixir devel...
New

Last Three Year's Trending Top

gerbal
Is there a recommended ordering of require, use, import, and alias? Does the style guide have anything to say about the preferred orderin...
New
amacgregor
Is there any tooling or recommended way to find dead code? As my application starts to grow things can get a little messy especially with...
New
gameline
Hi, I was surprised I couldn’t find any argument on this on the net so here I am. When you make recursive function that deal with list ...
New
travisf
I’m curious what the consensus (if there is one) on case vs if statements for conditionals is. Specifically, in cases where you are only...
New
garrettmichaelgeorge
Are there any recommended patterns or best practices for testing Phoenix Components? In particular, how thorough should a test be, and wh...
New
pnezis
We are currently in the process of restructuring our codebase. Till now we follow the monolith way (well structured though) but we have s...
New
orsinium
I have 2 live components on the same page, one for pagination and another for search. Both write their state into URL query params which ...
New
sbuttgereit
Hi– So my project has reached a point where how users will interact with the application is important and so this week I’ve started to j...
New
amirOrbe
Hi everyone, I have a function with two parameters with default values something like: def(param1 \\ %{}, param2 \\ "") do ### end this...
New
kccarter
While browsing through the source code to Plug, I can across this block of code: defp weekday_name(1), do: "Mon" defp weekday_name(2), d...
New
Gonza
Hi! Quick question from a guy coming from Javascript: Whenever I have to handle some conditional behavior, like ‘do something depending ...
New
Almah
Hey everyone! I’m working my way into elixir and loving it so far. However, coming from an OOP background with Java/Kotlin, I don’t thin...
New
herman
I have seen some good examples for best practices in sharing test suites: Test a module for a given behaviour Test a behaviour that use...
New
DidactMacros
I put this under chat/ discussions as this does not regard a bug, just some design/best practices. I have program that I am building as ...
New
James_E
I’m developing an application that’s going to be (for the forseeable future) installed and managed in a pretty boring, standard way — not...
New

Trending Over Three Years Top

josefrichter
Simple question re. code organization: do you do preloads in context, or in controller/liveview? Say a basic function in context looks l...
New
amacgregor
I wanted to reach out to the community and see who is using design patterns and what are the ones that are relevant to FP and Elixir, as ...
New
Morzaram
Hey everyone, I often see questions regarding best practices, and examples that people can reference so they know how to structure and ac...
New
Travis
Completely new to Elixir, but have an issue I am trying to figure out: When interviewing candidates for Javascript roles I usually have ...
New
gus
Hi all, I’m starting a new project where I am planning on having both JSON and HTML endpoints. I’ve been looking into some of the best w...
New
hauleth
Use factories and not fixtures Gods, I cannot even express how much I disagree with it.
New
Rukenshia
I am used to early returns using the "return" keyword many languages provide. As I am currently trying to learn elixir, I found it really...
New
KallDrexx
I have a library application X that is setup to take in arguments via its start() function, and right now I’m successfully having these s...
New
axelson
I am working on an application that is structured as an umbrella application. Currently there are only two applications in the umbrella, ...
New
wfgilman
I have a behaviour for which I need to implement real functions and mock versions for testing. Right now I am using three modules to do t...
New
netto
I need to persist a value to a user session navigating between liveviews. I have found similar use cases describing some “cart” functiona...
New
jmitchell
What is the best practice for implementing a library for use in both Elixir and Erlang? My goals include: minimize code duplication fee...
New
fireproofsocks
I’m working through some test-writing around %Plug.Conn{} and I was wondering if there is an easier syntax for editing deeply nested part...
New
tio407
Hello all, my first real software engineer job was in Elixir and I have since, largely through the help of this community, grown as an en...
New
hakarabakara
I’m unable to get my application to read an environment variable set on Ubuntu. I keep getting the message below: ** (ArgumentError) cou...
New
  • Follow
  • Join
  • Shape
the conversation

Latest on Elixir Forum

Elixir Forum

Similar Portals

    None added yet

We're in Beta

About us Mission Statement