Coding Dojo
Upcoming SlideShare
Loading in...5
×
 

Coding Dojo

on

  • 2,445 views

Agile Mëtteg - 29 November 2012 ...

Agile Mëtteg - 29 November 2012
Welcome to the dojo! If you want to code like a ninja you have to practice your katas!
A code kata is a simple exercise that allows a developer to improve his coding, testing & refactoring skills.
In this session you will practice pair-programming, TDD & clean code.
This session is for developers only!

Statistics

Views

Total Views
2,445
Views on SlideShare
2,035
Embed Views
410

Actions

Likes
0
Downloads
9
Comments
0

2 Embeds 410

http://blog.agilepartner.net 381
http://www.agilepartner.net 29

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Coding Dojo Coding Dojo Presentation Transcript

    • Coding DojoAgile Mëtteg – 29 Nov 2012
    • BOW (REI) Who are we? Eric Ferrot (eferrot@agilepartner.net) Cédric Pontet (cpontet@agilepartner.net , @cpontet) Who are you? Name Company Experience Language http://www.breakaway.cc/Asia/Japan/Japan-Bowing.php29 Nov 2012 Agile Mëtteg – Coding Dojo 2
    • KATAKata is a Japanese word describing detailedchoreographed patterns of movements practicedeither solo or in pairs.By practicing in a repetitive mannerthe learner develops the ability to execute thosetechniques and movements in a natural, reflex-like manner.The goal is to internalize the movements andtechniques of a kata so they can be executed andadapted under different circumstances, without 型thought.29 Nov 2012 Agile Mëtteg – Coding Dojo 3
    • DOJOA dojo is a Japanese term which literally means"place of the way".The term can refer to a formal training place forany of the Japanese do arts but typically it isconsidered the formal gathering place forstudents of any Japanese martial arts style suchas karate, judo, or samurai, to conduct training,examinations and other related encounters. 道場29 Nov 2012 Agile Mëtteg – Coding Dojo 4
    • CODING DOJO / CODE KATA Wikipedia Kata (programming) Dave Thomas (Agile Manifesto) CodeKata Laurent Bossavit & Emmanuel Gaillot CodingDojo Emilie Bache Online resources for Coding Dojos Coding Dojo Handbook29 Nov 2012 Agile Mëtteg – Coding Dojo 5
    • GOAL Practice of Test Driven Design Baby steps Refactoring Test Acquire good developer habits Refactor Code29 Nov 2012 Agile Mëtteg – Coding Dojo 6
    • FIZZBUZZReturn “fizz”, “buzz” or “fizzbuzz”.For a given natural number greater than zero return “fizz” if the number is dividable by 3 “buzz” if the number is dividable by 5 “fizzbuzz” if the number is dividable by 3 and 5 Input Result 1 1 2 2 3 fizz 4 4 5 buzz 6 fizz 10 buzz 15 fizzbuzz 30 fizzbuzz29 Nov 2012 Agile Mëtteg – Coding Dojo 7
    • TRANSFORMATION PRIORITY PREMISETransformation Description{}–>nil no code at all->code that employs nilnil->constantconstant->constant+ a simple constant to a more complex constantconstant->scalar replacing a constant with a variable or an argumentstatement->statements adding more unconditional statementsunconditional->if splitting the execution pathscalar->arrayarray->containerstatement->recursionif->whileexpression->function replacing an expression with a function or algorithmvariable->assignment replacing the value of a variable http://cleancoder.posterous.com/the-transformation-priority-premise 29 Nov 2012 Agile Mëtteg – Coding Dojo 8
    • PRIME FACTORSCompute the prime factors of a given naturalnumber Input Result ([…] denotes a list) 1 [] 2 [2] 3 [3] 4 [2,2] 5 [5] 6 [2,3] 7 [7] 8 [2,2,2] 9 [3,3]29 Nov 2012 Agile Mëtteg – Coding Dojo 9
    • REFACTORING KATA Emilie Bache Can you refactor ? Yahtzee In really small steps ? Can you turn some, frankly, ugly code into a paradigm of elegant, readable, extensible design? http://www.parentdish.com/2010/04/20/yahtzee-game/29 Nov 2012 Agile Mëtteg – Coding Dojo 10
    • SAYONARA What do you think ? Feedback is welcome Where to find Katas ? Catalogs • CodersDojo • CodeKata • CodingDojo • Schuchert Samples • CodersDojo http://www.hoshuha.com/blog/japanese-bowing-etiquette.html • Refactoring Katas29 Nov 2012 Agile Mëtteg – Coding Dojo 11
    • Follow usAgile Partner web site http://www.agilepartner.netBlog http://blog.agilepartner.net @agilepartner http://www.facebook.com/agilepartner http://www.slideshare.net/agilepartner29 Nov 2012 Agile Mëtteg – Coding Dojo 12