Writing on software engineering and other things.

All of my long-form thoughts and tutorials on programming (and other things), collected in chronological order.

Mastering Slugs in Ruby on Rails with Customizable Concerns

This article delves into the creation of dynamic, SEO-friendly URLs in Ruby on Rails applications through the development of a `Slugable` Rails model concern. Covering the journey from basic slug generation to advanced customization options including uniqueness and model-specific nuances, it offers a comprehensive guide for developers looking to enhance their application’s URL structure. The piece further explores the integration of Rails’ `to_param` method for seamless, human-readable URLs, showcasing the power and flexibility of Rails concerns in web development.

Anonymizing Records in Ruby on Rails

This article introduces a streamlined approach to integrating customizable anonymization functionalities into Ruby on Rails applications. Focusing on Rails concerns, it guides developers through the use of class attributes, methods, and Ruby blocks to achieve efficient and flexible data anonymization with the creation of an `Anonymizable` Rails model concern.

Implementing ULIDs in Ruby on Rails with PostgreSQL

In the realm of web development, ensuring data integrity and performance at scale is paramount. This tutorial delves into the integration of Universally Unique Lexicographically Sortable Identifiers (ULIDs) with Ruby on Rails applications using PostgreSQL. By adopting ULIDs, developers can leverage the benefits of unique, time-sortable identifiers, enhancing database efficiency and query performance. Perfect for distributed systems and applications requiring robust sorting and indexing capabilities, this guide provides a step-by-step approach to incorporating ULIDs, setting a new standard for primary key generation in your Rails projects.