Elixir Streams |> đ€ and/or Vs. &&/||. Which to use?
Someone recently asked me which to use: and
/or
OR &&
/||
?
Decided to make a short video about it.
Though theyâre similar in many ways, theyâre not the same! Here are some useful differences and some pitfalls. đ
Nerves Meetup
The next Nerves embedded systems meetup is Wednesday, April 24th! This will be a social gathering to hang out with other Elixir/embedded engineers, share projects, ask questions, and get help! RSVP here:
Elixir + Phoenix: How to Raise Custom HTTP Error Responses in Your REST API
This blog post shows how, by adding a few lines of code, you can return a custom HTTP error response (with status code and custom message/payload) in your Elixir + Phoenix REST API, at any time in the request-response lifecycle.
https://www.nicholasmoen.com/blog/phoenix-custom-error-responses/
Phoenix admin frameworks - a very subjective evaluation
I needed to add a small admin interface to a webapp Iâm making. See how I got there, and why I decided on using Kaffy in the end.
Elixir Enthusiasm: Insights from Senior Software Engineer Eduardo Borsa
Join Professor Adolfo Neto in this episode of the podcast as he delves into the world of Elixir with Eduardo Borsa, a Senior Software Engineer at Loomis, Sayles & Company. Eduardo shares his journey into software engineering and his early encounters with Elixir, highlighting the factors that sparked his interest in the language. As they discuss Eduardoâs role at Loomis, Sayles & Company, listeners gain insights into the projects Eduardo is involved in and the technologies he finds both exciting and challenging. Moreover, Eduardo explores the symbiotic relationship between industry work and education, drawing from his experiences with ELXPRO to provide a unique perspective. Throughout the conversation, Eduardo offers recommendations for staying abreast of developments in the field, from books and blogs to podcasts and courses.
Elixir development using Podman with VM in Parallels and Shared Folders
Weâve recently started to use containers instead of asdf on Mac for development again, and the setup Iâm using is based on podman. Weâve chosen podman because from our perspective itâs easier to use in production when compared to docker, and we wanted to be closer to the production environment on our development machines as well. Since setting this up using Parallels instead of the default QEMU VMâs was rather involved, weâve summarized all the necessary steps in a blog post for anyone else whoâd like to check this setup out.
https://nobilisdata.com/blog/podman_using_parallels_and_shared_folders_for_elixir_development/
Interviewing Tips!
My fellow Elixir-devs (Iâve never grown too fond of âAlchemistsâ), I know this isnât the most Elixir of all posts but Iâve seen many people make simple mistakes during hiring processes. And I want to help fix that, so Iâve written a series of posts geared towards programmers about interviewing that I hope yâall will find helpful!
Easy at-home AI with Bumblebee and Fly GPUs
A big barrier to getting started with local AI development is access to hardware. And by âlocalâ, I mean having direct access to a GPU and not going through AI-as-a-Service. Some of us are lucky enough to have a beefy Nvidia GPU, if so, good for you. For the rest of us, we can use a GPU on Fly.io while editing the app on our machine. Sounds crazy? Itâs actually really cool, and easy. Check out the ready-to-deploy server app with 3 LLMs setup for your immediate enjoyment.
https://fly.io/phoenix-files/easy-at-home-ai-with-bumblebee-and-fly-gpus/
Thinking Elixir News 196
Episode 196 of Thinking Elixir. This weekâs news includes the release of OTP 27.0-rc2 featuring the new json module, Phoenix Live reloadâs insightful update, and Chris McCordâs blog post that surfaces server logs directly in your browser console. Weâre also discussing the streamlined workflows in Oban Pro 1.4.0, and a deeper discussion on recent Redis licensing changes that have sent ripples through the open-source community. If thatâs not enough, weâve got insights into the refactoring Elixir survey thatâs underway and we share some innovative tools like the Livebook Smart Cell Template. Tune in for this and more!
How to Use Flume in your Elixir Application
Letâs learn how to handle background jobs in Elixir with Flume: https://blog.appsignal.com/2024/04/02/how-to-use-flume-in-your-elixir-app.html
How to work with Migrations and how to insert/update data with associations
In this post I am doing an introduction on how to create migrations and how to insert data that has associations with ecto. It is a very detailed post about ecto migrations and changesets. https://thiagoramos.me/articles/how-to-use-migrations-and-insert-data-with-associations-ecto
Understanding quoted expressions, `quote` and `unquote`.
In the second post in my series on Elixir macros, I introduce the concept of a âquoted expressionâ, and show how to create them using quote
and unquote
.
https://phoenixonrails.com/blog/elixir-macros-quote-and-unquote
[Podcast] Elixir Wizards S12E02 "Discovery Discoveries" with Alicia Brindisi and Bri LaVorgna
SmartLogicâs PM Alicia Brindisi & VP of Delivery Bri LaVorgna join Elixir Wizards Sundi & Owen for âDiscovery Discoveries.â Itâs more than a phaseâitâs the art of crafting tailored solutions, perfecting client-team synergy, and meticulous documentation.
Does discovery ever really end?
đ§ Listen: https://smr.tl/S12E2DD
đș Watch: https://youtu.be/7Yu2zZhkZLI
SeedFactory - a toolkit for test data generation
The main idea of SeedFactory is to generate data in tests according to your application business logic (read as context functions if you use Phoenix Contexts) whenever it is possible and avoid direct inserts to the database (as opposed to ex_machina). This approach allows you to minimize testing of invalid states, as youâre not forced to keep complex database structure in your head in order to prepare test data.
Optimum Elixir CI with GitHub Actions
Learn how we approach continuous integration at Optimum:
Optimum Elixir CI with GitHub Actions
Elixir Streams |> â»ïž Refactoring complex `else` clauses in `with` (an anti-pattern)
Love Elixirâs with
clause⊠but it can lead to confusing else
statements đ
In Elixirâs docs, itâs called the âComplex else clauses in withâ anti-pattern! â
Thankfully, itâs easy to improve that with some refactoring! đ„ł đ
đ„ Elixir Streams |> â»ïž Refactoring complex else
clauses in with
(an anti-pattern)
Thinking Elixir 195: Migrating from Next.js to Phoenix
Episode 195 of Thinking Elixir. In this compelling episode, we sit down with Ben Reinhart who shares his journey of transitioning from the JavaScript ecosystem, specifically migrating off of Next.js and Vercel, to Elixir and Phoenix, with Fly.io as the new host. Ben discusses his frustrations with the complexity and performance issues he faced, and how the switch to Elixir helped streamline operations and improve the efficiency of his AI-focused product at Axflow. He delves into his strategic choice for leveraging the operational simplicity and real-time features of Phoenix, while also acknowledging trade-offs such as rebuilding front-end components. Join us to explore Benâs story, learn about the features of Elixir that helped him, and discover how the move has influenced Axflowâs path towards finding product-market fit, and more!
Survey on Refactoring for Elixir
Please answer this survey! https://www.youtube.com/watch?v=axpc7zbEOvE
What is Elixir GenServer
Check our new blog post: https://curiosum.com/blog/what-is-elixir-genserver