If martial artists use kata as a method for exercise and practice, what might be the equivalent for coders, like us? Well, code katas are short, repeatable programming challenges, which are meant to exercise everything from your focus, to your workflow.
- Prime Factors
Use TDD to build a class that will compute the prime factors for any given number.
2. Roman Numerals
Build a class that will automatically translate a number into its roman numeral counterpart.
3. Bowling Game
Recreate the scoring system for a game of bowling. We deal with scoring spares, or strikes, or multiple strikes!
4. String Calculator
Build a string calculator class; however, there are a number of rules and gotchas related to how we perform the addition.
5. Tennis Scoring
Tennis scoring kata. If you're familiar with the game, you'll know that the rules can be a bit tricky. As such, this will make for a great exercise!
6. FizzBuzz
Review the obligatory FizzBuzz exercise, and learn just how easy it is to solve.
7. Small Refactors and the Gilded Rose
Tackle the intimidating Gilded Rose kata in PHP. Our job is to translate a monstrously confusing set of countless conditionals into a small series of readable methods.