CodeBetter.Com
CodeBetter.Com
RSS 2.0 via Feedburner
           Do you Twitter? Follow us @CodeBetter

James Kovacs


Becoming a Jedi - Part 3 of N

My third episode of Becoming a Jedi is live. In this episode, I start looking at ReSharper's refactoring capabilities.

Episode Listing

Part 1 of N: Code Browsing streaming download
Part 2 of N: Code Cleanup streaming download
Part 3 of N: Refactoring I streaming download

Streaming requires Silverlight 1.0 or higher. Download is via Microsoft Skydrive.

After finishing the episode, I realized that I committed a huge refactoring faux pas. I neglected to run unit tests after each refactoring. I was feeling cocky and just doing simple refactorings such as renames and similar. When I tried to run the application later, it failed because it could no longer find PetShop.SqlServerDAL.Category, which had been renamed to PetShop.Repositories.CategorySqlRepository. So even on simple refactorings, you need the safety net of a good suite of unit tests. Lesson learnt.


Published Jun 16 2008, 12:11 AM by james.kovacs
Filed under:

Comments

DotNetKicks.com said:

You've been kicked (a good thing) - Trackback from DotNetKicks.com

# June 17, 2008 8:26 AM

SelfishGene said:

Surely you could've come up with a better way to distribute these.

# June 18, 2008 5:46 PM

james.kovacs said:

@SelfishGene - If you've got a suggestion, I'm all ears. My basic criteria were:

#1 - Ease of streaming/download.

#2 - No big bandwidth bill.

If there is something in particular causing you grief, let me know and I'll see if I can fix it. Thanks for watching.

# June 18, 2008 6:03 PM

gOODiDEA.NET said:

.NET Dynamic Compilation How is my C# code converted into machine instructions Becoming a Jedi - Part

# June 22, 2008 8:09 PM

gOODiDEA said:

.NETDynamicCompilationHowismyC#codeconvertedintomachineinstructionsBecomingaJedi-...

# June 22, 2008 8:10 PM

Andrei Butnaru's blog said:

Productivity tools, Resharper

# July 21, 2008 3:52 PM

Leave a Comment

(required)  
(optional)
(required)  

Enter the numbers above:
Add

About james.kovacs

James Kovacs is an independent architect, developer, trainer, and jack-of-all-trades, specializing in agile development using the .NET Framework. He is passionate about helping developers create flexible software using test-driven development (TDD), unit testing, object-relational mapping, dependency injection, refactoring, continuous integration, and related techniques. He is a founding member of the Plumbers @ Work podcast, which is syndicated by MSDN Canada Community Radio. His article, “Debug Leaky Apps: Identify And Prevent Memory Leaks In Managed Code”, appeared in the January 2007 issue of MSDN Magazine. James is a Microsoft Most Valuable Professional (MVP) - Solutions Architect and card-carrying member of ALT.NET, a group of software professionals continually looking for more effective ways to develop applications. He received his Masters degree from Harvard University. Check out Devlicio.us!

Our Sponsors