Successfully reported this slideshow.

Code dojo roman numbers export


Published on

Published in: Technology, Business
  • Be the first to comment

Code dojo roman numbers export

  1. 1. Code Dojo
  2. 2. dojo A dojo ( 道場) is a Japanese term which literally means "place of the way".
  3. 3. KATA A sequence of positions and movements used in a practice session.
  4. 4. Practice 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
  5. 5. dojo 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
  6. 6. simple 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
  7. 7. Format Pair up Problem presentation Each cycle is: a pomodoro (25 mins) five minute break to demo your code and grab some pizza
  8. 8. Roman KATA Convert an integer to its Roman numeral 1 -> I 5 -> V 10 -> X Add numbers together 3 -> III 12 -> XII
  9. 9. Roman 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
  10. 10. 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.
  11. 11. Roman kata 4
  12. 12. Go!! HAJIME!! (start now)
  13. 13. YAME!!
  14. 14. Show and tell
  15. 15. Reflection
  16. 16. Credits @sleepyfox (Nigel Runnels-Moss)