What can I say.. I am impressed.. Very impressed. Try it out now – Resharper. Commercial license is only $349.00
What did I achieve? Few small things at the moment, improved “extract this into a method” functionality, suggesting when to use “const” for strings, site-wide analysis for problems, convert method to static. Very cool..
Here’s a list of features
Add parameters easily with Resharper
I was able to take a piece of code inside the function, say AccountsReceivable.GetReferenceNumber(“abc001″) and convert that to a parameter of my helper function just by highlighting it and selecting “introduce parameter”. It then went ahead and updated all references to this function to pass the AccountsReceivable.GetReferenceNumber(“abc001″) as if it was a variable
Create variables to replace common values
Here’s another case. Imagine you have some reference to something like dr["status"].ToString(), you can “Introduce Parameter” and it will ask you if you want to update just that one line, or update ALL references inside that function wtih the new variable name… pretty neat!
Also have you encountered the situation where some variable is declared near the top of a function and then its used somewhere in the middle… and you are stuck wondering whether you can get rid of it or you can modify the code without breaking it ? Well Resharper will allow you to join the declaration with the intiialization, so its re-partnered to its vaue
Easily worth the $350 price tag.
You will get the most bang for your buck in the first month or so anyway, use it to clean up and spiffy your app, and then try not to let it descend back into chaos.
Related Reading:
Tags: Refactoring









