DEV Community

Discussion on: How do you practice programming?

Collapse
 
voins profile image
Alexey Voinov

The key to exercises is repetition. This thing is very well known as kata. You can google for it, find some standard katas, but really, anything could be your personal kata. As for me, I have two favorite tasks I use as exercises: 1. writing a new unit testing framework, 2. refactoring very old legacy project I've been working on long time ago.

  1. Writing unit testing framework could be fun, who could ever thought of that. You can try different approaches, different systems, different implementations, combinations of solutions found in existing popular frameworks. Possibilities are endless.

  2. I didn't write this code, I just spent some time supporting it. And honestly, I believe this is the worst code, I've ever been working with. So I always start from the same state, and try different techniques on how to make it better in some reasonable way. I learned a lot doing this.

But you can always try some standard kata: bowling game kata for example. :)