Skip to content
HomeVideos
AllLongsCategoriesPlaylists
BooksBlogsPodcasts
HistoryListsWatch laterLiked videosFollowing

The videos, books, blogs and podcasts Hacker News keeps recommending, all in one place.

VideosBooksBlogsPodcastsAboutPrivacySettings

Data from Hacker News, HackerTube, HackerBooks, HackerBlogs and Open Library. Credits · Not affiliated with Y Combinator.

HomeVideosBooksBlogsPodcasts
Ctrl K

    The Clean Architecture in Python

    Next Day Video

    5 HN recommenders · recommended in 7 months, 2017–2021

    YouTube

    49:54 · 114K views · Aug 9, 2014

    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.

    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.

    Software Engineering & LanguagesSoftware architecture & designPython, Ruby & scripting languagesTesting, debugging & developer tools
    1. 42:44
      Armin Ronacher - A Python for Future GenerationsEuroPython Conference6.2K views • 9 years ago
    2. 4:57
      Rich Hickey rants about HttpServletRequest in 1080p: Death By Specificity from Clojure Made SimpleFred Overflow43K views • 6 years ago
    3. 1:02:50
      The Language of the System - Rich HickeyClojureTV174K views • 13 years ago
    4. 45:55
      Ruby Conf 12 - Boundaries by Gary BernhardtConfreaks58K views • 13 years ago
    5. 27:29
      Stop Writing ClassesNext Day Video962K views • 14 years ago
    6. 1:06:39
      Ruby Midwest 2011 - Keynote: Architecture the Lost Years by Robert MartinConfreaks172K views • 14 years ago
    7. 1:00:10
      Functional architecture - The pits of success - Mark SeemannNDC Conferences152K views • 10 years ago
    8. 1:14:52
      Effective Programs - 10 Years of Clojure - Rich HickeyClojureTV176K views • 9 years ago
    9. 1:15:58
      October CincyRb - Jim Weirich on Decoupling from RailsLaunch Scout48K views • 13 years ago
    10. 1:02:26
      Solving Problems the Clojure Way - Rafal DittwaldClojure/north87K views • 7 years ago
    11. 49:55
      How Python was Shaped by leaky Internals, Armin Ronacher, Flask frameworkВидео с мероприятий {speach!20K views • 10 years ago
    12. 31:38
      Cory Benfield - Building Protocol Libraries The Right Way - PyCon 2016PyCon 201615K views • 10 years ago
    13. 1:00:19
      How To Design A Good API and Why it MattersGoogle TechTalks453K views • 19 years ago
    14. 38:43
      Scalability at YouTubeNext Day Video51K views • 14 years ago
    15. 1:13:53
      Raymond Hettinger, Keynote on Concurrency, PyBay 2017SF Python161K views • 9 years ago
    16. 38:47
      RailsConf 2014 - All the Little Things by Sandi MetzConfreaks190K views • 12 years ago
    17. 1:01:39
      "Simple Made Easy" - Rich Hickey (2011)ClojureTV434K views • 5 years ago
    18. 1:29:27
      The Forgotten Art of Structured Programming - Kevlin Henney [C++ on Sea 2019]cpponsea245K views • 7 years ago
    19. 1:16:14
      Spec-ulation Keynote - Rich HickeyClojureTV136K views • 9 years ago
    20. 41:19
      Stuart Sierra - Components Just Enough StructureClojureTV36K views • 12 years ago

    7 comments from Hacker News

    1. @travisjungrothMar 2021· in “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. this video

      Strongly recommendsView on HN
    2. @chubotJun 2017· in “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 : 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 architecture", but they are definitely related to dependency injection. Basically all your effects and state can be instantiated on the "outside" in main() and passed INWARD. But I don't believe it necessarily has to be pure. I encapsulate all my state, but I don't encapsulate all my side effects, like printing to the screen. Some people appeared to like this comment, which is somewhat related: [LINK] I'm not sure how much this will help, but here is 12K+ lines of code I wrote with zero globals: [LINK] The main directories to look at are core/ and osh/. The main program imports a lot of stuff and wires it together: [LINK] (There is a bunch of surface messiness, but the architecture is sound.) I've also written even larger programs with zero globals. Also, I believe that web frameworks are some

      RecommendsView on HN
    3. @hprotagonistMay 2021· in “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: 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.

      RecommendsView on HN
    4. @samrohnMay 2019· in “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: this video Pandas from ground up: [LINK] How to write actually object-oriented python: [LINK] It's Time to Learn Regular Expressions: [LINK]

      RecommendsView on HN
    5. @ceronmanApr 2017· in “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. this video

      RecommendsView on HN