Enhancing user experience in LiveView applications with Alpine.js

How integrating Alpine.js with LiveView can significantly enhance the user experience in your applications.

https://curiosum.com/blog/enhancing-user-experience-in-liveview-applications-with-alpinejs

Thinking Elixir News 189

Episode 190 of Thinking Elixir. In this episode, we delve into the significant updates to Phoenix LiveView with its march towards 1.0, including crucial bug fixes in the latest v0.20.5 release. We explore the sleek new testing utility for Elixir, example_test, that’s redefining readability in code tests. Plus, the Erlang community is abuzz with a fresh proposal to integrate JSON into the standard library. We’ll look into how Fly.io has made GPU instances widely available and what this means for your projects. Don’t miss out as we discuss these topics, Gleam’s journey toward its 1.0.0 release, and more!

https://podcast.thinkingelixir.com/190

Elixir Streams |> 🤩 Better defaults with Enum.find/3

🔥 little trick that makes Enum.find better.

Use Enum.find/3 and set a default option. It can be a good default or a nicer error message!

🎥 Elixir Streams |> 🤩 Better defaults with Enum.find/3

Creating Custom Exceptions in Elixir

https://blog.appsignal.com/2024/02/20/creating-custom-exceptions-in-elixir.html

Writing dynamic Ecto queries with Composite

Learn how to write dynamic Ecto queries efficiently with Composite, optimizing code organization and query composition for better performance and readability compared to traditional methods.

Article: Writing dynamic Ecto queries with Composite

Elixir Streams |> ⚙️ Set your preferred CLI env for mix aliases

At some point, you might introduce a new mix alias to run a subset of your tests.

But mix requires you to write MIX_ENV=test every time before you run the mix alias! 😡

Well, it turns out there’s a better way. Just set the preferred CLI environment!

Elixir Streams |> ⚙️ Set your preferred CLI env for mix aliases

FIT parsing and code generation in Elixir

Using macros to generate FIT profile https://arathunku.com/b/2024/fit-parsing-and-code-generation-in-elixir/

Modern Clicks (Erlang Fullstack Web Development with Nitrogen), David Cao

Title: Modern Clicks (Erlang Fullstack Web Development with Nitrogen)

The main idea is to make an introduction to Nitrogen (a framework to do full stack web development with Erlang) sharing my personal experience in my current work.

Giving a minimal explanation on how to code in Erlang for a beginner developer and making a simple example on Nitrogen.

This will be a talk driven by code samples and memes. https://www.youtube.com/watch?v=4bgo435yZlk

Modern Clicks (Erlang Fullstack Web Development with Nitrogen), David Cao

Title: Modern Clicks (Erlang Fullstack Web Development with Nitrogen)

The main idea is to make an introduction to Nitrogen (a framework to do full stack web development with Erlang) sharing my personal experience in my current work.

Giving a minimal explanation on how to code in Erlang for a beginner developer and making a simple example on Nitrogen.

This will be a talk driven by code samples and memes. https://www.youtube.com/watch?v=4bgo435yZlk

Flaky Tests with Faker? Fix it with 1 line of config

If you use Faker in LiveView tests, some HTML special characters can cause tests to fail randomly.

You can fix it with 1 line of config –

Read the article: https://johnelmlabs.com/posts/flaky-faker-liveview-tests See the tweet: https://x.com/JohnElmLabs/status/1757107288169455996?s=20

BeamRad.io Podcast: LiveView Native with Brian Cardarella

BeamRad.io hosts Lars Wikman and Alex Koutmos chat with Brian Cardarella, CEO of DockYard about LiveView Native, its development, and its potential impact on the market. They share personal stories and experiences with LiveView Native, highlighting its intuitive and familiar development process. Don’t miss this one!

https://www.beamrad.io/70

Thinking Elixir News 189

Episode 189 of Thinking Elixir. In this week’s podcast, we cover the release of Elixir 1.16.1 with its various bug fixes, delve into German Velasco’s ExUnit testing tip for running tests in parallel, explore the performance boosts experienced by Thomas Millar after upgrading to Bandit, and celebrate the 10-year anniversary of Inch, René Föhring’s documentation analysis tool. We also discuss the innovative use of Elixir Protocols for customized route parameters in Phoenix, the creation of a new Kino for embedding YouTube videos into Livebook, and a stark reminder of the potential dark side of AI and ML with a deepfake phishing scam that cost a company $25 million, and more!

https://podcast.thinkingelixir.com/189

Shell scripting with Elixir

When simple bash scripts start to become unwieldy, you may consider reaching out for something “higher” level, like Perl, Ruby or Python. I’m reaching out for Elixir.

https://arathunku.com/b/2024/shell-scripting-with-elixir/

Simple Req Cookie Jar

A simple req cookie jar plugin, can be used when automating or scraping websites that implement cookie based sessions.

https://blog.litapp.ovh/Simple Req Cookie Jar.html

Nerves Meetup: Scenic Goes To Cairo

Join Jon Ringle, lead embedded software engineer at GridPoint, on a walkthrough of how the Cairo graphics library is transforming Scenic to deliver high performance graphics to Nerves devices.

https://www.meetup.com/nerves/events/298253592/

Thomas Millar, Instructor - The bridge between Elixir and AI

Great talk from Thomas on how to use LLMs in Elixir. https://www.youtube.com/watch?v=RABXu7zqnT0

Thinking Elixir News 188

Episode 188 of Thinking Elixir. In this week’s news, we follow-up on Erlang’s use of ExDoc with José Valim’s reveal of upcoming features for ExDoc that promises to enhance documentation experiences. We’ll also explore the return of the Elixir Slack inviter, now powered by a Plug app, and take a look at the latest PhoenixTest project, aiming to unify testing workflows for LiveView and static pages. Plus, we discuss adding sound effects to LiveView with Howler.js and get a sneak peek at the Nx library’s newest Explorer v0.8 release, bridging Elixir to GPU operations for data exploration, and more!

https://podcast.thinkingelixir.com/188

Elixir Streams |> Debugging tip! One quick way to find out which functions you're executing

Want to know which functions are being executed during tests?

I’d typically write custom dbg statements. But I always wanted a way to print the function’s name without me having to know it.

Turns out, there’s an easy way thanks to the __ENV__ macro! 🥳

👉 Elixir Streams |> Debugging tip! One quick way to find out which functions you’re executing

Borrowing libs from Python in Elixir

Why choose between Elixir and Python when you can have the best of both? Read about the tricks to borrowing Python libraries for your Elixir applications.

https://curiosum.com/blog/borrowing-libs-from-python-in-elixir

The Lazy Programmer's Intro to LiveView Part 10: Listing matches for users

https://dev.to/lubien/listing-matches-for-users-257c

This time we are going to do a little bit of frontend and at the same time learn a bit more about Ecto and LiveView streams. Our goal is to make the user page list all their matches.

Next page