Skip to content
0:00 / 0:00

#cleanarchitecture#onionarchitecture#brandonrhodes

The Clean Architecture in Python

Next Day Video

68K subscribers • 16 videos on Hallway

YouTube
  • Recommended by 5 people: 5 on Hacker News.
  • A classic. People kept recommending it from 2017 to 2021.
  • Presented by Brandon Rhodes

Intermediate. Assumes working knowledge.

114K views12 years ago5 recommendations

Software designProgramming languagesPythonSoftware architectureDesign patterns

Brandon Rhodes demonstrates how to apply the Clean Architecture pattern in Python to build highly maintainable and easily testable applications.

Brandon Rhodes pyvideo.org/video/2840/the-clean-architecture-in-python pyohio.org/schedule/presentation/58/ Even design-conscious programmers find large applications difficult to maintain. Come learn about how the recently propounded “Clean Architecture” applies in Python, and how this high-level design pattern fits particularly well with the features of the Python language and answers questions that experienced programmers have been asking. (An update of my un-recorded talk from PyCon Ireland 2013!)

Why it's here

5 people recommend this

What people say. Recommended as an excellent explanation of Clean Architecture and how separating I/O from business logic improves testing and design.

travisjungrothon Hacker News • Recommends

On “My Python testing style guide (2017)”

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. link to this video

ceronmanon Hacker News • Recommends

On “The Clean Architecture (2012)”

For the Python programmers, there is also a better explanation of the same concept by Brandon Rhodes: The Clean Architecture in Python. link to this video

chuboton Hacker News • Recommends

On “A theory of modern Golang”

I was going to write that I don't have a good pointer, but actually I think the idea is basically the "onion architecture" or "clean architecture". I don't recall if I watched all of this talk, but in general I like Brandon Rhodes' PyCon talks : link to this video link I don't come from a Java background, but I think that many of these ideas originated in the Java community. They came to Python later (if at all), and it's a little funny to see Go struggling with the same thing. I think I came at it from more of a functional programming perspective, and the style gradually converged with what people were thinking about OOP. I'm not actually of all the details about "clean architecture" and "onion arch…

ceronmanon Hacker News • Recommends

On “Functional core, imperative shell (2012)”

This is the same principle of the Clean Architecture. I like how Brandon Rhodes explain how to apply it in Python: link to this video

samrohnon Hacker News • Recommends

On “Ask HN: What are some of the best Python related talks that you have watched”

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

hprotagoniston Hacker News • Recommends

On “It's probably time to stop recommending Clean Code (2020)”

"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: link to 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.

aszenon Hacker News • Mentions

On “Prefer Fakes over Mocks”

…dence in such tests. Many times the ramaining io code is just calling other functions and doesn't need to be tested. Several other ideas that relate to this are hexagonal architecture, Domain Driver Design, clean architecture and functional core with an imperative shell. Some resources to further explore these ideas: Clean Architecture in Python - link to this video Why integrated tests are a scam - link Boundaries - link…