Story Details

  • We fell out of love with Next.js and back in love with Ruby on Rails

    Posted: 2025-05-03 18:26:06

    Hardcover initially chose Next.js for its perceived performance benefits and modern tooling. However, they found the complexity of managing client-side state, server components, and various JavaScript tooling cumbersome and ultimately slowed down development. This led them back to Ruby on Rails, leveraging Inertia.js to bridge the gap and provide a more streamlined, productive development experience. While still appreciating Next.js's strengths, they concluded Rails offered a better balance of performance and developer velocity for their specific needs, particularly given their existing Ruby expertise.

    Summary of Comments ( 210 )
    https://news.ycombinator.com/item?id=43881035

    Hacker News commenters largely debated the merits of Next.js vs. Rails, with many arguing that the article presented a skewed comparison. Several pointed out that the performance issues described likely stemmed from suboptimal Next.js implementations, particularly regarding server-side rendering and caching, rather than inherent framework limitations. Others echoed the article's sentiment about the simplicity and developer experience of Rails, while acknowledging Next.js's strengths for complex frontends. A few commenters suggested alternative approaches like using Rails as an API backend for a separate frontend framework, or using Hotwire with Rails for a more streamlined approach. The overall consensus leaned towards choosing the right tool for the job, recognizing that both frameworks have their strengths and weaknesses depending on the specific project requirements.