Elixir Blog Posts

@rhcarvalho Hey Rodolfo :wave: Appreciate you give it a look!

did you work on Papercups or only studied from the outside?

Haha, no I have no affiliations with Papercups.

I had one side gig a few months ago where I needed to think about embedded chat functionality. Papercups gave me a great example of that functionality to learn from. So I decided to dive deeper and review the whole project and codebase as a part of some series I’m doing around reviewing different open source applications and their architectures.

I would say that, besides the article itself, the biggest thing I have discovered is Elixir. Before the overview, I had absolutely zero Elixir experience and had to ramp up as I was working on the review. Elixir turned out to be very elegant and readable language. It’s absolutely amazing how much Elixir/Phoenix can give you with so little effort. I have not seen that before with my prior experience in Python, Golang, Rust, JS/TS (JS ecosystem might be the closest I have seen to this but still it’s not the same).

4 Likes

@martosaur I see you actually worked at Zendesk :smiley:

Huh? What gave me away?

Welcome to the Elixir community! :purple_heart:

How to implement the Saga pattern in Elixir. It’s a handy pattern for managing multi-step, long-lived transactions that need to roll back if a step fails.

It’s a bit complex but very useful especially in distributed systems!

Hi all.
Started writing Data Structures and Algorithms in Elixir.
Implementation in Elixir is vastly different compared to other languages.
Avoiding the use of for loops & if-else blocks.
Just pattern matching and recursion.

Do read. Will give you a fresh perspective towards implementing algorithms in Elixir.

Article - Introduction to Data Structures and Algorithms in Elixir

2 Likes

First up, Insertion Sort.
Insert sort is the de-facto algorithm for most programmers.
Here I implement it in Elixir-
Article - Insertion Sort

1 Like

Thank you for doing this. I had started this long time ago but couldn’t continue due to other stuff. I will try to learn from your activities.

My (now unmaintained, sadly) repository is here

1 Like

Trying to share my understanding of how Nerves works and is put together. It is way more Erlang about how it Erlangs than most cloud services I gather.

4 Likes

Next up, Merge Sort!

It is the default sort algorithm implemented in Elixir Lists.

Do read -
Article Merge Sort

I wrote a blog post on how I write Home Assistant automations using GenServers in Elixir. It’s both an how-to for controlling Home Assistant and an introduction to GenServers and concurrency in Elixir.

3 Likes

Check our latest blog article about insights from companies using Nix in production, and a guide on integrating Nix with Elixir apps.

1 Like

Next up, Quick Sort!

It is a popular choice among programmers for its elegance and efficiency.

Do read.

Article - Quick Sort