David Lucia

Platform Software Architect at SimpleBet

Dave is currently using Elixir and Rust to build high load, real-time sports betting software at SimpleBet. Before that, Dave spent two and a half years at The Outline, where he built its custom CMS and advertising platform in Elixir and Phoenix. Prior to that, he worked for Bloomberg where he was an integral part of the 2014 Bloomberg.com relaunch.

Dave lives in Queens, NY with his wife and 6lb pomeranian named Pearl.

Past Activities

David Lucia
Code BEAM SF 2019
28 Feb 2019
17.15 - 17.40

Refactoring Elixir for maintainability

Elixir is a very expressive language that offers syntactic features that are new and exciting when coming from other languages. Beginners tend to overuse features such as pattern matching and multiple function heads because of their novelty, while missing opportunities to make their code more generic and workable. Additionally, powerful language features such as protocols and behaviours are often overlooked due to their relative complexity.

This talk will highlight many of the common beginner mistakes, and often alternative patterns to writing code that tend to be more maintainable over time.


This talk aims to identify common beginner mistakes when coming from other languages such as Javascript, Ruby or Go, that do not have the ergonomic features of Elixir, and offers insight into how to fix these mistakes to make your code more maintainable over time.


This talk appeals to beginners and intermediate developers who are newer to Elixir and haven't written enough code to identify structural patterns that can lead to future headaches.