(评论)
(comments)

原始链接: https://news.ycombinator.com/item?id=43501989

一个 Hacker News 帖子讨论了《Python 架构模式》(cosmicpython.com) 这本书。一位 TypeScript 开发者评论说这本书的实用模式非常好,特别是用于测试的模拟工作单元/服务模式,以及关于领域特定事件命名的建议。他认为这是一份宝贵的、易于与团队分享的资源。另一位评论者表示同意,称这是一本很棒的 Python 编程书籍,尽管它故意没有使用静态类型。然而,一位用户报告了该书网址的 404 错误,并批评这是一个糟糕的架构选择。总的来说,评论表明这本书因其架构指导而受到好评,尤其是在测试和领域驱动设计方面。

相关文章
  • Python 的架构模式 2025-03-28
  • (评论) 2025-03-26
  • (评论) 2024-01-28
  • 足够的软件架构 (2010) 2024-06-17
  • (评论) 2024-06-17

  • 原文
    Hacker News new | past | comments | ask | show | jobs | submit login
    Architecture Patterns with Python (cosmicpython.com)
    28 points by asicsp 1 hour ago | hide | past | favorite | 3 comments










    I’m a Typescript dev but this book is one of my favorite architecture books, I reference it all the time. My favorite pattern is the fake unit of work/service patterns for testing, I use this religiously in all my projects for faking (not mocking!!) third party services. It also helped me with dilemmas around naming, eg it recommends naming events in a very domain specific way rather than infrastructure or pattern specific way (eg CART_ITEM_BECAME_UNAVAILABLE is better than USER_NOTIFICATION). Some of these things are obvious but tedious to explain to teammates, so the fact that cosmic python is fully online makes it really easy to link to. Overall, a fantastic and formative resource for me!


    Truly one of the great python programming books. The one thing that I found missing was the lack of static typing in the code, but that was a deliberate decision by the authors.


    Unfortunately https://www.cosmicpython.com/book/ does give a 404 - this is a very bad architectural choice for web applications. I hope their other tips are better.






    Join us for AI Startup School this June 16-17 in San Francisco!


    Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact



    Search:
    联系我们 contact @ memedata.com