Coding dojo 22_05_2013

11
CODING DOJO #1 22/05/2013

Transcript of Coding dojo 22_05_2013

CODING DOJO #1

2 2/ 05 /2 0

1 3

WHY?

Programming is a craft, and every craft requires training

CODING DOJO...WHAT?

A friendly environment to train and learn

...work together on a problem

...and, hopefully, have some fun!

WHAT ELSE?

This is NOT a competition or a talent show

There is no “right” solution for the problem

HOW?

HOW?

• We will start from scratch, no previous knowledge of unit testing is needed

• Baby steps. We have no hurry

• Pair programming

• We don’t want to write the “perfect code” at once

• Actually, we shouldn’t!

PAIR PROGRAMMING

• One driver, one observer

• Driver has the keyboard

• Observer keeps track of the bigger picture

• Driver and observer talk out loud their ideas

• No comments from the audience during the red phase

• OK to ask for help if you’re stuck, though

• When the time slot is over, the driver goes back to the audience, the observer becomes the driver, and a new observer comes from the audience

RETROSPECTIVE

http://www.slideshare.net/wouterla/coding-dojo-in-5-minutes

OUR FIRST PROBLEM: MONEY WRITER

• We want to long-write money values in Portuguese

• So, 24.50 would be printed as “Vinte e quatro reais e cinquenta centavos”

• Let’s use C#, Nunit and ReSharper

• Git to record the process of code design

QUESTIONS?