Download presentation
Presentation is loading. Please wait.
Published byEustacia Ross Modified over 9 years ago
1
TDD & PP Workshop for Sterias FHS og T&D team, 9. desember, 2010 Johannes Brodwall Anders Karlsen
2
TODO: MAKE NICE Intro 10m Prep: Fizzbuzz (UncleBobs regler) – 25m Dojo: Yahtzee 45m Prep: Tennis (Johannes regler: Enklest test, enklest kode,kode guider test) – 35m Lunsj – 60m 20m lean vs agile Dojo: Poker 90m 13:50 Legacy demonstrasjon Diskusjon
3
Lean vs Agile
4
LeanAgile By invitationIncluding DesigningDoing Feed forwardFeedback High throughputLow latency PlannedReactive/adaptive Create models of the worldShare models of the world ProcessPeople Manage complex problems StandardizeInspect and adapt
5
Test-driven development
6
Uncle Bob’s Rules No code without test Only enough test for red Only enough code for green
7
Demo: FizzBuzz
8
What to watch for
9
How we interact How we use Eclipse The design of the code The design of the tests Refactorings
10
What did you notice?
11
Code dojo: Yahtzee
14
Test-driven development (recap)
15
Uncle Bob’s Rules No code without test Only enough test for red Only enough code for green
16
Test-driven design
17
Johannes’s Rules Test for simplest structure Implement simplest structure Use limitations in code to guide next test Refactor all the time
18
Johannes’s Rules Test for simplest structure Implement simplest structure Use limitations in code to guide next test
19
Demo: Tennis
21
Code dojo: Poker hands
23
http://codingdojo.org/cgi-bin/wiki.pl?KataPokerHands High card Pair Two pair Three of a kind Straight Flush Full house Four of a kind Straight flush
25
Real world testing
26
Rules Arrange Act Assert
27
Demo: Legacy code
28
Recap Uncle Bob’s rules Johannes’s rules Arrange-act-assert
29
Working together Scrum board with magnets Rotate pairs daily Pair programming star
30
Open discussion
31
Takk for oppmerksomheten Johannes.Brodwall@steria.no http://johannesbrodwall.com http://sterkblanding.no http://jhannes.blip.tv twitter.com/jhannes Anders.Karlsen@steria.no twitter.com/anderskar
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.