Posts Tagged ‘extract method’

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:

Urinarytone with Cranberry 8 oz. Cystitis, Bladder & Urinary infections. Midwife approved.Urinarytone with Cranberry 8 oz. Cystitis, Bladder & Urinary infections. Midwife approved.100% natural, with no artificial preservatives, Safe for adults and children.

No corn, wheat, sugar, alcohol.
Stops burning when urinatin... Read More >
Microsoft Visual Studio 2008 Professional with MSDN ProfessionalMicrosoft Visual Studio 2008 Professional with MSDN ProfessionalVisual 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 >
Microsoft Visual Studio 2008 ProfessionalMicrosoft Visual Studio 2008 ProfessionalVisual 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 >

If you're new here, you may want to subscribe to the mailing list to get notifications of new post and a virtual tour of past topics. Thanks for visiting!

DotNetNuke Sponsor

 

Most Valuable Blogger
Sponsor