General statistics
List of Youtube channels
Youtube commenter search
Distinguished comments
About
Continuous Delivery
comments
Comments by "" (@ContinuousDelivery) on "Are You Chicago Or London When It Comes To TDD?" video.
That was about something else, not London vs Chicago. The βfightβ was DHH say TDD was bad for design. I think Martin Fowler & Kent Beck were too polite ππ
4
This is my full TDD course: https://courses.cd.training/courses/tdd-bdd-design-through-testing The free intro is here: https://courses.cd.training/courses/tdd-tutorial
3
Yes, itβs good isnβt it ππ
3
Thanks π
3
Then you are mocking at the wrong level of abstraction. You still need to test the real thing somehow too. Mocks are how you test the core bits of your code that represent what it really does, the integration points where I/O happens needs different kinds of tests, and better design to isolate one from the other.
2
I am afraid it is not that simple, the "the best programmers" in other places do use the London style. You criticism is true if your design is overly coupled, but there are ways to design where the London school works fine, and gives some advantages over Chicago. As I said, I am not wholly in favour of, or against, either one. I think that they are both tools in the tool box.
2
Unit tests. In TDD unit tests support the design, which is what the tests I describe here are all about. Acceptance tests are defined as determining the releasability of the change, this is a different problem, and so a different kind of test.
2
I think this is really about the quality of the abstraction in design, these sorts of interactions, that you mock, should, intentionally, be more stable points in the design that hide-information, so they are a bit less fragile. You may still need to change them sometimes, but it should be easy. The problem usually comes when you don't practice ideas like "Tell, Don't Ask" in the design, and you end up with a nasty chain of things asking for data. zip = customer.getAddress().getZip() --- Yuk! I talk about some of these ideas here: https://youtu.be/8GONv6jJsG0
2
I don't see integration tests as being a fundamental part of a good test strategy. They have a place, but are tactical. My preferred test strategy is TDD for fine-grained, detailed, verification of the code, and Acceptance Testing (BDD style), to verify that the system is releasable using production-like simulations. The acceptance testing is like a super-integration test as well as a lot more, so eliminates the need for integration testing. I also think that choosing to mock the edges of your system, applies a pressure on you to better abstract at those edges, and so you end up with a better design.
2
Thank you. Sabine is one of my favourite YouTubers!
1
I am pleased that you like them, thanks.
1
Thanks, and we did a deal with the place where I buy my shirts, so you can get a discount if you'd like some of them: https://www.qwertee.com/shop?sort=price&klear_link_id=1b56ff4d9b1e07eac057bed68d9e9851&utm_source=klear&utm_medium=davefarley77&utm_campaign=Spooktacular%20Halloween%20Sale%202022&ref=1b56ff4d9b1e07eac057bed68d9e9851
1