Huh? What gave me away?
Welcome to the Elixir community!
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
First up, Insertion Sort.
Insert sort is the de-facto algorithm for most programmers.
Here I implement it in Elixir-
Article - Insertion Sort
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
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.
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.
Check our latest blog article about insights from companies using Nix in production, and a guide on integrating Nix with Elixir apps.
Next up, Quick Sort!
It is a popular choice among programmers for its elegance and efficiency.
Do read.
Article - Quick Sort
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.
Awesome post!
Thatâs a fairly long article whose main takeaway is basically: âuse Elixir behavioursâ.
I wrote a mini-post about how to quickly mock external dependencies without a mocking library in Elixir.
âIt doesnât even have static types!â
âThe VM is heavy because I like Rust.â
âThere are no jobs!â
Have I mocked now?
More like stubbed at the back
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:
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