Elixir Blog Posts

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

3 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

1 Like

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.

5 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

1 Like

I just posted a write up about implementing a Multi like function for soft_delete_all/5. It’s mostly syntactic sugar for Multi.update_all/5 but the project makes heavy use of soft deletes so I thought it made sense to implement it like update_all/5:

Check our new blog post “Bringing SOLID to Elixir”. Read how to apply it to create more maintainable, scalable, and adaptable software systems.

2 Likes

Awesome post!

1 Like

That’s a fairly long article whose main takeaway is basically: “use Elixir behaviours”.

2 Likes

I wrote a mini-post about how to quickly mock external dependencies without a mocking library in Elixir.

5 Likes

“It doesn’t even have static types!”

“The VM is heavy because I like Rust.”

“There are no jobs!”

Have I mocked now? :stuck_out_tongue:

5 Likes

More like stubbed at the back :neutral_face:

2 Likes

I started playing with Elixir’s Explorer library, trying to implement some code from python for time-series ML.
I wrote about the whole process, with code and benchmarks, if anyone is interested:

The Livebook

Preparing Financial Time Series for ML in Elixir: Going FAST with Explorer & a C NIF
ML in Elixir is getting more and more popular every day!
Working with Time Series in Elixir might sound like the best idea but turns out it is much faster and easier than you think! And together with NIFs we can really optimize performance. Together with Elixir’s beautiful syntax we can do A LOT and very fast. This is only the beginning!

I wrote a short blog post of creating static site in elixir and load phoenix component inside md files, I hope it is useful

4 Likes