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

Test-Driven Design

isa
January 08, 2013

Test-Driven Design

The main idea behind TDD, why it matters, and how to do it

isa

January 08, 2013
Tweet

More Decks by isa

Other Decks in Programming

Transcript

  1. Agenda • What is TDD? • Why TDD? • For

    the first time • More beginner style (tomorrow) • What about legacy? (on Friday)
  2. What is TDD • Test-Driven what? • They don’t show

    you how to write software in school, ‘coz they don’t know either • How to be professional like this?
  3. What is TDD • It’s actually one simple rule: •

    Specify what the code should do, and make it happen • Repeat it! • It’s about how you want to use your unit • Tests are side-effects
  4. Why TDD • Use your brain before your fingers •

    Because you are not that smart, remember “dummies” ;) • It’s a safety-net • It helps you remember things, and why you do them • Out-of-the-box regression
  5. Is It Difficult • Not really? • It’s a discipline

    • And still difficult? Then do it more often..