HackerTube.dev

The Clean Architecture in Python

Next Day Video · 114.5K views · 2014-08-09 · 49:54

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

Brandon Rhodes' PyOhio 2014 talk on applying the Clean Architecture in Python. He shows how this high-level design pattern fits Python's features and addresses maintainability problems in large applications.

On Hacker News

HN points to it as a practical way to separate business logic from I/O, which reduces mocking and underlies the functional core, imperative shell idea.

Recommended by 5 HN people across 6 months · HN mentions 2017–2021

Topics

Search by tags

What people said

travisjungroth · 2021-03 · Strong recommendation

I'd really recommend this video. I had seen it years ago and just came back to it. It's about changing your architecture, one of the effects of that being changing how you need/use mock. [VIDEO]

Read the original HN comment ↗
hprotagonist · 2021-05 · Recommendation

"Promote I/O to management (where it can't do any damage)" is the actionably good thing i've taken from Brandon Rhoades' talk based on this: [VIDEO] Living in a world where people regularly write single functions that: 1. loads data from a hardcoded string path of file location 2. does all the analysis inside the same loop that the file content iteration happens in and 3. plots the results ... that cleavage plane is a meaningfully good one. The rest of the ideas fall into "all things in moderation, including moderation", and can and should be special-cased judiciously as long as you know what you're doing. But oh god please can we stop writing _that_ function already.

Read the original HN comment ↗
samrohn · 2019-05 · Recommendation

These are some of my favorites: Clean Architectures in python: [VIDEO] Pandas from ground up: [LINK] How to write actually object-oriented python: [LINK] It's Time to Learn Regular Expressions: [LINK]

Read the original HN comment ↗

Sources

Video by Next Day Video, 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