code dojo roman numbers export

16
Code Dojo

Upload: maria-zverina

Post on 12-May-2015

417 views

Category:

Technology


1 download

TRANSCRIPT

Page 1: Code dojo   roman numbers export

Code DojoCode Dojo

Page 3: Code dojo   roman numbers export

KATAKATA

A sequence of positions and movements used in a practice session.

A sequence of positions and movements used in a practice session.

Page 4: Code dojo   roman numbers export

PracticePractice

Malcom Gladwell: “You have to do 10,000 hours of practice to be virtuoso.”

Practice must:

be focused

stretch your abilities

be deliberate

include self-reflection

Malcom Gladwell: “You have to do 10,000 hours of practice to be virtuoso.”

Practice must:

be focused

stretch your abilities

be deliberate

include self-reflection

Page 5: Code dojo   roman numbers export

dojo kundojo kun

We respect each other’s commitment

i.e. no phones, mail, Facebook, etc. Focus!

We all do pair programming

We all do TDD

We swap pairs each cycles

We follow “Simple Design” rules

We respect each other’s commitment

i.e. no phones, mail, Facebook, etc. Focus!

We all do pair programming

We all do TDD

We swap pairs each cycles

We follow “Simple Design” rules

Page 6: Code dojo   roman numbers export

simple designsimple design

Simple design is code that:

Passes all tests

Is clear, expressive and consistent

Duplicates no behaviour or configuration

Minimises the number of class, methods and modules

Simple design is code that:

Passes all tests

Is clear, expressive and consistent

Duplicates no behaviour or configuration

Minimises the number of class, methods and modules

Page 7: Code dojo   roman numbers export

FormatFormat

Pair up

Problem presentation

Each cycle is:

a pomodoro (25 mins)

five minute break to demo your code and grab some pizza

Pair up

Problem presentation

Each cycle is:

a pomodoro (25 mins)

five minute break to demo your code and grab some pizza

Page 8: Code dojo   roman numbers export

Roman KATARoman KATA

Convert an integer to its Roman numeral

1 -> I5 -> V10 -> X

Add numbers together3 -> III12 -> XII

Convert an integer to its Roman numeral

1 -> I5 -> V10 -> X

Add numbers together3 -> III12 -> XII

Page 9: Code dojo   roman numbers export

Roman kata 2Roman kata 2

Smaller number before larger one means subtraction, e.g. 4 = IV

Convert hundreds, tens and units separately.

999 is not IM

999 is CMXCIX

Smaller number before larger one means subtraction, e.g. 4 = IV

Convert hundreds, tens and units separately.

999 is not IM

999 is CMXCIX

Page 10: Code dojo   roman numbers export

Roman KATA 3 Roman KATA 3

Only one small-value symbol may be subtracted from any large-value symbol.

The symbols "I", "X", "C", and "M" can be repeated three times in succession, but no more. (They may appear more than three times if they appear non-sequentially, such as XXXIX.) "D", "L", and "V" can never be repeated.

"I" can be subtracted from "V" and "X" only. "X" can be subtracted from "L" and "C" only. "C" can be subtracted from "D" and "M" only. "V", "L", and "D" never subtract.

Only one small-value symbol may be subtracted from any large-value symbol.

The symbols "I", "X", "C", and "M" can be repeated three times in succession, but no more. (They may appear more than three times if they appear non-sequentially, such as XXXIX.) "D", "L", and "V" can never be repeated.

"I" can be subtracted from "V" and "X" only. "X" can be subtracted from "L" and "C" only. "C" can be subtracted from "D" and "M" only. "V", "L", and "D" never subtract.

Page 11: Code dojo   roman numbers export

Roman kata 4Roman kata 4

Page 12: Code dojo   roman numbers export

Go!!Go!!

HAJIME!!(start now)

http://tomatoi.st/dojo

HAJIME!!(start now)

http://tomatoi.st/dojo

Page 13: Code dojo   roman numbers export

YAME!!YAME!!

Page 14: Code dojo   roman numbers export

Show and tellShow and tell

Page 15: Code dojo   roman numbers export

ReflectionReflection

Page 16: Code dojo   roman numbers export

CreditsCredits

http://www.meetup.com/London-Code-Dojo/

@sleepyfox (Nigel Runnels-Moss)

http://www.meetup.com/London-Code-Dojo/

@sleepyfox (Nigel Runnels-Moss)