CodeSync

CodeSync

A safer Elixir | Esteban Ibarra | ElixirConf EU 2021

Code Sync: A safer Elixir | Esteban Ibarra | ElixirConf EU 2021

Comments welcome! View the code-sync and elixirconf-eu tags for more Code Sync and ElixirConf EU talks!

Most Liked

eksperimental

eksperimental

I would like to add Dialyzer to the list.

And I think you should avoid pattern matching on keyword lists (it a big NO-NO in Elixir IMO), since pattern matching relies on the order of their elements. Here’s an example to show what I mean:

iex(1)> %{a: a, b: b} =  %{a: 1, b: 2}
%{a: 1, b: 2}

iex(2)> %{a: a, b: b} =  %{b: 2, a: 1}
%{a: 1, b: 2}

iex(3)> [a: a, b: b] =  [a: 1, b: 2]                            
[a: 1, b: 2]

iex(4)> [a: a, b: b] =  [b: 2, a: 1]
** (MatchError) no match of right hand side value: [b: 2, a: 1]

Where Next?

Popular in Talks Top

axelson
ElixirConf 2017 - Cajoling the Bird: How we squeezed more out of Phoenix PubSub- Simon Zelazny Grindr is a m...
New
axelson
ElixirConf 2017 - Elixir The Toyota Way - Powell Kinney Toyota has a century-long legacy of innovation in ma...
New
axelson
Hey everyone! I hope everyone enjoyed ElixirConf! I know that I did. In order to facilitate and continue the discussion (especially since...
New
axelson
ElixirConf US 2018 – Architecting Flow in Elixir - From Leveraging Pipes to Designing Token APIs – René Föhring (@rrrene) ...
New
axelson
We’re now on the day 2 talks! ElixirConf US 2018 – Understanding Elixir’s (Re)compilation – Renan Ranelli ...
New
ShalokShalom
So, there is another Erlang VM on the way :hugs:
New
CodeSync
Code Sync: Writing much better tests in Elixir by Xochitl Pérez | Code BEAM Lite Mexico 2023 Comments welcome! View the <span class="has...
New

Other popular topics Top

joaquinalcerro
Hi there, I am working with Ecto-Postgresql and I need to call all of the records from a specific table but the table has 40,000 records...
New
vonH
When I run the Plug and I recompile I wind up having to use Ctrl C to quit iex and start again. Witht the help of rlwrap I can use the cu...
New
jononomo
For some reason my phoenix channels are working for me in my local dev environment, but as soon as I deploy via Docker, I get a 403 error...
New
sen
Hi All, I set a environment variables in dev.exs , like below code. when i start server, how can i set the ${enable} value? thanks. d...
New
TunkShif
This post is an instruction guide to help you setup your Neovim for Elixir development from scratch. It includes general information on h...
274 42716 114
New
sergio
Kind of like when jquery came out, it was super necessary. Existing drag and drop libraries have a bunch of baggage to support old browse...
New

We're in Beta

About us Mission Statement