Slide 1

Slide 1 text

Test-Driven Design for dummies

Slide 2

Slide 2 text

Agenda • What is TDD? • Why TDD? • For the first time • More beginner style (tomorrow) • What about legacy? (on Friday)

Slide 3

Slide 3 text

Testing in General http://blogs.msdn.com/cfs-filesystemfile.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-32-02-metablogapi/8054.image_5F00_thumb_5F00_35C6E986.png

Slide 4

Slide 4 text

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?

Slide 5

Slide 5 text

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

Slide 6

Slide 6 text

Red-Green-Refactor RED GREEN REFACTOR

Slide 7

Slide 7 text

It’s THE Design http://blog.myedonline.com/wp-content/uploads/2012/06/trying_to_find_X.jpg simplicity really matters

Slide 8

Slide 8 text

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

Slide 9

Slide 9 text

Unless http://farm7.static.flickr.com/6193/6152609977_32902aa668.jpg You wanna be like him?

Slide 10

Slide 10 text

Unless or him?

Slide 11

Slide 11 text

Time We don’t have time to NOT write TESTS http://www.typemock.com/blog/2009/03/05/the-cost-of-test-driven-development/

Slide 12

Slide 12 text

Cost And these guys are from Micro$oft ;) http://www.typemock.com/blog/2009/03/05/the-cost-of-test-driven-development/

Slide 13

Slide 13 text

What About Feedback http://www.care-marketing-advice.com/wp-content/uploads/2012/07/fast-response-feedback-questionnaire.jpg

Slide 14

Slide 14 text

Is It Difficult • Not really? • It’s a discipline • And still difficult? Then do it more often..

Slide 15

Slide 15 text

Let’s Practice