You followed all the rules: TDD, SOLID, CUPID and of course DDD. But when refactoring time comes, you still have to touch all those pesky tests. You thought refactoring meant not changing the tests!?

In this session we’ll see how design choices can lead to test pain – and how you can avoid that pain by pushing side effects to the edge. We’ll:
– Identify context and side-effects
– Split up different kinds of logic
– Black-box test *all the things*
– … identify when and when not to!

Comments

Comments are closed.

Tim Hofman at 14:31 on 15 Mar 2024

Nice talk about refactoring code to pure functions to reduce internal context and side effects. Really glad you mentioned the Integration Operation Segregation Principle. I think it's the most in-depth talk of DPC 2024.

Mike Lehan at 13:41 on 18 Mar 2024

Enjoyed the talk - clear examples, and good demonstrations of how pure functions help our test burden.

The audience took some time to start joining in with the questions that came up but it did feel good to be involved.

Rodi de Boer at 10:59 on 21 Mar 2024

Pim always delivers! ;)