Advent of Code 2024 Day 2 Highlights
A couple of Elixir’s dynamic programming goodies that were helpful today
Avoid Trips To The Database With Nebulex
Another Elixir related article from my learnings while building my own apps! This covered integrating Nebulex, a caching toolkit, to easily add catching around some query functions that are called many times a minute per user. #elixir #elixirphoenix https://blog.guzman.codes/avoid-trips-to-the-database-with-nebulex-phoenix-series
Advent of Code 2024 started! Highlights from solving day 1 in Elixir with Livebook
A bit of an overview of my experience solving previous advent of code events and highlights from solving day 1 of this year’s #AoC in #Elixir with Livebook.
AWS RDS IAM database authentication with Ecto
AWS RDS supports IAM database authentication. This means that we don’t have to deal with password rotation and can instead use shortlived tokens as database passwords!
When to use the handle_params callback
The handle_params/3 callback helps keep and restore the state in the URL of your LiveView. This is nice because you can share the URL with anyone.
#MyElixirStatus #ElixirLang #Elixir #Erlang
https://dev.to/herminiotorres/when-to-use-the-handleparams-callback-4n12
Credo
In this episode, we’ll learn how to use Credo to help us catch inconsistencies and improve our code.
Elixir Book Club is reading Build a Weather Station with Elixir and Nerves
📘👨💻💜 The Elixir Book Club has chosen our next book!
Build a Weather Station with Elixir and Nerves: Visualize Your Sensor Data with Phoenix and Grafana
Our next meeting is December 10th, and considering the time delay in acquiring equipment for the book’s projects alongside the holiday season, this meeting will be more casual.
The December 24th meeting will be skipped.
The January 7th meeting will target Chapters 1, 2, and 3.
Join our Discord!
Thinking Elixir 179: Future of AI with Elixir?
Episode 179 of Thinking Elixir. In the latest episode, we delve into the rapidly evolving AI ecosystem and its implications for us as Elixir developers, highlighting the potential hazards of relying on proprietary services like OpenAI and the benefits of self-hosted, open-source AI models. We touch on the Elixir LangChain library, how Elixir’s position of running our own AI models strengthens us, and the governance and financial risks of depending on a single AI provider. Tune in for why these topics matter and how they shape the future of development in the context of Elixir, plus the holiday season’s impact on our show schedule, and more!
Advent of Code Elixir Starter Template
If you are going to do Advent of Code in Elixir, I have a nifty starter template!
https://github.com/mhanberg/advent-of-code-elixir-starter #MyElixirStatus
Elixir streams and lists comprehensions
Focusing on Elixir programming, the new article is up on our blog. It highlights Stream’s lazy enumerable generation and contrasts it with Enum’s eager approach, suggesting the use of List Comprehensions for more concise code in certain scenarios.
https://curiosum.com/blog/elixir-streams-and-lists-comprehensions
lixir-streams-and-lists-comprehensions
Focusing on Elixir programming, the new article is up on our blog. It highlights Stream’s lazy enumerable generation and contrasts it with Enum’s eager approach, suggesting the use of List Comprehensions for more concise code in certain scenarios. https://curiosum.com/blog/elixir-streams-and-lists-comprehensions
Reliable e-mail delivery in Elixir with Bamboo + Oban
In the dynamic landscape of web applications, effective communication with users is paramount. Sending bulk emails, such as newsletters or promotional messages, is a common practice for keeping users engaged. In this blog post, we’ll explore how to leverage Bamboo and Oban libraries to send bulk emails seamlessly from your Elixir application.
https://maheepk.net/posts/reliable-email-delivery-in-elixir-with-bamboo-and-oban/
The “let it crash” error handling strategy of Erlang, by Joe Armstrong
In this text, Joe Armstrong answers a message from Luke Gorrie in 2003 where he (Joe) discusses error handling in Erlang, advocating for allowing processes to crash instead of implementing extensive error-checking code. He emphasizes generating clear error messages, sticking to specifications, and using separate processes to observe and correct errors for fault tolerance. The Erlang design mirrors an idealized human organization’s structure, where different roles manage tasks, check quality, and handle errors.
https://dev.to/adolfont/the-let-it-crash-error-handling-strategy-of-erlang-by-joe-armstrong-25hf
CLI apps in Elixir series
An exploration Elixir tools to build CLI apps 🖥️ https://brewingelixir.com/series/cli-apps-in-elixir
How to use unique_index wisely to grasp our business logic
Using the ecto_sql package to demonstrate a use case using unique_index with where to enforce uniqueness only for one status type and grasp a business logic, check it out! 👊
#MyElixirStatus #ElixirLang #Elixir #Erlang
https://dev.to/herminiotorres/how-to-use-uniqueindex-wisely-to-grasp-our-business-logic-109m
Thinking Elixir 178: Safe Ecto Migrations and AI Updates
Episode 178 of Thinking Elixir. In this episode, we revisit the Safe Ecto Migrations guide and get an update on improvements. We also discuss the role and importance of OpenSource AI models. We cover updates in the Elixir LangChain library, the advantages of self-hosted AI models like Mistral, and learning how to run Bumblebee on Fly.io GPUs. Tune in for an insightful blend of database best practices and the cutting-edge of AI in Elixir, plus more!
Setting Up a Multi-tenant Phoenix App for Elixir
In the first of a two-part series, we’ll set up a multi-tenant Phoenix application: https://blog.appsignal.com/2023/11/21/setting-up-a-multi-tenant-phoenix-app-for-elixir.html
Elixir Streams |> LiveView's start_async helper for arbitrary async operations
I knew LiveView 0.20 had shipped with a start_async
helper along with the more popular assign_async
. But I hadn’t tested it til now.
It’s sooo nice for arbitrary async tasks in LiveView that need error isolation. Lovely addition to the tool belt! 🤩
Check it out! 👉 Elixir Streams |> LiveView’s start_async helper for arbitrary async operations
Using Phoenix Channels? High Memory Usage? Save Money With This One Change.
Using Phoenix Framework? Are you heavily using Phoenix Channels? It might be time to take a closer look at your memory consumption like I had. Learn how one setting saved me money. https://blog.guzman.codes/using-phoenix-channels-high-memory-usage-save-money-with-erlfullsweepafter