Latest #code-style Threads 
I just published def_layout, a formatter plugin that lays out a module’s functions: callbacks first in source order, public functions alp...
New
I saw this topic getting some traction over on the Erlang Forums, so I want to resurrect this topic here (previous discussion here):
Sh...
New
I am used to this syntax for a case structure (my question is about the _ -> part):
case {1, 2, 3} do
{4, 5, 6} ->
"This cl...
New
Hello,
I am somewhat new to Elixir, and finding that I am having difficulty grasping how I should handle logic for a series of sequences...
New
I have some checks to do before returning a response to the user in controller: checking file existence in S3, checking some DB fields, c...
New
I picked this pattern up from another dev and have made fairly extensive use of it with Multis:
@multi Multi.new()
...
@multi
...
New
Looking for some advice on how a seasoned Elixir developer might go about implementing the creation of a map/struct that is dependent on ...
New
EDIT: Parse, don't validate (2019) | Hacker News
I finished this working code which takes in an HTML page and outputs legal citations it...
New
When creating multiple clauses for a function, should I provide typespec for each one? Example:
@spec foo([]) :: {:error, any}
def foo([...
New
I apologize for not being able to describe my question clearly in the title.
I’m not sure how to name this coding pattern.
Recently I f...
New
This Week's Trending
This Month's Trending
I just published def_layout, a formatter plugin that lays out a module’s functions: callbacks first in source order, public functions alp...
New
This Year's Trending
I was recently asked to step up and become the maintainer for the Elixir Style Guide. It was, I believe, the first, and is now the most p...
New
Last Three Year's Trending
Is there a recommended ordering of require, use, import, and alias? Does the style guide have anything to say about the preferred orderin...
New
Hey everyone!
This is my first time posting on here, and I’m getting started with writing some real Elixir code! I’m not new to programm...
New
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
Looking for some advice on how a seasoned Elixir developer might go about implementing the creation of a map/struct that is dependent on ...
New
I saw this topic getting some traction over on the Erlang Forums, so I want to resurrect this topic here (previous discussion here):
Sh...
New
EDIT: Parse, don't validate (2019) | Hacker News
I finished this working code which takes in an HTML page and outputs legal citations it...
New
I am used to this syntax for a case structure (my question is about the _ -> part):
case {1, 2, 3} do
{4, 5, 6} ->
"This cl...
New
Hello,
I am somewhat new to Elixir, and finding that I am having difficulty grasping how I should handle logic for a series of sequences...
New
I picked this pattern up from another dev and have made fairly extensive use of it with Multis:
@multi Multi.new()
...
@multi
...
New
When creating multiple clauses for a function, should I provide typespec for each one? Example:
@spec foo([]) :: {:error, any}
def foo([...
New
I have some checks to do before returning a response to the user in controller: checking file existence in S3, checking some DB fields, c...
New
Trending Over Three Years
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
In general I’ve been sticking to this community style guide GitHub - christopheradams/elixir_style_guide: A community driven style guide ...
New
I’m trying to find a cleaner coding style for what I’ve got happening repeatedly in my code right now. This is looking very pyramid of do...
New
Completely new to Elixir, but have an issue I am trying to figure out:
When interviewing candidates for Javascript roles I usually have ...
New
So what’s the idiomatically correct way to do nested modules? I know when applications you tend to do it the first way and follow the dir...
New
I have this form
<%= form_for @conn, Routes.admin_products_path(@conn, :create_product), [as: :create_product, id...
New
I was watching some functional programming video where the person codes the exact application in multiple ways.
One of the preferred way...
New
I’m extracting many fields from a map using pattern-matching against the function parameter. Sometimes only a single field is missing fro...
New
Hello,
I’m trying to level up my Elixir game and wanted to ask you for your favorite public phoenix projects in terms of code organizati...
New
I am using the code below to generate room ids:
reservations = [%{rooms: 1},
%{rooms: 2},
%{rooms: 3}]...
New
Hello. I’m thinking the way to handle nil in case.
|> case do
x when not is_nil(x) ->
...
{:ok, "xxxxxx"}
nil...
New
EG:
defp deps do
[
{:phoenix, "~> 1.4.1"},
{:phoenix_pubsub, "~> 1.1"},
{:phoenix_ecto, "~> 4.0"},
...
New
I recently wrote some Elixir to format a list of strings (eg, author names) for output. I think it’s reasonably idiomatic, but I probably...
New
While learning Elixir I’ve been writing and rewriting some practice functions. Some of the rewriting was to ensure recursive functions ar...
New
Hello, I’m new to Elixir.
I was reading about the macros of Elixir but didn’t quite get it. I know C and familiar with its marcos.
Alth...
New
Latest on Elixir Forum
Get money off!
The Pragmatic Bookshelf
35% off any eBook
Manning Publications
45% off any item
ElixirCasts
10% off for life
The Pragmatic Studio
20% off any course
AppSignal
10% off for 12 months
Honeybadger
10% off for 12 months
Simply use coupon code "devtalk.com" or "elixirforum" at checkout!
Filter by Type:
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #exunit
- #elixirconf
- #discussion
- #javascript
- #podcasts
- #code-sync
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #api
- #processes
- #forms
- #metaprogramming
- #security
- #performance
- #hex







