HackerTube.dev

GoRuCo 2012 Hexagonal Rails by Matt Wynne

Confreaks · 16.5K views · 2012-07-01 · 29:23

Open on YouTube ↗

If playback is restricted in your region, try opening the original video. Use Mark watched to add it to your marked videos.

Overview

Matt Wynne's GoRuCo 2012 talk on why Rails apps get hard to change as they grow, and how a ports-and-adapters hexagonal architecture separates application logic from the framework.

On Hacker News

HN cites it as a resource for decoupling Rails code and for faster tests.

Recommended by 1 HN people across 1 months · HN mentions 2012–2014

Topics

Search by tags

What people said

jameskilton · 2012-08 · Recommendation

Was going to say the same thing. Models should not know or care about background queues or mailings, and callback use has always caused problems for me later on. Nothing against the OP, it does explain a common edge case that many people will run into and for that it's a good article, but I wish more people would see the violations of SRP going on here and try to lead people away from this trap. I'd recommend watching [VIDEO] (Hexagonal Rails GoRuCo talk) for one way to re-architect to get away from these inter dependencies.

Read the original HN comment ↗
douglasfshearer · 2014-12 · Reference

Rails used as intended can be a real pain to upgrade, I agree. Recently I have been developing applications in the "thin-model, thin-controller, with a service layer and external API wrappers" style, as espoused by Gary Bernhardt [1] and others [2] [3] [4] [5]. I upgraded to the latest Rails this morning on one app, and apart from swapping the Money gem to use the git repository, until they have a new version out with compatible dependency, it went smoothly. All the specs and acceptance tests passing with no alteration required. [1] [LINK] [2] [LINK] [3] [LINK] [4] [LINK] [5] [VIDEO]

Read the original HN comment ↗
kentwistle · 2014-04 · Reference

Am I only the only one that doesn't find 'All tests in 4 minutes, all model tests in 80 seconds' very impressive? It sounds like a really long time to me. You know what could increase the speed dramatically.... decoupling. I also think decoupling phrased in the context of the Rails 2 to Rails 3 upgrade, where pretty much everything changed, makes perfect sense. Imagine just having a few wrapper classes that spoke to Rails and only having to adapt them. Sounds good to me! Bernhardt: Boundaries [LINK] Weirich: Decoupling from Rails [LINK] Wynne: Hexagonal Rails [VIDEO]

Read the original HN comment ↗

Sources

Video by Confreaks, played through YouTube.

Data and selection notes

HN summaries and labels may contain AI errors. HN dates refer to discussions, not video publication.

HN Library: HackerTube export (2026-10-31) and open-index/hacker-news. Upstream summaries and classifications may contain AI errors.

Views, duration and playback status refresh separately from the published catalog. When an update fails, existing data remains visible.

Selection checks
  • SaaS & AI candidates: Topic keywords do not match
  • Editor-approved picks: Editorial review is required

Rule matches identify candidates. They do not guarantee video quality or financial results.

About the library and its sources