14
TDD like Beethoven José E. Rodríguez Huerta (@jrhuerta)

Tdd like beethoven

Embed Size (px)

DESCRIPTION

 

Citation preview

Page 1: Tdd like beethoven

TDD like Beethoven

José E. Rodríguez Huerta (@jrhuerta)

Page 2: Tdd like beethoven

Beethoven

@jrhuerta

Page 3: Tdd like beethoven

@jrhuerta

Page 4: Tdd like beethoven

The Constraints

Get a small problem you want to solve in code

You can use all the documentation you need

You can use a text editor with syntax highlighting, but…

@jrhuerta

Page 5: Tdd like beethoven

The Constraints

Do not compile or run the solution! 

Do not use auto-complete!

@jrhuerta

Page 6: Tdd like beethoven

“composing”

@jrhuerta

Page 7: Tdd like beethoven

“composing”

Come up with a test and write it down in the text editor.

Reason about why it must fail right now.

@jrhuerta

Page 8: Tdd like beethoven

“composing”

Write down the code that will make the test green. Explain to yourself why it

will make the test pass.

Double check for syntax errors, exceptions...

@jrhuerta

Page 9: Tdd like beethoven

“composing”

Refactor the code. Explain to yourself/PARTNER why the

refactoring is better.

Explain why all the tests still pass.

Double check for syntax errors, exceptions, ...

@jrhuerta

Page 10: Tdd like beethoven

“composing”

Repeat until finished

@jrhuerta

Page 11: Tdd like beethoven

GRAND OPENING

@jrhuerta

Page 12: Tdd like beethoven

GRAND OPENING

Compile and run

Change the code so it runs and compiles

Write down all the changes you had to make

@jrhuerta

Page 13: Tdd like beethoven

Powerful Questions

How did it feel?

Why was it different?

How is it going to help you?

@jrhuerta

Page 14: Tdd like beethoven

THANK YOU for PARTICIPATING!

and to David Tanzer

for the original idea!

@jrhuerta