15. C’est pas facile...
Faut voir les bénéfices sur le
long terme.
Règles pour tester le Legacy Code 15
La qualité et le coverage
grandi au fil du temps
Considérer le coût du
changement vs statut quo.
■ Respecter le code fonctionnel
■ Agir en bon ‘Boy Scout’
■ Appliquer le TDD uniquement aux nouvelles fonctionnalités
■ Faire des ‘black box’ tests sur les fonctionnalités existantes
■ Toucher au ‘legacy code’ uniquement pour appeler le nouveau
def crazy_insane_method
return clean_new_method if new_condition
# all the old ugly stuff
end
21. Motivation 21
■ La motivation provient du plaisir
■ Rails
■ Convention over Configuration
■ DRY
■ Communauté
■ Projets et librairies open-source
■ Entraide
22. “Motivation is undoubtedly the
single greatest influence on
how well people perform. Most
productivity studies have found
that motivation has a stronger
influence on productivity than
any other factor.” 22
Steve McConnel, Rapid Development