si le tdd est mort alors pratiquons une autopsie mix-it 2015
TRANSCRIPT
SI LE TDD EST MORT …
ALORS PRATIQUONSUNE AUTOPSIE
Bruno BOUCARD - t @brunoboucard Thomas PIERRAIN - t @tpierrain
learn.tocraft.fr
Aujourd’hui, très peu de gens pratiquent le TDD !
Bruno BOUCARD - t @brunoboucard Thomas PIERRAIN - t @tpierrain
GREEN
All tests are passed
Test runsand fails
RED
REFACTOR
Next test
UN CONSTAT
DOMMAGE …
RASSURANT EFFICACE ENCOURAGEANT
… car quand on y arrive, le TDD c’est
Bruno BOUCARD - t @brunoboucard Thomas PIERRAIN - t @tpierrain
PAS DE PRÉCIPITATION POUR CODER !
CREUSER SON SUJET
FORMULER A HAUTE VOIX
UTILISER LE “SHOULD”
Bruno BOUCARD - t @brunoboucard Thomas PIERRAIN - t @tpierrain
PRÉPARER SON CERVEAU EST ESSENTIEL
POURQUOI « SHOULD » ?
Bruno BOUCARD - t @brunoboucard Thomas PIERRAIN - t @tpierrain
“SHOULD” COMME UN MESSAGE À SOI-MÊME
AFIN DE CIBLER LE COMPORTEMENT À TESTER
INTERRESSANT, MAIS…
“En tant que développeur …”
Bruno BOUCARD - t @brunoboucard Thomas PIERRAIN - t @tpierrain
ALORS TRAVAILLONS NOS AUTOMATISMES !
AS A JIT COMPILER FOR OUR BRAIN!
Bruno BOUCARD - t @brunoboucard Thomas PIERRAIN - t @tpierrain
AVEC COMME OUTIL
Bruno BOUCARD - t @brunoboucard Thomas PIERRAIN - t @tpierrain
CODE KATA CODING DOJO
MAIS LE TDD EST UN ART DIFFICILE …
Bruno BOUCARD - t @brunoboucard Thomas PIERRAIN - t @tpierrain
QUI COMPREND PLUSIEURS SOUS-DICIPLINES
Designing Clean Code
Designing Test Cases
Driving Development with Tests
Refactoring Safely
CONSTAT #2
“Si je ne comprends toujours pas ce qu’on me demande de
faire …”
Bruno BOUCARD - t @brunoboucard Thomas PIERRAIN - t @tpierrain
CHALLENGEONS LES ACTEURS DU DOMAINE
Bruno BOUCARD - t @brunoboucard Thomas PIERRAIN - t @tpierrain
À travers des conversations avec …
En mode 3 amigos
ses collègues
ses utilisateurs
équipes connexes
QUELQUES OUTILS POUR ÇALES 5 « POURQUOI ?» IMPACT MAPPING
Bruno BOUCARD - t @brunoboucard Thomas PIERRAIN - t @tpierrain
OK MAIS…
“Comment être efficace dans nos efforts et notre investissement ?”
Bruno BOUCARD - t @brunoboucard Thomas PIERRAIN - t @tpierrain
CONSTAT #3
“Au bout d’un moment, le TDD et nos tests nous ont ralentis … … sont devenus un problème
pour toute l’équipe.”
Bruno BOUCARD - t @brunoboucard Thomas PIERRAIN - t @tpierrain
NE PAS NÉGLIGER NOTRE MANIÈRE DE PENSER
Bruno BOUCARD - t @brunoboucard Thomas PIERRAIN - t @tpierrain
SYSTÈME 1 SYSTÈME 2
17 x 24Une hirondelle ne …
EN CONCLUSION, C’EST VRAI QUE LE TDD …
parce que très souvent on en fait malBruno BOUCARD - t @brunoboucard Thomas PIERRAIN - t @tpierrain
On n’en fait pas …
Bruno BOUCARD - t @brunoboucard Thomas PIERRAIN - t @tpierrain
GREEN
RED
REFACTOR
RED, GREEN, REFACTOR …
Ce n’est que l’ossature, ce n’est pas l’âme du TDD …
Ce n’est pas suffisant !
L’ESSENTIEL N’EST PAS VISIBLE …
MAIS NE VOUS LAISSEZ PAS IMPRESSIONNER !
Bruno BOUCARD - t @brunoboucard Thomas PIERRAIN - t @tpierrain
CAR SI ON SUIT QUELQUES PRATIQUES …
1DOUBLE BOUCLE
-
OUTSIDE-IN
COMMUNICATION ORALE
-
SHOULD2 3
METHODES-
BEHAVIOURS
0 CREUSER SON SUJET
Bruno BOUCARD - t @brunoboucard Thomas PIERRAIN - t @tpierrain
4 S’ENTRAÎNER RÉGULIÈREMENT