Connection lost
Reconnecting. If you just saved something, check that it saved before trying again.
Server error
Reconnecting to the server. If you just saved something, check that it saved before trying again.
Live Sessions in Phoenix LiveView: Reducing navigation time between LiveViews
The main idea behind live sessions is to reduce navigation time when navigating a group of routes. Normally what happens when navigating between LiveV...
Phoenix application configuration
The config folder plays a pivotal role in any phoenix application. Its constituents are normally config.exs, dev.exs, prod.exs, runtime.exs and test.e...
Impelementing Infinite Scroll in Phoenix
Infinite scroll is a listing-page design approach seen a lot on widely used apps such as TikTok and Instagram to keep the user engaged, loading additi...
Executing OS processes using Elixir Ports
Ports in Elixir provide us an interface for communicating with external processes by sending and receiving messages. They make it easy to start and ma...
Verifying Replicate Signatures
Replicate is a platform for running AI models without having to worry about setting up infrastructure. A more simple definition would be "The Cloud bu...
Sandbox modes in Ecto Testing
A sandbox is an isolated testing environment that enables users to run programs or open files without affecting the application, system or platform on...
Asynchronous operations in Phoenix LiveView
What do you understand by the term "Expensive Computations"? Theoretical computer science defines them as the ones taking the most memory and time to ...
Pattern matching on Bitstrings
Assume that you have a long string of text that you want to display to the user. You want to display a maximum of 60 characters and add an ellipsis if...
Using the "Use" Elixir Macro
Suppose you have the following module directives in your current module:...
Offset-based pagination in Elixir
Pagination is a technique used to break a large dataset into manageable “pages” (chunks) of results. It’s essential for:
+ UI rendering (e.g., showin...
Testing Oban Workers
Background processing refers to the execution of tasks as separate, detached processes. Oban is a robust background job framework that is widely used ...
Ecto fragments for complex queries
Sometimes when writing Ecto queries, you might discover that the conventional approach doesn't quite cut it. This is where fragments come in, which ar...
Capturing Logs in Tests
Sometimes when you writing functions that may produce errors, you might want to log the error in the terminal :...
Multi-process collaboration in Mox
Mox enforces process-based verification, meaning only the process that defines expectations is allowed to call the mock by default. This can prove pro...
Uploading files to the cloud (s3 compatible)
As profile images have become a standard in web applications, implementing this feature has become increasingly important. After a user fills in their...