Loading…
This event has ended. Visit the official site or create your own event on Sched.
Wednesday, May 24 • 15:30 - 17:00
Fake It Outside-In TDD

Sign up or log in to save this to your schedule, view media, leave feedback and see who's attending!

Feedback form is now closed.

In the context of bigger systems classic emergent design can result in losing a lot of time by letting similar responsibilities emerge again and again. In contrast the London School of TDD works Outside-In using mocks. It shines whenever the objects' responsibilities are quite clear upfront. An alternative I’ve developed over the last year is "Fake It Outside-In TDD". Instead of mocks fake data originating from the test assertion become your primary design driver. On an incremental destructuring journey down the call stack the data morphs more and more into structure. Design therefore develops "Outside-In" but on a "green bar" in the refactoring phase as opposed to London Style on a "red bar" when writing your tests. The remaining real "logic" is tackled with regular unit-test level TDD. The approach hits the sweet spot

  • when there is little complexity in the interactions,
  • when the structure is complex or
  • when design skills aren’t very sophisticated yet or when teachability of TDD is important.

The session starts by explaining the different TDD approaches including the "Fake It Outside-In" variant. In a mob-programming session we then try out the new approach, followed by a discussion of our observations and opinions regarding the approach. The session ends with a comparison of the respective TDD approaches’ strengths and weaknesses.


Speakers
avatar for David Völkel

David Völkel

Senior IT-Consultant, codecentric AG
I am a TDD maniac and co-organize the Softwerkskammer Software Craftsmanship Meetup Munich.


Wednesday May 24, 2017 15:30 - 17:00 CEST
Ballroom C 1st Floor