What would you do if you needed to customize the styling of the classes that LiveView uses for loading indicators and form feedback while using Tailwind? Chris McCord shows how to solve that in a beautiful way using a plugin feature fro Tailwind.
It often so happens that multiple processes need the same, potentially expensive function to be executed. You could cache the result, but on a cold cache, it could still happen that the function is executed multiple times. Danie Palm shows how to solve that problem using the GenServer and Task modules.
How can you efficiently search through millions of usernames using Ecto? Peter Ullrich takes a deep dive into Postgres’ ILIKE and SIMILARITY operators and their dangerous caveats.
Michael shows how Ecto encourages you to write secure code in Phoenix, what a function vulnerable to SQL injection looks like, and how to use Sobelow to prevent this vulnerability.
Through a load testing assessment, Matt Baker's team learned how their API gateway would perform when CPU-bound or memory-bound. Two years later, their assessment proved correct. He shares how they did the investigation and how they reduced memory usage during expensive queries by 60-70%.
Parsing CSV files is a common task. Jacob Swanner shares a quick tip about how to turn a CSV file into a Map with 3 lines of code. The key is using the Enum.flat_map_reduce/3 function.
William Huba shares how delta CRDTs work (using Horde as an example), how to leverage delta CRDTs for your own synchronized state, and the tradeoffs for doing so versus a traditional database.
Luna is looking for someone with 4+ years of experience developing consumer applications with an interest in Elixir. We're starting to break our existing Rails 6 app up into an Elixir microservice architecture, and we're looking for more team members to help us accomplish this! Email anthony@getluna.com for more information.