Practice, Code Exercises, and Code Katas
Posted by: Steven Smith,
on 28 Aug 2009 |
View original | Bookmarked: 0 time(s)
One of the ways we improve as software developers is through practice. Practice isnt just something thats done as you go about your job it has to be focused on improving your skills. Practice can take many forms, but two of them include practicing doing something the right way and practicing something new that is outside of your comfort zone. Often in our day-to-day work, our focus is on delivering something within a given timeframe, and not necessarily on doing it the right way. Further, without exploration and practice learning new things, we may not be aware of what the right way is to accomplish certain tasks. There are individuals with many years of experience who have done the same thing the same way at the same company and there are individuals with far less calendar experience but a much broaden and deeper range of skills. The difference in these individuals is clear to any employer after a brief period of time, and one way we deepen and broaden our skillset is through practice.
I wrote yesterday about Project Euler, which provides over 200 problems that can be used as the basis for coding exercises and practice. This is just one resource for those looking to hone their skills as developer craftsmen. Here are some others Ive found as I research the topic for our local Hudson Software Craftsmanship group:
- The Bowling Game The original from UncleBob, the presentation as a PPT file with test and code side by side along with notes on needed refactorings is excellent. Im hoping to write up some Euler problems using this same approach at some point. If you miss the link to the powerpoint, its here: BowlingGameKataPowerpoint.
- Prime Factors Another UncleBob kata.
- Project Euler Lots of problems which in and of themselves are not katas because theres no explanation of the right way to approach them. However, they are a great way to explore and hone your skills or see how others in a group would approach the same problem.
- CodeKata Blog Dave Thomas, one of the Pragmatic Programmers, maintains this blog which includes over 20 coding exercises/kata.
- TDD As If You Meant It: Go This writeup of an excercise done at the SC 2009 conference demonstrates how to really take small steps.
- TDD As If You Meant It: Tic-Tac-Toe: A similar writeup, this time using Tic-Tac-Toe.
Videos (mostly Ruby):
If you have an extra hour this weekend, pick a problem and go through it in your language of choice. If possible, pair with someone or get feedback on your solution once youre done. Then, perhaps another time, do it again, this time a little bit better.