Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlanâs ...
Â
BDD TDD LEGO Kev McCabe Understanding Behavior Driven Development and Test Driven Development
1. Understanding
BDD
&
TDD
with
LEGO
Kev
McCabe
@bigmadkev
!
Adapted
from:
Bryan
Beecham
@BillyGarnet
Mike
Bowler
@mike_bowler
http://bigmadkev.com/resources
2. http://bigmadkev.com/resources
House
Keeping!
âȘ Please
have
your
phones
out
!
âȘ Please
talk
and
have
side
conversations
!
âȘ Please
Tweet,
Facebook,
Blog,
Rave
about
todays
sessions!
â
only
if
their
good
ones
Have
Fun!!!!!!
4. http://bigmadkev.com/resources
BDD
&
TDD
âȘ They
solve
separate
problems
!
âȘ They
work
together
!
âȘ TDD
â
Build
the
thing
right
âȘ Low
level
fast
tests
!
âȘ BDD
â
Build
the
right
thing
âȘ Conversations
&
Examples
9. http://bigmadkev.com/resources Having
Conversations
!
Is
more
important
than
capturing
conversations
!
Is
more
important
than
automating
conversations
www.slideshare.net/lunivore/behavior-Ââdriven-Ââdevelopment-Ââ11754474
Liz
Keogh
@lunivore
22. http://bigmadkev.com/resources
TDD
âȘ It
is
a
predictable
way
to
develop.
You
know
when
you
are
finished,
without
having
to
worry
about
a
long
bug
trail.
23. http://bigmadkev.com/resources
TDD
âȘ It
gives
you
a
chance
to
learn
all
of
the
lessons
that
the
code
has
to
teach
you.
If
you
only
slap
together
the
first
thing
you
think
of,
then
you
never
have
time
to
think
of
a
second,
better
thing.
31. http://bigmadkev.com/resources
You
wonât
stay
agile
without
clean
code
!
You
canât
have
clean
code
without
refactoring
!
You
canât
refactor
without
good
automated
tests
48. http://bigmadkev.com/resources
We
need
a
new
test
âȘ Is
the
house
wider
then
the
person?
No?
!
âȘ We
failed
another
test!
Awesome!
We
are
learning
a
lot
about
improvements
that
are
needed
to
our
code.
!
âȘ Letâs
do
the
minimum
to
pass
the
test.
!
âȘ Any
duplication
to
remove?
49. Exercise
-Ââ
3
Partners!
âȘ Break
into
groups
of
two
for
this
next
exercise.
!
âȘ When
developers
do
this
we
call
it
Pair
Programming
!
âȘ Berkley
photo
from
the
web
50. http://bigmadkev.com/resources
Lego
Sim
Town
In
order
to
have
a
town
to
run
The
Mayor
requires
A
small
town
comprised
of:
!
A
family
A
house
A
tree
An
animal
A
vehicle
51. http://bigmadkev.com/resources
We
need
a
new
test
âȘ Work
together
and
write
down
a
new
test
âȘ Build
minimally
pass
the
test
âȘ Repeat
(Donât
worry
about
Refactoring
for
now)
âȘ Hereâs
a
few
if
you
get
stuck:
âȘ Is
the
house
at
least
x
bricks
tall?
âȘ Is
the
tree
the
same
size
as
the
house?
âȘ Is
the
animal
smaller
than
the
person?
52. Exercise
3
â
Lego
Sim
Town
âȘA
family
âȘA
house
âȘA
tree
âȘAn
animal
âȘA
vehicle
âȘ Is
the
house
at
least
x
bricks
tall?
!
âȘ Is
the
tree
the
same
size
as
the
house?
!
âȘ Is
the
animal
smaller
than
the
person?
54. http://bigmadkev.com/resources
Review
âȘ Test-ÂâDriven
Development
/
Design
âȘ Refactoring
âȘ Pair
Programming
âȘ A
bit
of
developer
speak
âȘ Experience
working
on
a
software
team