Blog

My Thoughts

I write about software engineering, functional programming, and whatever sparks my curiosity. Documenting my learning journey one article at a time.

Filter by topic

3 min read

How to Get User IP Addresses in Phoenix LiveView

Elixir LiveView Networking Phoenix

Learn how to reliably obtain user IP addresses in Phoenix LiveView applications, whether you're deploying directly or behind a reverse proxy. We'll explore both peer data and header-based approaches.

Read article
7 min read

Implement the Web Share API in Phoenix LiveView

LiveView Phoenix Web Share API

Learn how to implement the Web Share API in your Phoenix LiveView application. This article will show you how to create a custom Phoenix LiveView hook to seamlessly share content, improve the user experience, and increase engagement.

Read article
9 min read

Elixir CI: Testing, Publishing, and Containerization with GitHub Actions

CI Elixir GitHub Actions

This article is about setting up a CI pipeline for an Elixir application using GitHub Actions. We'll cover installing dependencies, running tests, and checking code formatting, as well as publishing hex packages and building Docker images as part of the pipeline.

Read article
5 min read

Building a Table of Contents Component for a Phoenix Blog

Floki MDEx Phoenix

This article shows how to parse MDEx generated HTML into a nested data strcuture that is used to build a table of contents component for a Phoenix blog.

Read article
4 min read

How to integrate Tabler Icons into your Phoenix project

Phoenix Tabler Icons Tailwind CSS

Tabler Icons is one of the most popular icon library. This article shows how to integrate the icon library into Phoenix projects. We track the Tabler Icons source repository using Mix and use the Tailwind CSS plugin feature to build an icon component.

Read article
11 min read

Collaboration in Git: A comparison of different workflows

Collaboration Git Git Workflows Version Control

Choosing the right Git workflow is crucial for the success of a project. This article breaks down the nuances of different Git workflows and provides insight into the pros and cons of each.

Read article
8 min read

Display the number of online users in real-time using Phoenix Presence

Elixir LiveView Phoenix Presence

Adding real-time functionality is often a challenge, but in Phoenix we already have built-in functionality to make our application live. We dive into how LiveView and Phoenix Presence can be used to build a real-time user count.

Read article
8 min read

Hello World! Introduction to my website and blog

Elixir Hello World LiveView Phoenix

This is about why Elixir and Phoenix were chosen over a static site generator to build this website, along with explanations and code examples of how some interesting features work in detail.

Read article