Code and the Coding Coders who Code it

Episode 50 - Adam Fortuna


Listen Later

Swimming against the current sometimes leads to unexpected treasures. In this fascinating conversation, Adam Fortuna reveals how migrating Hardcover—a social network for readers with 30,000 users—from Next.js back to Ruby on Rails delivered surprising performance improvements and development simplicity.

The journey begins with Adam explaining how Hardcover originated as a response to Goodreads shutting down their API. As a longtime Rails developer who initially chose Next.js for its server-side rendering capabilities, Adam found himself drawn back to Rails once modern tools made it viable to combine Rails' backend strengths with React's frontend interactivity. The migration wasn't a complete rewrite—they preserved their React components while replacing GraphQL with ActiveRecord—and unexpectedly saw significant improvements in page load speeds and SEO rankings.

At the heart of this technical evolution is Inertia.js, which Adam describes as "the missing piece for Rails for a long time." This elegant solution allows direct connections between Rails controllers and React components without duplicating routes, creating a seamless developer experience. We dive into the challenges they faced, particularly with generating Open Graph images and handling API abuse, and how they solved these problems with pragmatic hybrid approaches.

The conversation takes an exciting turn as Adam discusses their work on book recommendation engines, combining collaborative filtering with content analysis to help readers discover their next favorite book. As someone currently enjoying the Dungeon Crawler Carl series (described as "RPG mixed with Hitchhiker's Guide"), Adam's passion for both books and elegant technical solutions shines throughout.

Listen in as we explore how going against conventional wisdom sometimes leads to better outcomes, and discover why Hardcover is now being open-sourced to invite community collaboration. Whether you're interested in Rails, JavaScript frameworks, or book recommendations, this episode offers valuable insights into making technical decisions based on real-world results rather than following trends.


Links

  • https://hardcover.app/blog/part-1-how-we-fell-out-of-love-with-next-js-and-back-in-love-with-ruby-on-rails-inertia-js
  • https://adamfortuna.com/
  • https://bsky.app/profile/adamfortuna.com

Send us some love.

Honeybadger
Honeybadger is an application health monitoring tool built by developers for developers.

Judoscale
Autoscaling that actually works. Take control of your cloud hosting.

Disclaimer: This post contains affiliate links. If you make a purchase, I may receive a commission at no extra cost to you.

Support the show

...more
View all episodesView all episodes
Download on the App Store

Code and the Coding Coders who Code itBy Drew Bragg

  • 5
  • 5
  • 5
  • 5
  • 5

5

6 ratings


More shows like Code and the Coding Coders who Code it

View all
The Changelog: Software Development, Open Source by Changelog Media

The Changelog: Software Development, Open Source

291 Listeners

The Bike Shed by thoughtbot

The Bike Shed

121 Listeners

Startups For the Rest of Us by Rob Walling

Startups For the Rest of Us

697 Listeners

The Daily by The New York Times

The Daily

112,356 Listeners

Syntax - Tasty Web Development Treats by Wes Bos & Scott Tolinski - Full Stack JavaScript Web Developers

Syntax - Tasty Web Development Treats

987 Listeners

REWORK by 37signals

REWORK

210 Listeners

Remote Ruby by Chris Oliver, Andrew Mason

Remote Ruby

35 Listeners

My First Million by Hubspot Media

My First Million

2,641 Listeners

The Weekly Show with Jon Stewart by Comedy Central

The Weekly Show with Jon Stewart

10,836 Listeners

The Startup Ideas Podcast by Greg Isenberg

The Startup Ideas Podcast

203 Listeners

Breaking Change by Justin Searls

Breaking Change

12 Listeners

Dead Code by Jared Norman

Dead Code

0 Listeners

Rails Business by Brendan Buckingham & Ryan Frisch

Rails Business

0 Listeners

The Ruby AI Podcast by Valentino Stoll, Joe Leo

The Ruby AI Podcast

3 Listeners

On Rails by Rails Foundation, Robby Russell

On Rails

9 Listeners