Top Banner
TDD 4 Everyone The Agile tempo Lior Israel http://blogs.microsoft.co.il/lior_israel/
36
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Tdd 4 everyone full version

TDD 4 EveryoneThe Agile tempo

Lior Israel

http://blogs.microsoft.co.il/lior_israel/

Page 2: Tdd 4 everyone full version

Who are you ?

Page 3: Tdd 4 everyone full version

Who are you really?

Developer

Traveler

Product experts

ManagerScrum master

QA

Page 4: Tdd 4 everyone full version

Who am I ?

Page 5: Tdd 4 everyone full version

Who am I ?

Developer

???

Chief Architect

“Chef”Geek of

Code

Hardware developer

Page 6: Tdd 4 everyone full version

Do you know what it is TDD?

Page 7: Tdd 4 everyone full version

Sorry -unfortunately most of you are missing the point!

Page 8: Tdd 4 everyone full version

• As an interviewer

• I want that the candidate to write a code that will replace the two variables (INT)

• So I can figure out whether he is the right person for the job

Page 9: Tdd 4 everyone full version

First test

Page 10: Tdd 4 everyone full version

First fail

Page 11: Tdd 4 everyone full version

Build a simple implementation

Page 12: Tdd 4 everyone full version

Add a new test

Page 13: Tdd 4 everyone full version

Fail again

Page 14: Tdd 4 everyone full version

Fix the code

Page 15: Tdd 4 everyone full version

Refactoring after NFR

Page 16: Tdd 4 everyone full version

It’s all about A short feedback loop

Page 17: Tdd 4 everyone full version

FizzBuzz code KATA

• Write a program that prints the numbers from 1 to 100. But for multiples of three print "Fizz" instead of the number and for the multiples of five print "Buzz". For numbers which are multiples of both three and five print "FizzBuzz"

Page 18: Tdd 4 everyone full version
Page 19: Tdd 4 everyone full version
Page 20: Tdd 4 everyone full version
Page 21: Tdd 4 everyone full version
Page 22: Tdd 4 everyone full version
Page 23: Tdd 4 everyone full version
Page 24: Tdd 4 everyone full version
Page 25: Tdd 4 everyone full version

Here are the new requirements

• A number is fizz if it is divisible by 3 or if it has a 3 in it

• A number is buzz if it is divisible by 5 or if it has a 5 in it

Page 26: Tdd 4 everyone full version

DoD should update

Page 27: Tdd 4 everyone full version

TDD as a way of working

• TDD is not a UNIT TEST

• TDD is part of the Software craftsmanship

• TDD must be adjusted to US/DoD and not to Implementation

• If someone can understand your testYou are on the right way

• If the BA can understand your testYou are in a perfect way

Page 28: Tdd 4 everyone full version

Agile, Architecture and Architect

Page 29: Tdd 4 everyone full version
Page 30: Tdd 4 everyone full version

Facts About Software

Software is low cost

Requirements change

Page 31: Tdd 4 everyone full version

Agile Architecture“Sub Kuch Milega”

'You'll get anything you wish for'

Stock Photo - Casa Batllo - Antoni Gaudi - Barcelona

Page 32: Tdd 4 everyone full version

Agile Architecture - Less is More

“Just good enough”

Parsimony -Simplest solution , Minimize

complexity

Don't be afraid to throw

things away

Page 33: Tdd 4 everyone full version

Agile Architecture - Use Diagram

•Word >100 page

•PPTX > 60 slides

Page 34: Tdd 4 everyone full version

Agile Architecture - Use Diagram

Page 35: Tdd 4 everyone full version

TDD – Test Driven Design

Design High Level system

Build the contracts

"Fake it 'til you make it“ – make it clear

The system must be green

Now we can implement it

Page 36: Tdd 4 everyone full version

Thanks :-9I'm available for

QuestionsAny

(time, place, where)