Unless you already didn't know, when a LieView component is mounted on a page, it runs the mount/2 function twice. One when the page is rendered from the initial request, and one one when the socket is connected. So if you have data that is slow or resource heavy to load, you should consider to wait until the socket is connected so the intial load is not in vein.
A popular approach is to use ghost cards. A ghost gard is a loading placeholder that looks similar to the content that you try to load in but without actual data.
In this tutorial I will show you how
Joy of Elixir is a gentle introduction to programming, aimed at people who already know some things about computers, but who have little-to-no programming experience.
I have a bit of an odd question, but I have read all sorts of Elixir documentation and textbooks in sort of an answer to this and have come up with nothing.
I have a set of .txt files which each c...
When crafting an Elixir program, you often need to share a state. For example, in one of my previous articles I showed how to code a server to perform various calculations and keep the result in...
Want to write better user stories? Stop using “can”.
Feature Factories are dangerous things. You might even work in one and don’t realize it yet. Here’s a test: if your team built something 6 months ago and you’ve no idea if anyone …
Building a Streaming Music Service with Phoenix and Elixir
I thought it would be nice to make a streaming music service focused on bringing lo-fi artists and listeners together. Early on, I put together a series of prototypes to explore with a small group of listeners and artists. Since this is a technical article, I'll jump right into the requirements we arrived at, though I'd love to also do an article on the strategies and principles that guided our exploration.
Elixir - File IO, File IO is an integral part of any programming language as it allows the language to interact with the files on the file system. In this chapter, we will discus
I'd like to think that my understanding of "async Rust" has increased over
the past year or so. I'm 100% onboard with the basic principle: I would
like to handle tho...