Upload
jose-huerta
View
105
Download
0
Tags:
Embed Size (px)
DESCRIPTION
Citation preview
TDD like Beethoven
José E. Rodríguez Huerta (@jrhuerta)
Beethoven
@jrhuerta
@jrhuerta
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
The Constraints
Do not compile or run the solution!
Do not use auto-complete!
@jrhuerta
“composing”
@jrhuerta
“composing”
Come up with a test and write it down in the text editor.
Reason about why it must fail right now.
@jrhuerta
“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
“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
“composing”
Repeat until finished
@jrhuerta
GRAND OPENING
@jrhuerta
GRAND OPENING
Compile and run
Change the code so it runs and compiles
Write down all the changes you had to make
@jrhuerta
Powerful Questions
How did it feel?
Why was it different?
How is it going to help you?
@jrhuerta
THANK YOU for PARTICIPATING!
and to David Tanzer
for the original idea!
@jrhuerta