personal web log written by izabeera and dryobates

refactoring coding dojo TDD code smells

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 java.net 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 http://blog.codinghorror.com/code-smells/
[2]Java.net wiki code smells http://users.csc.calpoly.edu/~jdalbey/305/Lectures/SmellsToRefactorings
[3]Catalog of Refactorings http://www.refactoring.com/catalog/
[4]C2 Wiki Code Smells http://c2.com/cgi/wiki?CodeSmell
dryobates
dryobates
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: jakub@stolarscy.com

Archive

Tag cloud