A Funny Java Flavoured Look at the World

Thursday, May 18, 2006

Smells to Refactoring Cheat Sheet

 
Joshua Kerievsky has put on his a pdf file up for download called "Smell to Refactoring Cheat Sheet" http://industriallogic.com/papers/smellstorefactorings.pdf
 
this is a two page quick reference guide to Refactoring and the code smells you should be looking for.  It's a good sheet to have on your desk or pinned up because you can glance at it quickly just as a reminder.  It wasn't until only recently that I have read articles about refactoring and then joy of joys I found the eclipse refactoring tools which are top banana.
 
The comments on the code smells are quite humorous, check this one
 
"Inappropriate Intimacy: Sometimes classes become far too intimate and spend too much time delving into each others’ private parts. We may not be prudes when it comes to people, but we think our classes should follow strict, puritan rules. Over-intimate classes need to be broken up as lovers were in ancient days. [F 85]"

I found this cheat sheet really interesting, especially as I am fixing a bug in some code which smelling stronger than someone who has just came back from Glastonbury

0 Comments:

Post a Comment

<< Home