tdd like beethoven
DESCRIPTION
TRANSCRIPT
![Page 1: Tdd like beethoven](https://reader036.vdocuments.net/reader036/viewer/2022062511/54c77d0b4a7959681b8b4577/html5/thumbnails/1.jpg)
TDD like Beethoven
José E. Rodríguez Huerta (@jrhuerta)
![Page 2: Tdd like beethoven](https://reader036.vdocuments.net/reader036/viewer/2022062511/54c77d0b4a7959681b8b4577/html5/thumbnails/2.jpg)
Beethoven
@jrhuerta
![Page 3: Tdd like beethoven](https://reader036.vdocuments.net/reader036/viewer/2022062511/54c77d0b4a7959681b8b4577/html5/thumbnails/3.jpg)
@jrhuerta
![Page 4: Tdd like beethoven](https://reader036.vdocuments.net/reader036/viewer/2022062511/54c77d0b4a7959681b8b4577/html5/thumbnails/4.jpg)
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](https://reader036.vdocuments.net/reader036/viewer/2022062511/54c77d0b4a7959681b8b4577/html5/thumbnails/5.jpg)
The Constraints
Do not compile or run the solution!
Do not use auto-complete!
@jrhuerta
![Page 6: Tdd like beethoven](https://reader036.vdocuments.net/reader036/viewer/2022062511/54c77d0b4a7959681b8b4577/html5/thumbnails/6.jpg)
“composing”
@jrhuerta
![Page 7: Tdd like beethoven](https://reader036.vdocuments.net/reader036/viewer/2022062511/54c77d0b4a7959681b8b4577/html5/thumbnails/7.jpg)
“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](https://reader036.vdocuments.net/reader036/viewer/2022062511/54c77d0b4a7959681b8b4577/html5/thumbnails/8.jpg)
“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](https://reader036.vdocuments.net/reader036/viewer/2022062511/54c77d0b4a7959681b8b4577/html5/thumbnails/9.jpg)
“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](https://reader036.vdocuments.net/reader036/viewer/2022062511/54c77d0b4a7959681b8b4577/html5/thumbnails/10.jpg)
“composing”
Repeat until finished
@jrhuerta
![Page 11: Tdd like beethoven](https://reader036.vdocuments.net/reader036/viewer/2022062511/54c77d0b4a7959681b8b4577/html5/thumbnails/11.jpg)
GRAND OPENING
@jrhuerta
![Page 12: Tdd like beethoven](https://reader036.vdocuments.net/reader036/viewer/2022062511/54c77d0b4a7959681b8b4577/html5/thumbnails/12.jpg)
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](https://reader036.vdocuments.net/reader036/viewer/2022062511/54c77d0b4a7959681b8b4577/html5/thumbnails/13.jpg)
Powerful Questions
How did it feel?
Why was it different?
How is it going to help you?
@jrhuerta
![Page 14: Tdd like beethoven](https://reader036.vdocuments.net/reader036/viewer/2022062511/54c77d0b4a7959681b8b4577/html5/thumbnails/14.jpg)
THANK YOU for PARTICIPATING!
and to David Tanzer
for the original idea!
@jrhuerta