3 ms·
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 p
by seveibar 2y ago
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!
- serial_dev 2y agoI 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 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!
- cinntaile 2y agoI saw that a new, updated version of that book will be released this year.
- BerislavLopac 2y ago> faking (not mocking!!) You might like this: https://martinfowler.com/bliki/TestDouble.html https://martinfowler.com/bliki/TestDouble.html
- incangold 2y agoFakes over mocks every time