LiveView's new Streams feature is set to be a game changer and yet easy to use at the same time. Chris McCord writes this dev blog post shinning a light onto this new feature.
Posts Tagged with 'elixir'
Phoenix 1.7 is dropping Phoenix.View, but it's for a good reason! Controllers and LiveViews will now render function components. And the aim is to collocate templates next to the controller that renders them!
Sometimes you are faced with the task to build a list out of elements where some of the elements are conditional. Dart even has a special syntax for this.
The biggest lesson I learned from the "Let it fail" philosophy, is to distinguish expected errors and unexpected errors. So we can safely ignore the unexpected, and only handle the expected errors in our business logic.
There are a bunch of operations you may want to perform before the rendered response in conn is sent to the client, such as minification. In this post I'll show you how to do it easily.
ElixirFocus provides educational content for Elixir developers looking to evolve their coding skills.
Elixir news and status updates from the community for Elixir and Phoenix
Daniel is a Full Stack Engineer who outside work hours is usually found working on side projects or blogging about the Software Engineering world.
The macro Ecto Query dynamic/2 allows you to build query fragments and interpolate them into one large query. We get easy-to-manage query building in an accessible way. It allows you to control the parameters from the user and transparently create filtering of data stored in the database.
Elixir news and status updates from the community for Elixir and Phoenix