Best of RailsDecember 2025

  1. 1
    Article
    Avatar of hnHacker News·23w

    Avoid UUID Version 4 Primary Keys

    UUID Version 4 primary keys cause significant performance problems in PostgreSQL due to their random nature. Random values trigger excessive index page splits during inserts, create fragmented indexes with poor density (~79% vs ~98% for integers), and require accessing 31,000% more buffer pages for queries. The randomness prevents efficient B-Tree index operations and degrades cache hit ratios. Time-ordered alternatives like UUID Version 7 perform better by including timestamps in the first 48 bits. For most applications, integer or bigint primary keys backed by sequences remain the optimal choice, offering better performance, smaller storage footprint (4-8 bytes vs 16 bytes), and natural ordering. When obfuscation is needed, pseudo-random codes can be generated from integers using XOR operations and base62 encoding.

  2. 2
    Article
    Avatar of dhhDavid Heinemeier Hansson·25w

    Six billion reasons to cheer for Shopify

    Shopify processed $6.2 billion in sales on Black Friday 2025, a 25% increase from the previous year, handling 31 million API requests per minute and 53 million database reads per minute. The company, led by founder and programmer Tobi Lütke, continues to drive significant contributions to the Ruby and Rails ecosystems, employing nearly half of Rails core contributors and funding major improvements like YJIT and Ractors. This success demonstrates the scalability potential of Ruby on Rails at massive scale.

  3. 3
    Article
    Avatar of dhhDavid Heinemeier Hansson·25w

    Fizzy is our fun, modern take on Kanban (and we made it free to sel...

    Fizzy is a new Kanban-based project management tool that offers a modern, colorful interface for tracking work items across columns. Available both as a managed SaaS ($20/month after 1,000 free cards) and for free self-hosting, it uses the O'Saasy License which allows anyone to run their own instance while reserving commercial SaaS rights to the creators. The entire codebase is publicly available on GitHub, built with Rails, and designed to allow data portability between self-hosted and managed instances.

  4. 4
    Article
    Avatar of rubyflowRuby Flow·23w

    Announcing Maquina Components: Opinionated Ul for Rails Applications

    Maquina Components is a new UI component library for Rails applications that provides production-ready ERB partials styled with Tailwind CSS 4.0. The library offers 12 composable components (cards, tables, forms, navigation elements) extracted from real applications, following shadcn/ui theming conventions with built-in light/dark mode support. Unlike alternatives like ViewComponent or Phlex, it uses standard ERB partials and minimal JavaScript, requiring no new paradigms. Components are intentionally small and composable, designed to be building blocks for application-specific components rather than a complete design system. The library is MIT licensed and available via bundler.