Si Michel-Ange avait été développeur quels auraient été ses secrets. Quelle était la posture de cet artiste ? Quelle place occupent nos modèles mentaux lorsque nous développons ? La notion de design émergent qui accompagne les approches test-first (TDD, BDD,…) peut rendre plus d’une personne sceptique. En effet, comment concilier nos intuitions et projections mentales avec cette approche a priori minimaliste et contre-intuitive ?
Si le tdd est mort alors pratiquons une autopsie mix-it 2015
1. SI LE TDD EST MORT…
ALORS PRATIQUONS
UNE AUTOPSIE
Bruno BOUCARD - t @brunoboucard Thomas PIERRAIN - t @tpierrain
learn.tocraft.fr
2. Aujourd’hui, très peu de gens pratiquent leTDD !
Bruno BOUCARD - t @brunoboucard Thomas PIERRAIN - t @tpierrain
GREEN
All tests are
passed
Test runs
and fails
RED
REFACTOR
Next test
UN CONSTAT
3. DOMMAGE …
RASSURANT EFFICACE ENCOURAGEANT
… car quand on y arrive, leTDD c’est
Bruno BOUCARD - t @brunoboucard Thomas PIERRAIN - t @tpierrain
4. CONSTAT#1
“Par où on commence ?”
Bruno BOUCARD - t @brunoboucard Thomas PIERRAIN - t @tpierrain
5. PAS DE PRÉCIPITATION POUR CODER !
CREUSER SON
SUJET
FORMULER A
HAUTEVOIX
UTILISER LE
“SHOULD”
Bruno BOUCARD - t @brunoboucard Thomas PIERRAIN - t @tpierrain
PRÉPARER SON CERVEAU ESTESSENTIEL
6. POURQUOI « SHOULD » ?
Bruno BOUCARD - t @brunoboucard Thomas PIERRAIN - t @tpierrain
“SHOULD” COMME UN MESSAGE À SOI-MÊME
AFIN DE CIBLER LE COMPORTEMENTÀTESTER
7. Bruno BOUCARD - t @brunoboucard Thomas PIERRAIN - t @tpierrain
8. Bruno BOUCARD - t @brunoboucard Thomas PIERRAIN - t @tpierrain
12. AVEC COMME OUTIL
Bruno BOUCARD - t @brunoboucard Thomas PIERRAIN - t @tpierrain
CODE KATA CODING DOJO
13. MAIS LETDD ESTUN ARTDIFFICILE …
Bruno BOUCARD - t @brunoboucard Thomas PIERRAIN - t @tpierrain
QUI COMPREND PLUSIEURS SOUS-DICIPLINES
Designing Clean
Code
DesigningTest
Cases
Driving
Development
withTests
Refactoring
Safely
14. CONSTAT#2
“Si je ne comprends toujours
pas ce qu’on me demande de
faire …”
Bruno BOUCARD - t @brunoboucard Thomas PIERRAIN - t @tpierrain
15. CHANGEONS DE POSTURE !
Bruno BOUCARD - t @brunoboucard Thomas PIERRAIN - t @tpierrain
16. 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
17. QUELQUES OUTILS POUR ÇA
LES 5 « POURQUOI ?» IMPACTMAPPING
Bruno BOUCARD - t @brunoboucard Thomas PIERRAIN - t @tpierrain
18. REDONNONS DU SENS AU DEV
Bruno BOUCARD - t @brunoboucard Thomas PIERRAIN - t @tpierrain
19. OK MAIS…
“Comment être efficace dans
nos efforts et notre
investissement ?”
Bruno BOUCARD - t @brunoboucard Thomas PIERRAIN - t @tpierrain
22. CONSTAT#3
“Au bout d’un moment, leTDD et
nos tests nous ont ralentis …
… sont devenus un problème
pour toute l’équipe.”
Bruno BOUCARD - t @brunoboucard Thomas PIERRAIN - t @tpierrain
23. LE SECRET? TESTER …
METHODES
Bruno BOUCARD - t @brunoboucard Thomas PIERRAIN - t @tpierrain
24. Bruno BOUCARD - t @brunoboucard Thomas PIERRAIN - t @tpierrain
BEHAVIOURS!!!
25. Bruno BOUCARD - t @brunoboucard Thomas PIERRAIN - t @tpierrain
BEHAVIOURS!!!
26. CONSTAT#4
“Ça va moins vite !”
Bruno BOUCARD - t @brunoboucard Thomas PIERRAIN - t @tpierrain
28. 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 …
29. EN CONCLUSION, C’EST VRAI QUE LETDD …
parce que très souvent on en fait mal
Bruno BOUCARD - t @brunoboucard Thomas PIERRAIN - t @tpierrain
On n’en fait pas …
30. 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 duTDD …
Ce n’est pas suffisant !
32. CAR SI ON SUITQUELQUES PRATIQUES …
1
DOUBLE
BOUCLE
-
OUTSIDE-IN
COMMUNICATION
ORALE
-
SHOULD
2 3
METHODES
-
BEHAVIOURS
0 CREUSER SON SUJET
Bruno BOUCARD - t @brunoboucard Thomas PIERRAIN - t @tpierrain
4 S’ENTRAÎNER RÉGULIÈREMENT
33. Bruno BOUCARD - t @brunoboucard Thomas PIERRAIN - t @tpierrain
MERCI AVOUS !
34. Bruno BOUCARD - t @brunoboucard Thomas PIERRAIN - t @tpierrain
NOS OUVRAGES