Live data from Hacker News

Architecture Patterns with Python

cosmicpython.com

1–10 of 143 posts

Re: Architecture Patterns with Python

#2
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!

Re: Architecture Patterns with Python

#7
post #2

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 sp…

I haven't seen this book before, but I noticed that one of the authors, Harry J. W Percival, is the author of the TDD "goat" book.

https://www.obeythetestinggoat.com/pages/book.html

That book is in a similar place in my heart, I barely used Python in my professional life, yet it's a book I often come back to even if I'm using a different language. It's also great that book is available both online and in paper form.

I'll definitely give this book a chance!

Re: Architecture Patterns with Python

#9
post #2

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 sp…

I haven't seen this book before, but I noticed that one of the authors, Harry J. W Percival, is the author of the TDD "goat" book. https://www.obeythetestinggoat.com/pages/book.html That book is in a similar place in my heart, I barely used Python in my professional life, yet it's a book I often come back to even if I'm using a different language. It's also great that book is available both online and in paper form.…

I saw that a new, updated version of that book will be released this year.

Re: Architecture Patterns with Python

#10
This was a great read and summary! About three years ago, I worked in a C#/.NET DDD environment, and now revisiting these concepts in Python really distills the essential parts. As I said, great read — highly recommend it if you're also into this kind of stuff.
Post reply on HN