This document outlines an agenda for a coding dojo event hosted by Peter Kofler on converting numbers to and from Roman numerals. The event will use pair programming and test-driven development. Attendees will practice converting numbers to Roman numerals under constraints like not using loops or maps. They will also convert Roman numerals to numbers while pair programming in a "ping-pong" style.
Presentation on how to chat with PDF using ChatGPT code interpreter
Â
Coding Dojo: Roman Numerals (2014)
1. Coding Dojo:
Roman Numerals
July 2014
Peter Kofler, âCode Copâ
@codecopkofler
www.code-cop.org
Copyright Peter Kofler, licensed under CC-BY.
2. PETER KOFLER, CODE-COP.ORG FANATIC ABOUT CODE QUALITY
Peter Kofler
âą Ph.D. (Appl. Math.)
âą Professional Software
Developer for 15 years
âą âfanatic about code qualityâ
âą I help development teams
4. PETER KOFLER, CODE-COP.ORG FANATIC ABOUT CODE QUALITY
Coding Dojo Mindset
â Safe place outside
work
â We are here to learn
â Need to slow down
â Focus on doing it right
â Collaborative Game
5. PETER KOFLER, CODE-COP.ORG FANATIC ABOUT CODE QUALITY
Rules
â Collaborative = Pair Programming
â âRandoriâ (pairing on the projector)
â or programming in pairs
â Test Driven Development
â think about test cases
â write the test first
6. PETER KOFLER, CODE-COP.ORG FANATIC ABOUT CODE QUALITY
Constraints
â Challenges during a dojo or coderetreat.
â Moving to the extreme is a way of learning
â Examples
â Missing Tool (No Mouse, âŠ)
â Missing Feature (No IFs, âŠ)
9. PETER KOFLER, CODE-COP.ORG FANATIC ABOUT CODE QUALITY
Roman Numerals
â http://en.wikipedia.org/wiki/Roman_numerals
âstandardâ, subtractive form, 1 â 3999
â convert normal (Arabic) numbers to Roman
numerals:
â 1 â I
â 4 â IV
â 7 â VII
â 10 â X
10. PETER KOFLER, CODE-COP.ORG FANATIC ABOUT CODE QUALITY
Prepare
â Find a pair.
â Choose a programming language.
â Set up the environment.
â Create new project.
â Add testing framework.
â Check Wikipedia for requirements.
â Implement requirements.
11. Don't Focus on
Getting it Done.
F0cus on Doing
It Perfectly.
13. PETER KOFLER, CODE-COP.ORG FANATIC ABOUT CODE QUALITY
Roman Numerals II
â http://en.wikipedia.org/wiki/Roman_numerals
âstandardâ, subtractive form, 1 â 3999
â convert Roman numerals to normal (Arabic)
numbers:
â I â 1
â IV â 4
â VII â 7
â X â 10
14. PETER KOFLER, CODE-COP.ORG FANATIC ABOUT CODE QUALITY
Constraint: Ping-Pong
â A writes a test and sees that it fails.
â B writes the code needed to pass the test.
â B refactors the code as needed.
â B writes next test and sees that it fails.
â A writes the code needed to pass the test.
â And so on.
15. PETER KOFLER, CODE-COP.ORG FANATIC ABOUT CODE QUALITY
Algorithm Considerations
â No loops.
â No table/map/switch for literal lookup.
â Subtractive form is not a literal.
17. PETER KOFLER, CODE-COP.ORG FANATIC ABOUT CODE QUALITY
Short Closing Circle
â How did it work out?
â How do you feel?
â What did you
learn and want
to share with
the group?
18. PETER KOFLER, CODE-COP.ORG FANATIC ABOUT CODE QUALITY
Full Closing Circle
â What did you learn today?
â What surprised you today?
â What will you do
differently in the
future?
19. PETER KOFLER, CODE-COP.ORG FANATIC ABOUT CODE QUALITY
Coding Dojo Vienna
â Biweekly Coding Dojo in Vienna
â Every other Wednesday 6PM
â Changing locations
â Follow
#CodingDojoVie
http://codingdojovie.github.io/
20. PETER KOFLER, CODE-COP.ORG FANATIC ABOUT CODE QUALITY
Global Day of Code Retreat
â A world-wide event celebrating passion
and software craftsmanship.
â GDCR 2014:
15th November
â Follow #GDCR14
http://globalday.coderetreat.org/
22. PETER KOFLER, CODE-COP.ORG FANATIC ABOUT CODE QUALITY
CC Images
â Corner
https://www.flickr.com/photos/midatlanticbulldogrescue/160531996
â Dojo http://www.flickr.com/photos/49715404@N00/3267627038/
â Todos http://www.flickr.com/photos/kylesteeddesign/3724074594/
â Date https://www.flickr.com/photos/patmilphotos/7694314328
â Wants you http://www.flickr.com/photos/shutter/105497713/