⚠️ This post links to an external website. ⚠️
The Advent of Code is a fun annual programming competition with an Elf theme. It consists of 25 two-part problems of increasing difficulty, released every day in December leading up to Christmas.
Every December, I complete it in a new programming language. Every January, I intend to blog about the experience, but inevitably it slips, this year all the way back to November! (Sorry, I got completely consumed by a non-TypeScript side project.)
In 2024, I did the Advent of Code in Elixir, a functional programming language with immutable data types based on Erlang. This is analogous to how the JVM was built for Java, but also serves as a runtime for other languages like Kotlin and Scala.
I picked Elixir largely because a friend of mine worked in it. I'd also never written a substantial amount of code in a purely-functional language, and I was curious to see how it worked.
I suspect there's relatively little overlap between TypeScript and Elixir developers. They serve different roles and occupy different niches. But they do have a thing or two in common. In particular, Elixir is in the process of adding a gradual, optional typing system. Sound familiar?
continue reading on effectivetypescript.com
If this post was enjoyable or useful for you, please share it! If you have comments, questions, or feedback, you can email my personal email. To get new posts, subscribe use the RSS feed.