Jdojo@Gbg Introduction

21
JDojo jsolutions.se

description

Slides used at the first startup meeting of a series of coding dojo sessions, focusing on TDD mostly (Meetup group JDojo@Gbg)

Transcript of Jdojo@Gbg Introduction

  • 1. JDojojsolutions.se

2. Bugs 3. The Problem Bugs are costly Fixing bugs reportedfrom testers costseven more Fixing bugs reportedfrom en users costseven more than "evenmore" 4. What solution? 5. IBM & Microsoft Report 40 - 90% fewer bugs discovered during testing 15 - 35% more time spent on development 6. TDD vs Traditional TestingDoesnt remove theneed for regular,traditional testing: Exploratory testing QA testing User Interface testing Performance testing ... 7. Test-Driven Developmemt Kent Beck on TDD: Im not a greatprogrammer, Im just a goodprogrammer with great habits. 8. Red, Green, Refactor Write a test, get it tocompile, get a red bar Quickly make the testpass, get a green bar Refactor, "cleancode", run testsfrequently - the "bar"should stay green 9. Another Take write test first write smallest possibleimplementation clean up no "dead" code - its allcovered nice API - designedoutside in 10. Baby Steps as small as possible as large as iscomfortable experience of TDD technology knowledge boldness understanding of theproblem domain 11. 3A Arrange Act Assert 12. Benefits More confident More productive More reliable More agile 13. Drawbacks More code tomaintain Takes longer Easy to learn, butharder to master 14. JDojo@GbgA safe environment tolearn coding skills suchasTest-driven Developmentand writingclean code 15. Dave Thomas - Kata"Pragmatic Dave":A kata is an exercise inkarate where you repeata form many, manytimes, making littleimprovements in each. 16. The Coders DojoConcept presented at XP 2005 byLaurent Bossavi and Emmanuel Gaillot 17. Coding Dojo A moderatorpresents a kata Solve the kata, and ... Learn from others,teach what you know Short retrospective 18. Kata Small programmingexercise - 1-2 hours Start from scratch Strictly test-driven Next time, start overand try new approach Practice until youmaster the kata 19. Dojo Rules Dont criticize until wehave a green bar Strict usage of TDD Everyones obligationto point out any non-TDD behaviour 20. JDojo@GbgFredrik Wendt jsolutions.se 21. All vector art comes from Gnome base icon set, which is licensed under LGPL.download.gnome.org/sources/gnome-icon-theme Man on vacuum cleaner fromtpp-bloggen. Firebug logotype from getfirebug.com Baby Steps photo from seandreilinger at flickr.com Picture of Dave Thomas from x180 at flickr.com Picture of Kent Beck from Three Rivers Institute web site