Archive for December 24th, 2008

Extracting Methods

rhesus-monkey I once knew a programmer who had us all fooled into thinking he was the most organized programmer on the planet.  When he left at night, his desk looked like he had never even been to work.  When we did code reviews, his code was nicely formatted, there wasn’t a duplicate line of code anywhere.

Aside from the look of his code, he knew his stuff too.  And this is back in the day when code editors were only slightly better than notepad… at least compared to today’s tools.

When he left and we started maintaining code he had written we found that only the code he had to show us was pretty.  The rest of his code looked like all of our code.

But today, the amount of time it takes to keep your code looking nice is trivial thanks to some macros that Microsoft has built into Visual Studio.  One of those macros is the refactoring macro called, “Extract Method.”

What’s it do?

Read the rest of this entry »

Other Related Items:

Visual Comfort Studio Adjustable Nickle Floor Lamp - 91025ANVisual Comfort Studio Adjustable Nickle Floor Lamp - 91025ANStudio Adjustable Floor Lamp in Antique Nickel Height: 34" - 45" Extension: 13" Backplate: 6" X 9" Finishes: AN, BLK, BZ, CH, HAB, PB, WHT Shade Options: 3 " x 6" x 2" Socket: Dimmer Wattage: 60 T
Microsoft Visual Studio 2008 Professional UpgradeMicrosoft Visual Studio 2008 Professional UpgradeVisual Studio 2008 Professional Edition is a comprehensive set of tools that accelerates the process of turning the developer's vision into reality. V... Read More >
Pro C# 2008 and the .NET 3.5 Platform, Fourth Edition (Windows.Net)Pro C# 2008 and the .NET 3.5 Platform, Fourth Edition (Windows.Net)The first edition of this book was released at the 2001 Tech Ed conference in Atlanta, Georgia. Since that time, this text has been revised, tweaked, ... Read More >
DotNetNuke Sponsor

 

Most Valuable Blogger
Sponsor