Using Ecto.Multi and Phoenix.PubSub to update Phoenix Liveview

Keep your Liveviews in sync with your database by adding pubsub to your Ecto contexts.

https://intever.co/blog/ecto-liveview-pubsub

Dependency Inversion with Elixir Protocols

I’ve always liked the Dependency Inversion Principle (DIP). Once understood, it helps us decouple code in surprising ways. Let’s take a look at how Elixir protocols decouple code through DIP.

✍️ https://www.germanvelasco.com/blog/dependency-inversion-with-elixir-protocols

Fundamentals & Deployment

A recent podcast episode with Kelsey Hightower got me thinking about my deployments.

https://underjord.io/fundamentals-and-deployment.html

Is LiveView Overhyped?

A good while back I saw discussion of this and this is my late attempt to put some nuanced into my typically very enthusiastic writing on this tech. (spoiler: I still like it) https://underjord.io/is-liveview-overhyped.html

ExLicense - License header injection

First release of ExLicense, the utility to inject license header in Elixir files .

Check out the release post

TIL: wrapping an execution in a tuple

One of the advantages of Elixir is its openness. You can get more readable code with the command wrapped in tuple. You don’t need to modify the response from functions itself.

https://bartoszgorka.com/til-wrapping-an-execution-in-a-tuple

Zanzibar Goes Elixir, Pt. 1: Setup and Relation Tuples

Zanzibar is a unified, planet-scale authorization system used by Google. While none of my side projects are quite at planet scale yet, the idea of a general purpose authorization engine is intriguing. In this article series, I’ll attempt to write a naive implementation of the system using Elixir and PostgreSQL. https://www.mathiaspolligkeit.com/dev/zanzibar-goes-elixir-pt-1/

ThinkingElixir 090: Elixir Cards with Tetiana Dushenkivska

In episode 90 of Thinking Elixir, we talk with Tetiana Dushenkivska, the creator of Elixir Cards, a series of Elixir flashcards with multiple ways to use them. We talk about why she created the cards, how they helped her, and how others have used them. We talk about learning models and the importance of repetition for memorizing things. Tetiana shares how LiveView is used in the creation of the cards and more! David shares how he used the cards for fun drills at meetups and Tetiana fondly recalls a tournament held at a previous Elixir conf. She also shares what she’s working on now for a future online learning system.

https://podcast.thinkingelixir.com/90

A Guide to Secure Elixir Package Updates

This article explores how you can use Hex dependencies for safer package updates in Elixir.

https://blog.appsignal.com/2022/03/15/a-guide-to-secure-elixir-package-updates.html

Using mix aliases to improve your workflow

I wrote a bit about using mix aliases to improve your workflow. I always use them and augment them. But I never thought about writing about them til now. Hope it’s helpful to others!

https://www.germanvelasco.com/blog/using-mix-aliases-to-improve-your-workflow

Build Simple Reusable Widgets Using Slots

A new feature in LiveView called “slots” can help make your components more composable and reusable. This post is about getting started with slots to build a simple component.

I took notes from what I learned while creating my first custom LiveView component using slots. If you’ve been wanting to play with slots, hopefully this can help you skip the snags that slowed me down.

https://fly.io/phoenix-files/build-simple-reusable-widgets-using-slots/

Scholarship tickets for The Big Elixir

NewAperio is sponsoring The Big Elixir conference in New Orleans this year and we’re giving away scholarship tickets for students/professionals from underrepresented groups. Learn more and apply here.

Benchee 1.1.0 released + why did it take so long

After quite some time you can finally enjoy a new Benchee version with a bugfix (finally!), reduction counting and profiler after benchmarking (yay!). Check out the Changelog or go all in on the release blog post including some musings on Open Source and why it took so long.

ThinkingElixir 089: Reducing the Friction in Your Flow

In episode 89 of Thinking Elixir, we talk about how designing applications with lower friction points is a valuable goal. LiveView plays a powerful role in that mission. Mark pitches why he thinks it’s time to take another look at LiveView if you haven’t lately. We talk over some of the business benefits, efficiencies gained and we address some common reasons given for “why it can’t work.” We also cover some remaining areas of improvement for LiveView. Then we talk about how moving your servers closer to users removes additional friction both for deployment and application design. Mark shares how the fly_postgres library works and how it enables people to build “normal” Phoenix applications using Postgres read-replicas across multiple regions. A fun discussion!

https://podcast.thinkingelixir.com/89

Creating Your Own Elixir Package

In my previous article I went through the step necessary to create your own Ueberauth strategy. In this article I explain how I would take that code and release an Elixir package. Hope you enjoy it.

Creating Your Own Elixir Package

An opinionated Elixir style guide

How to format, structure and keep your #Elixir code consistent: http://k.lelonek.me/elixir-style-guide

Elixir Meetup #3 - Join the Elixir enthusiasts community during our regular meetups!

DATE: 9th of March / TIME: 18:00 (CET) Register here: https://curiosum.com/meetups/elixir

What Is: Phoenix LiveView (video)

Building the foundation of understanding of Elixir and the projects that drive interest in it, we come to Phoenix LiveView. I hope that this explanation helps some people get and share an understanding of what it is and what trade-offs it makes as well as what power it brings: https://www.youtube.com/watch?v=wrmVk2czqMg

ueberauth_patreon 1.0.0

I created and published a new uberauth strategy package for Patreon.

Check it out!

Ecto Changeset for verifying parameters used in your API

You can use Ecto to check any information from the user. Extra, we have another layer of security. Only the supported parameters are passed to the domain layer.

Using Ecto to verify parameters from the user is not difficult and can be part of your API verification pipeline.

Check on: https://bartoszgorka.com/ecto_changeset_for_verifying_parameters_used_in_your_api

Previous page Next page