SlideShare uma empresa Scribd logo
1 de 40
Baixar para ler offline
Øredev - Malmö, Sweden
Koans and Katas, Oh My!
Cory Foy, Senior Consultant, Net Objectives
Tuesday, November 9, 2010
Tuesday, November 9, 2010
Tuesday, November 9, 2010
Tuesday, November 9, 2010
Tuesday, November 9, 2010
Tuesday, November 9, 2010
Tuesday, November 9, 2010
Tuesday, November 9, 2010
Tuesday, November 9, 2010
Tuesday, November 9, 2010
Tuesday, November 9, 2010
Koans
Tuesday, November 9, 2010
Koans
Katas
Tuesday, November 9, 2010
Koans
Katas
Code
Retreats
Tuesday, November 9, 2010
Tuesday, November 9, 2010
The method in which we do these exercises is a vital part of how we learn. One key model of Skills Acquisition is the Dreyfus model, which defines 5 stages from beginner to expert. But the
key is that the earlier stages of learning require greater context and concrete steps for the student to help them work through the exercises and begin the understanding which leads them
down the path of intuitive decision making.
Novice
Advanced Beginner
Competent
Proficient
Expert
Tuesday, November 9, 2010
The method in which we do these exercises is a vital part of how we learn. One key model of Skills Acquisition is the Dreyfus model, which defines 5 stages from beginner to expert. But the
key is that the earlier stages of learning require greater context and concrete steps for the student to help them work through the exercises and begin the understanding which leads them
down the path of intuitive decision making.
Novice
Advanced Beginner
Competent
Proficient
Expert
Works More From
Intuition
Tuesday, November 9, 2010
The method in which we do these exercises is a vital part of how we learn. One key model of Skills Acquisition is the Dreyfus model, which defines 5 stages from beginner to expert. But the
key is that the earlier stages of learning require greater context and concrete steps for the student to help them work through the exercises and begin the understanding which leads them
down the path of intuitive decision making.
Novice
Advanced Beginner
Competent
Proficient
Expert
Requires More
Context
Works More From
Intuition
Tuesday, November 9, 2010
The method in which we do these exercises is a vital part of how we learn. One key model of Skills Acquisition is the Dreyfus model, which defines 5 stages from beginner to expert. But the
key is that the earlier stages of learning require greater context and concrete steps for the student to help them work through the exercises and begin the understanding which leads them
down the path of intuitive decision making.
Tuesday, November 9, 2010
An alternative way of expressing this transition is through the concept of Shu Ha Ri. In this model the student first learns by following the rules (Shu). Overtime, the student can formalize and
abide by the rules. At this point they move into a phase of attempting to break the rules (Ha) by reflection on self-knowledge and exploration of exceptions and anti-theses. When the student
can break and see both sides of all of the rules, they enter into a phase where they attempt to leave the rules (Ri) by becoming free of the rules by leaving the practices and focusing instead
on the flow.
Shu
Tuesday, November 9, 2010
An alternative way of expressing this transition is through the concept of Shu Ha Ri. In this model the student first learns by following the rules (Shu). Overtime, the student can formalize and
abide by the rules. At this point they move into a phase of attempting to break the rules (Ha) by reflection on self-knowledge and exploration of exceptions and anti-theses. When the student
can break and see both sides of all of the rules, they enter into a phase where they attempt to leave the rules (Ri) by becoming free of the rules by leaving the practices and focusing instead
on the flow.
Shu Ha
Tuesday, November 9, 2010
An alternative way of expressing this transition is through the concept of Shu Ha Ri. In this model the student first learns by following the rules (Shu). Overtime, the student can formalize and
abide by the rules. At this point they move into a phase of attempting to break the rules (Ha) by reflection on self-knowledge and exploration of exceptions and anti-theses. When the student
can break and see both sides of all of the rules, they enter into a phase where they attempt to leave the rules (Ri) by becoming free of the rules by leaving the practices and focusing instead
on the flow.
Shu Ha Ri
Tuesday, November 9, 2010
An alternative way of expressing this transition is through the concept of Shu Ha Ri. In this model the student first learns by following the rules (Shu). Overtime, the student can formalize and
abide by the rules. At this point they move into a phase of attempting to break the rules (Ha) by reflection on self-knowledge and exploration of exceptions and anti-theses. When the student
can break and see both sides of all of the rules, they enter into a phase where they attempt to leave the rules (Ri) by becoming free of the rules by leaving the practices and focusing instead
on the flow.
Tuesday, November 9, 2010
✤ Kihon
(Basics)
Tuesday, November 9, 2010
✤ Kihon
(Basics)
✤ Kata
(Forms)
Tuesday, November 9, 2010
✤ Kihon
(Basics)
✤ Kata
(Forms)
✤ Kumite
(Sparring)
Tuesday, November 9, 2010
✤ Kihon
(Basics)
✤ Kata
(Forms)
✤ Kumite
(Sparring)
✤ Koan
(Transcending)
Tuesday, November 9, 2010
http://rubykoans.com/
Tuesday, November 9, 2010
Tuesday, November 9, 2010
Tuesday, November 9, 2010
But Koans are a journey. A path towards greater learning. An investment. You’re learning.
And we need learning. But we also need practice. Which takes us to Katas.
max_bit.times { |i| count += word[i] }
Tuesday, November 9, 2010
The concept of software Katas was coined by “Pragmatic” Dave Thomas. It came to him after
he took this unreadable mess and converted it into this glimmering example of a much more
((max_bit+29)/30).times do |offset|
x = (word >> (offset*30)) & 0x3fffffff
next if x.zero?
x = x - ((x >> 1) & 0x55555555)
x = (x & 0x33333333) + ((x >> 2) & 0x33333333)
x = (x + (x >> 4)) & 0x0f0f0f0f;
x = x + (x >> 8)
x = x + (x >> 16)
count += x & 0x3f
end
Tuesday, November 9, 2010
Tuesday, November 9, 2010
So he created this CodeKata site with a series of focused problems developers could solve.
But over time, the discussion drifted from providing a series of problems to solve, to a series
Tuesday, November 9, 2010
This led to the KataCasts site, which were a series of Screencasts released by Corey Haines
and Enrique Comba (among others) which highlighted specific solutions. We saw one of those
http://codingdojo.org/cgi-bin/wiki.pl?KataFizzBuzz
Tuesday, November 9, 2010
This is the infamous FizzBuzz exercise. To get our blood flowing (and our keyboards going) I
want us to run through 3 iterations of this exercise. But we’re going to modify it slightly.
Tuesday, November 9, 2010
Katas are a great way to practice many things, because they are short, and you can do them
just about anywhere. As you saw from the FizzBuzz exercise, repetition is important so that
Tuesday, November 9, 2010
Code Retreats are full day
Tuesday, November 9, 2010
Code Retreats are full day
http://en.wikipedia.org/wiki/Conway%27s_Game_of_Life
Tuesday, November 9, 2010
Credits and Links
Firefighters: http://www.sxc.hu/browse.phtml?f=download&id=1018822
Martial Arts: http://www.sxc.hu/browse.phtml?f=download&id=68048&redirect=photo
Doctor: http://www.sxc.hu/browse.phtml?f=download&id=1314903&redirect=photo
Guitar: http://www.sxc.hu/browse.phtml?f=download&id=863840&redirect=photo
Cars: http://www.sxc.hu/browse.phtml?f=download&id=900749&redirect=photo
Blacksmith: http://www.sxc.hu/browse.phtml?f=download&id=166615&redirect=photo
Craftsman: http://www.sxc.hu/browse.phtml?f=download&id=470477&redirect=photo
ShuHaRi: http://upload.wikimedia.org/wikipedia/commons/e/e2/ShuHaRi.png
Kihon: http://www.sxc.hu/browse.phtml?f=download&id=1129310
Kata: http://www.flickr.com/photos/cayusa/2963773652/sizes/l/in/photostream/
Kumite: http://www.flickr.com/photos/mgoulet/3341918877/sizes/z/in/photostream/
Koan: http://www.flickr.com/photos/seandreilinger/4127197962/sizes/z/in/photostream/
Photos
Links
http://www.coderetreat.com/how-it-works.html
http://en.wikipedia.org/wiki/Conway%27s_Game_of_Life
http://geekswithblogs.net/onefloridacoder/archive/2010/08/16/setting-up-for-the-orlando-code-retreat.aspx
http://coderetreat.ning.com/profiles/blogs/how-to-run-a-coderetreat
http://www.alexbolboaca.ro/wordpress/articles/how-to-organize-a-code-retreat
http://gojko.net/2009/02/27/thought-provoking-tdd-exercise-at-the-software-craftsmanship-conference/
http://gojko.net/2009/08/02/tdd-as-if-you-meant-it-revisited/
http://en.wikipedia.org/wiki/K%C5%8Dan
http://codekata.pragprog.com/2007/01/kata_kumite_koa.html
http://saraford.net/2010/01/17/coding-is-not-kata/
http://www.c2.com/cgi/wiki?ShuHaRi
http://rubykoans.com/windows
http://codingdojo.org/cgi-bin/wiki.pl?KataFizzBuzz
Tuesday, November 9, 2010

Mais conteúdo relacionado

Semelhante a Koans and Katas, Oh My! From Øredev 2010

Globalization And Its Impact On Society Essay
Globalization And Its Impact On Society EssayGlobalization And Its Impact On Society Essay
Globalization And Its Impact On Society Essay
Christina Valadez
 
Canons of Rhetoric Speech AnalysisSo what are the characteristi.docx
Canons of Rhetoric Speech AnalysisSo what are the characteristi.docxCanons of Rhetoric Speech AnalysisSo what are the characteristi.docx
Canons of Rhetoric Speech AnalysisSo what are the characteristi.docx
hacksoni
 
My learning syle
My learning syleMy learning syle
My learning syle
nvall101
 
(9)what is academic writing ljmu jhm
(9)what is academic writing ljmu jhm(9)what is academic writing ljmu jhm
(9)what is academic writing ljmu jhm
JAHennessyMurdoch
 

Semelhante a Koans and Katas, Oh My! From Øredev 2010 (15)

Good Things To Write An Essay About. Online assignment writing service.
Good Things To Write An Essay About. Online assignment writing service.Good Things To Write An Essay About. Online assignment writing service.
Good Things To Write An Essay About. Online assignment writing service.
 
Globalization And Its Impact On Society Essay
Globalization And Its Impact On Society EssayGlobalization And Its Impact On Society Essay
Globalization And Its Impact On Society Essay
 
Canons of Rhetoric Speech AnalysisSo what are the characteristi.docx
Canons of Rhetoric Speech AnalysisSo what are the characteristi.docxCanons of Rhetoric Speech AnalysisSo what are the characteristi.docx
Canons of Rhetoric Speech AnalysisSo what are the characteristi.docx
 
Talking About Collaboration: Cogenerative Dialoguing and the Teacher-Paraedu...
Talking About Collaboration:  Cogenerative Dialoguing and the Teacher-Paraedu...Talking About Collaboration:  Cogenerative Dialoguing and the Teacher-Paraedu...
Talking About Collaboration: Cogenerative Dialoguing and the Teacher-Paraedu...
 
Threshold concepts in higher ed (STLHE2015)
Threshold concepts in higher ed (STLHE2015)Threshold concepts in higher ed (STLHE2015)
Threshold concepts in higher ed (STLHE2015)
 
Threshold Concepts and Professional Formation
Threshold Concepts and Professional FormationThreshold Concepts and Professional Formation
Threshold Concepts and Professional Formation
 
SociologyExchange.co.uk Shared Resource
SociologyExchange.co.uk Shared ResourceSociologyExchange.co.uk Shared Resource
SociologyExchange.co.uk Shared Resource
 
A Guide to Success in History Courses.pdf
A Guide to Success in History Courses.pdfA Guide to Success in History Courses.pdf
A Guide to Success in History Courses.pdf
 
Learning Styles & HOTS in Study Packs
Learning Styles & HOTS in Study PacksLearning Styles & HOTS in Study Packs
Learning Styles & HOTS in Study Packs
 
Listening Strategy Guide
Listening Strategy GuideListening Strategy Guide
Listening Strategy Guide
 
My learning syle
My learning syleMy learning syle
My learning syle
 
What are learning theories good for?
What are learning theories good for?What are learning theories good for?
What are learning theories good for?
 
The Developer's Guide to Learning - KCDC 2017
The Developer's Guide to Learning - KCDC 2017The Developer's Guide to Learning - KCDC 2017
The Developer's Guide to Learning - KCDC 2017
 
5 Critical Thinking Activities for the Classroom
5 Critical Thinking Activities for the Classroom5 Critical Thinking Activities for the Classroom
5 Critical Thinking Activities for the Classroom
 
(9)what is academic writing ljmu jhm
(9)what is academic writing ljmu jhm(9)what is academic writing ljmu jhm
(9)what is academic writing ljmu jhm
 

Mais de Cory Foy

Mais de Cory Foy (20)

Defending Commoditization: Mapping Gameplays and Strategies to Stay Ahead in ...
Defending Commoditization: Mapping Gameplays and Strategies to Stay Ahead in ...Defending Commoditization: Mapping Gameplays and Strategies to Stay Ahead in ...
Defending Commoditization: Mapping Gameplays and Strategies to Stay Ahead in ...
 
Stratgic Play - Doing the Right Thing at the Right Time
Stratgic Play - Doing the Right Thing at the Right TimeStratgic Play - Doing the Right Thing at the Right Time
Stratgic Play - Doing the Right Thing at the Right Time
 
Continuous Deployment and Testing Workshop from Better Software West
Continuous Deployment and Testing Workshop from Better Software WestContinuous Deployment and Testing Workshop from Better Software West
Continuous Deployment and Testing Workshop from Better Software West
 
Choosing Between Scrum and Kanban - TriAgile 2015
Choosing Between Scrum and Kanban - TriAgile 2015Choosing Between Scrum and Kanban - TriAgile 2015
Choosing Between Scrum and Kanban - TriAgile 2015
 
Code Katas
Code KatasCode Katas
Code Katas
 
Distributed Agility
Distributed AgilityDistributed Agility
Distributed Agility
 
Scaling Agility
Scaling AgilityScaling Agility
Scaling Agility
 
Kanban for DevOps
Kanban for DevOpsKanban for DevOps
Kanban for DevOps
 
Ruby and OO for Beginners
Ruby and OO for BeginnersRuby and OO for Beginners
Ruby and OO for Beginners
 
Agile Roots: The Agile Mindset - Agility Across the Organization
Agile Roots: The Agile Mindset - Agility Across the OrganizationAgile Roots: The Agile Mindset - Agility Across the Organization
Agile Roots: The Agile Mindset - Agility Across the Organization
 
Triangle.rb - How Secure is Your Rails Site, Anyway?
Triangle.rb - How Secure is Your Rails Site, Anyway?Triangle.rb - How Secure is Your Rails Site, Anyway?
Triangle.rb - How Secure is Your Rails Site, Anyway?
 
Scrum vs Kanban - Implementing Agility at Scale
Scrum vs Kanban - Implementing Agility at ScaleScrum vs Kanban - Implementing Agility at Scale
Scrum vs Kanban - Implementing Agility at Scale
 
SQE Boston - When Code Cries
SQE Boston - When Code CriesSQE Boston - When Code Cries
SQE Boston - When Code Cries
 
GOTO Berlin - When Code Cries
GOTO Berlin - When Code CriesGOTO Berlin - When Code Cries
GOTO Berlin - When Code Cries
 
Rails as a Pattern Language
Rails as a Pattern LanguageRails as a Pattern Language
Rails as a Pattern Language
 
Patterns in Rails
Patterns in RailsPatterns in Rails
Patterns in Rails
 
Agile Demystified
Agile DemystifiedAgile Demystified
Agile Demystified
 
When Code Cries
When Code CriesWhen Code Cries
When Code Cries
 
Ruby for C# Developers
Ruby for C# DevelopersRuby for C# Developers
Ruby for C# Developers
 
Getting Unstuck: Working with Legacy Code and Data
Getting Unstuck: Working with Legacy Code and DataGetting Unstuck: Working with Legacy Code and Data
Getting Unstuck: Working with Legacy Code and Data
 

Último

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Último (20)

Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 

Koans and Katas, Oh My! From Øredev 2010

  • 1. Øredev - Malmö, Sweden Koans and Katas, Oh My! Cory Foy, Senior Consultant, Net Objectives Tuesday, November 9, 2010
  • 15. Tuesday, November 9, 2010 The method in which we do these exercises is a vital part of how we learn. One key model of Skills Acquisition is the Dreyfus model, which defines 5 stages from beginner to expert. But the key is that the earlier stages of learning require greater context and concrete steps for the student to help them work through the exercises and begin the understanding which leads them down the path of intuitive decision making.
  • 16. Novice Advanced Beginner Competent Proficient Expert Tuesday, November 9, 2010 The method in which we do these exercises is a vital part of how we learn. One key model of Skills Acquisition is the Dreyfus model, which defines 5 stages from beginner to expert. But the key is that the earlier stages of learning require greater context and concrete steps for the student to help them work through the exercises and begin the understanding which leads them down the path of intuitive decision making.
  • 17. Novice Advanced Beginner Competent Proficient Expert Works More From Intuition Tuesday, November 9, 2010 The method in which we do these exercises is a vital part of how we learn. One key model of Skills Acquisition is the Dreyfus model, which defines 5 stages from beginner to expert. But the key is that the earlier stages of learning require greater context and concrete steps for the student to help them work through the exercises and begin the understanding which leads them down the path of intuitive decision making.
  • 18. Novice Advanced Beginner Competent Proficient Expert Requires More Context Works More From Intuition Tuesday, November 9, 2010 The method in which we do these exercises is a vital part of how we learn. One key model of Skills Acquisition is the Dreyfus model, which defines 5 stages from beginner to expert. But the key is that the earlier stages of learning require greater context and concrete steps for the student to help them work through the exercises and begin the understanding which leads them down the path of intuitive decision making.
  • 19. Tuesday, November 9, 2010 An alternative way of expressing this transition is through the concept of Shu Ha Ri. In this model the student first learns by following the rules (Shu). Overtime, the student can formalize and abide by the rules. At this point they move into a phase of attempting to break the rules (Ha) by reflection on self-knowledge and exploration of exceptions and anti-theses. When the student can break and see both sides of all of the rules, they enter into a phase where they attempt to leave the rules (Ri) by becoming free of the rules by leaving the practices and focusing instead on the flow.
  • 20. Shu Tuesday, November 9, 2010 An alternative way of expressing this transition is through the concept of Shu Ha Ri. In this model the student first learns by following the rules (Shu). Overtime, the student can formalize and abide by the rules. At this point they move into a phase of attempting to break the rules (Ha) by reflection on self-knowledge and exploration of exceptions and anti-theses. When the student can break and see both sides of all of the rules, they enter into a phase where they attempt to leave the rules (Ri) by becoming free of the rules by leaving the practices and focusing instead on the flow.
  • 21. Shu Ha Tuesday, November 9, 2010 An alternative way of expressing this transition is through the concept of Shu Ha Ri. In this model the student first learns by following the rules (Shu). Overtime, the student can formalize and abide by the rules. At this point they move into a phase of attempting to break the rules (Ha) by reflection on self-knowledge and exploration of exceptions and anti-theses. When the student can break and see both sides of all of the rules, they enter into a phase where they attempt to leave the rules (Ri) by becoming free of the rules by leaving the practices and focusing instead on the flow.
  • 22. Shu Ha Ri Tuesday, November 9, 2010 An alternative way of expressing this transition is through the concept of Shu Ha Ri. In this model the student first learns by following the rules (Shu). Overtime, the student can formalize and abide by the rules. At this point they move into a phase of attempting to break the rules (Ha) by reflection on self-knowledge and exploration of exceptions and anti-theses. When the student can break and see both sides of all of the rules, they enter into a phase where they attempt to leave the rules (Ri) by becoming free of the rules by leaving the practices and focusing instead on the flow.
  • 26. ✤ Kihon (Basics) ✤ Kata (Forms) ✤ Kumite (Sparring) Tuesday, November 9, 2010
  • 27. ✤ Kihon (Basics) ✤ Kata (Forms) ✤ Kumite (Sparring) ✤ Koan (Transcending) Tuesday, November 9, 2010
  • 30. Tuesday, November 9, 2010 But Koans are a journey. A path towards greater learning. An investment. You’re learning. And we need learning. But we also need practice. Which takes us to Katas.
  • 31. max_bit.times { |i| count += word[i] } Tuesday, November 9, 2010 The concept of software Katas was coined by “Pragmatic” Dave Thomas. It came to him after he took this unreadable mess and converted it into this glimmering example of a much more
  • 32. ((max_bit+29)/30).times do |offset| x = (word >> (offset*30)) & 0x3fffffff next if x.zero? x = x - ((x >> 1) & 0x55555555) x = (x & 0x33333333) + ((x >> 2) & 0x33333333) x = (x + (x >> 4)) & 0x0f0f0f0f; x = x + (x >> 8) x = x + (x >> 16) count += x & 0x3f end Tuesday, November 9, 2010
  • 33. Tuesday, November 9, 2010 So he created this CodeKata site with a series of focused problems developers could solve. But over time, the discussion drifted from providing a series of problems to solve, to a series
  • 34. Tuesday, November 9, 2010 This led to the KataCasts site, which were a series of Screencasts released by Corey Haines and Enrique Comba (among others) which highlighted specific solutions. We saw one of those
  • 35. http://codingdojo.org/cgi-bin/wiki.pl?KataFizzBuzz Tuesday, November 9, 2010 This is the infamous FizzBuzz exercise. To get our blood flowing (and our keyboards going) I want us to run through 3 iterations of this exercise. But we’re going to modify it slightly.
  • 36. Tuesday, November 9, 2010 Katas are a great way to practice many things, because they are short, and you can do them just about anywhere. As you saw from the FizzBuzz exercise, repetition is important so that
  • 37. Tuesday, November 9, 2010 Code Retreats are full day
  • 38. Tuesday, November 9, 2010 Code Retreats are full day
  • 40. Credits and Links Firefighters: http://www.sxc.hu/browse.phtml?f=download&id=1018822 Martial Arts: http://www.sxc.hu/browse.phtml?f=download&id=68048&redirect=photo Doctor: http://www.sxc.hu/browse.phtml?f=download&id=1314903&redirect=photo Guitar: http://www.sxc.hu/browse.phtml?f=download&id=863840&redirect=photo Cars: http://www.sxc.hu/browse.phtml?f=download&id=900749&redirect=photo Blacksmith: http://www.sxc.hu/browse.phtml?f=download&id=166615&redirect=photo Craftsman: http://www.sxc.hu/browse.phtml?f=download&id=470477&redirect=photo ShuHaRi: http://upload.wikimedia.org/wikipedia/commons/e/e2/ShuHaRi.png Kihon: http://www.sxc.hu/browse.phtml?f=download&id=1129310 Kata: http://www.flickr.com/photos/cayusa/2963773652/sizes/l/in/photostream/ Kumite: http://www.flickr.com/photos/mgoulet/3341918877/sizes/z/in/photostream/ Koan: http://www.flickr.com/photos/seandreilinger/4127197962/sizes/z/in/photostream/ Photos Links http://www.coderetreat.com/how-it-works.html http://en.wikipedia.org/wiki/Conway%27s_Game_of_Life http://geekswithblogs.net/onefloridacoder/archive/2010/08/16/setting-up-for-the-orlando-code-retreat.aspx http://coderetreat.ning.com/profiles/blogs/how-to-run-a-coderetreat http://www.alexbolboaca.ro/wordpress/articles/how-to-organize-a-code-retreat http://gojko.net/2009/02/27/thought-provoking-tdd-exercise-at-the-software-craftsmanship-conference/ http://gojko.net/2009/08/02/tdd-as-if-you-meant-it-revisited/ http://en.wikipedia.org/wiki/K%C5%8Dan http://codekata.pragprog.com/2007/01/kata_kumite_koa.html http://saraford.net/2010/01/17/coding-is-not-kata/ http://www.c2.com/cgi/wiki?ShuHaRi http://rubykoans.com/windows http://codingdojo.org/cgi-bin/wiki.pl?KataFizzBuzz Tuesday, November 9, 2010