personal web log written by izabeera and dryobates

refactoring coding dojo code smells TDD

Code smells

by dryobates

Refactoring of Tennis game once again! This time was much better :)

This time I have prepared for dojo participants list of code smells. I have used coding horror [1] list enhanced with some resources from wiki [2]

I didn’t include in that list information what tools they should use to refactor as I think it could be to much information most of which won’t help them. But if your curious about different refactorings Martin Fowler has extensive Catalog of Refactorings [3]

List of code smells wasn’t as helpful for participants as I thought. Equipped with experience from last coding dojo they get very well with the same Tennis game problem this time. They had enough time to get rid of all that code that was confusing and enhance it to be more flexible.

Almost everyone agreed that working with code that looks like written by complete beginner is real challenge for someone experienced in programming.

If you like diving in wiki format like I do and want enhance your knowledge about code smells I recommend c2 wiki on code smells [4]. But be warned: Wiki is addictive!

[1]Code smells
[2] wiki code smells
[3]Catalog of Refactorings
[4]C2 Wiki Code Smells
Jakub Stolarski. Software engineer. I work professionally as programmer since 2005. Speeding up software development with Test Driven Development, task automation and optimization for performance are things that focus my mind from my early career up to now. If you ask me for my religion: Python, Vim and FreeBSD are my trinity ;) Email: