Thursday 31 May 2012

A Refactoring Experience.

Often when you are faced with a big refactor, removing a property in a class which is used many places in your code, it seems that the quickest way to go about it, is to simply delete the property and correct all the errors that the compiler finds. This poses a problem however, because you will put all your code in a long state of limbo where you change code, and are not able to to compile and test your changes. If you like me is a bit of a test driven developer, it hurts not to be able to see the green bar for hours. Often these changes also drives other changes, which you might start implementing also, pushing your code even further out in no mans land.

A much better way of going about it is to use the IDE common feature “Usages of”, and then go through the each of the refactorings one by one. Depending on how big they are, you can do build->test at different intervals. even check your code in midway, since it is all building and goes green bar.

5 comments:

Anonymous said...

Howdy! Would you mind if I share your blog with my facebook group?
There's a lot of people that I think would really appreciate your content. Please let me know. Thank you

My web blog Home Staging Minnesota

Anonymous said...

Its like you read my mind! You seem to know a lot about this, like you wrote the book in
it or something. I think that you can do with some pics to drive
the message home a little bit, but other than that, this is great blog.

An excellent read. I'll certainly be back.

Also visit my site: African Mango

Anonymous said...

I'm impressed, I have to admit. Rarely do I come across a blog that's both educative and
interesting, and without a doubt, you've hit the nail on the head. The problem is something which not enough people are speaking intelligently about. I'm very happy I found this during my search for something relating to this.



make money online

Anonymous said...

Hola! I've been following your web site for some time now and finally got the courage to go ahead and give you a shout out from Huffman Texas! Just wanted to tell you keep up the fantastic work!

My site; is home profit system legit

Anonymous said...

Thank you for the auspicious writeup. It in fact was a amusement account
it. Look advanced to far added agreeable from you!
By the way, how can we communicate?


payday loan now