Introductory Phoenix LiveView course
I’ve just published the first three episodes of an Introductory LiveView course. These episodes are standalone and free extracts from the larger course.
Association Defaults in Ecto 📀
This little-known Ecto feature, that we’ve been using in production at Slab for over a year now, can help you design secure and scalable multi-tenant applications in Elixir:
Association Defaults in Ecto →
phx_component_helpers - Easier live_components coding
PhxComponentHelpers
are helper functions meant to be used within Phoenix LiveView live_components
to make your components more configurable and extensible from templates.
The Beauty Of [Functional Programming]
Programming languages that are not functional can get messy with lots of if-else statements especially if you are a beginner. With functional programming languages that practice is not followed, let’s dive in with a simple example with the Elixir programming language.
Advanced Ecto.Multi Usage by Eric Oestrich
Latest blog post is out today! Check it out here: https://blog.smartlogic.io/advanced-ecto-multi-usage/
Alchemy Conf is dead, long live VirtuAlchemy Conf
Everything you need to know about Alchemy Conf 2021. Date, tickets, charity proceeds and carbon-neutrality. https://subvisual.com/blog/posts/virtualchemy-conf-may-28-2021
Code folding support in Emacs with Elixir language server
Support for code folding landed in master on the ElixirLS project. Here is a walk through getting it set up for Emacs users, specifically Doom Emacs.
Slurpee - A GUI frontend to manage blockchain ingestion with slurp
Connect to multiple blockchains to process log events with a near uniform API https://github.com/fremantle-industries/slurpee
ThinkingElixir 040: Mental Models for Elixir and LiveView
In episode 40 of Thinking Elixir, we talk about the mental models we use for writing our Elixir code and for thinking about our Elixir systems. We cover transformations, plug, and Mark’s “Workshop Model” (starting at 23:45). We also talk about LiveView (31:20), how we approach it today, mistakes we’ve both made and seen. A fun discussion! We want to continue the discussion with you over on ElixirForum. Check the show notes for links to those topics.
Create ZIP archives with Elixir
I had to work with ZIP files in Elixir today. You can easily create an archive both on disk or in memory with Erlang’s :zip
module.
14th episode - Using macros for refactoring in Elixir - crypto trading in Elixir
Hello everyone,
Just released my 14th video!
We will focus on refactoring the duplicated logic responsible for supervising(starting, stopping, and autostarting) the dynamic processes inside the naive and the streamer applications. First, we will abstract away all the generic code leaving just a boilerplate inside the naive application. Next, we will look into the “using“ macro which we will leverage to get rid of that boilerplate. This video was released for educational purposes as the proper way of solving this problem would be to use the Registry(which will be the focus of the next episode).
https://www.youtube.com/watch?v=oaeaW0tgMCU&list=PLxsE19GnjC5Nv1CbeKOiS5YqGqw35aZFJ&index=14
AWS CodeCommit <> CodeBuild Pull Request CI Workflow
A guide for Implementing a PR Workflow using Codecommit and Codebuild in AWS. https://devato.com/post/codecommit-codebuild-pull-request-workflow
Updated fork of ex_projections
https://github.com/dkuku/ex_projections that allows you to easily navigate between lib/test files in elixir projects and also controller/view/test in phoenix projects. It can generate projections.json for normal mix projects and umbrella apps. Uses the projections file from https://github.com/dkuku/vim-projectionist-elixir/
Introducing Pumba
Pumba allows you to fetch user agent strings http://useragentstring.com, keep them in-memory and allow fast access to them. It can benefit you when you need to simulate browser or use with crawlers etc.
https://github.com/imanhodjaev/pumba
Hakuna Matata!
Code BEAM V US Highlights by Rose Burt
The latest Elixir blog post is out! Check it out here: https://blog.smartlogic.io/code-beam-v-us-highlights/
Elixir Wizards S5E16 Jenn Gamble on Data Science, Machine Learning, and Elixir
Latest episode of Elixir Wizards is out today! Check it out here: https://smartlogic.io/podcast/elixir-wizards/s5e16-gamble/
Building Git in Elixir — Part 3 (Make History & Store Executables)
In the previous article, I focused on storing trees and our first commit. In this article, I will focus on making commit history and storing executable files.