Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Make your tests tell the story of your domain

Make your tests tell the story of your domain

Even with perfect naming and perfect code, it is hard to read the story of your domain straight out of it. You can be certain that you’ll have forgotten some of the nuances about the code the next time you see it. Or someone else sees it, because very few of us live our professional coding lives in an area where it’s only me ever handling the code. Someone is going to come back to your code - in five days, three months or five years.

Luckily, if you write your tests the right way, they can tell the story of your domain in a way your production code can't. Let us show you how to create your tests so you can get rid of your stale documentation.

Co-presentation with Anne Landro.

Mads Opheim

January 31, 2019
Tweet

More Decks by Mads Opheim

Other Decks in Technology

Transcript

  1. Make your tests tell the story of your domain Anne

    Landro @AnneLandro Mads Opheim @MadsOpheim DDD Europe
  2. 27

  3. 30

  4. 44

  5. 45