Home > Microsoft .Net Development Tips > C# Development > After migration comes refactoring
Win Development Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

C# DEVELOPMENT

After migration comes refactoring


Ed Tittel, Contributor
11.01.2006
Rating: --- (out of 5)


Office Development Channel
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


Those who are tasked with keeping up or moving away from Visual Basic 6 code already know that Microsoft broke a lot of functionality when it moved up to Visual Basic .NET and into the Visual Studio environment. Those same folks have probably wrestled with the Migration Wizard to try to move as much of their code bases as possible from the old world to the new, with varying degrees of success. For the code that resists the use of this sometimes helpful, sometimes frustrating Wizard, the notion of refactoring will probably come into play.

According to the experts, refactoring means improving code that's already been written by changing its internal structure without changing its external behavior. In some important ways, this also ends up being a good description of the kinds of efforts involved in moving a pre-.NET code base into the .NET world and onto the corresponding .NET Framework.

Microsoft appears to agree with this analysis, to the extent that a search on MSDN for refactoring turns up numerous interesting resources, including multiple articles on the subject as well as multiple collections of code snippets and some interesting tools. Visual C# goes so far as to include a Refactoring menu entry, which is itself the subject of a couple of interesting articles: Refactoring and Refactoring C# Code Using Visual Studio 2005. Be sure to check out the tools listed in the Refactoring category while you're at it as well.
More on refactoring
Revisiting VB refactoring again 

JetBrains takes on refactoring for 2005

The VS 2005 article makes an interesting exploration of refactoring support available in Visual Studio 2005, including the aforementioned Refactoring menu, as well as related keyboard shortcuts, various SmartTags and context-sensitive mouse right-clicks inside the environment. Those interested in making the most of their code investments will find this intriguing, but those who must try to move older VB or C code from pre-.NET implementations into the .NET world will find this both fascinating and valuable. For a less MS-centric view of this phenomenon, you'll also find some good general books on this subject next.

Refactoring Resources

Looking at the books available on this subject, it looks like the same editorial gang that put the whole Design Patterns thing together in the 90s, has a total lock on refactoring as well. Interested readers will find one or more of the following titles interesting if they want more details on refactoring.

  • Refactoring: Improving the Design of Existing Code by Martin Fowler, et al, Addison-Wesley Professional, June 28, 1999, ISBN: 0201485672.
  • Refactoring to Patterns by Joshua Kerievsky, Addison-Wesley Professional, August 5, 2004, ISBN: 0321213351.
  • Refactoring Workbook by William C. Wake, Addison-Wesley Professional, August 22, 2003, ISBN: 0231109295.

Ed Tittel is a writer and trainer whose interests include XML and development topics, along with IT Certification and information security. E-mail etittel@techtarget.com with comments, questions, or suggested topics or tools to review. Cool tools rule!

Rate this Tip
To rate tips, you must be a member of SearchWinDevelopment.com.
Register now to start rating these tips. Log in if you are already a member.




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google



RELATED CONTENT
.NET Developer
How to speed up Visual Studio 2008's slow WPF designer
How to list fonts in WPF using markup extensions and data templates
How to convince management to buy Microsoft Visual Studio 2008
Microsoft webcast series previews new Visual Studio 2010 features
New features in Windows 7 bring new UI considerations for developers
User Account Control (UAC): How to develop code for standard users
Introduction to Vista's user account control (UAC) for developers
Visual Studio 2008 code metrics tools will help keep code clean
Downloadable MSDN library released for VS 2008 SP 1
Widgetbox provides good example of how to use Facebook Developer Toolkit

C# Development
Let Microsoft StyleCop tame your wild C#
Picking a .NET smart client communications technology
LINQ beyond queries: Strong-typed refection
Book excerpt: An introduction to DSL tools
Assembly versioning in the .NET Framework 2.0
Book excerpt: Creating graphical output using the .NET Compact Framework
On Extension Methods in C# and .NET Framework 3.5
Generate RSA public and private keys, export to XML
Book excerpt: Upgrading to Visual Studio 2005
Learning .NET: Tips for getting started with .NET development

.NET Framework 2.0 and Visual Studio 2005 development
Mono 2.0 moves .NET apps to Linux - includes migration analyzer
Using the Visual Studio 2005 DataSet Designer to build a data access layer
SCM Visual Studio plug-in offers updated interface
Assembly versioning in the .NET Framework 2.0
SearchVB.com's Podcast Page
Visual Studio 2008 Learning Guide: Multi-targeting
On managing a .NET Framework 1.x migration
Case Study: IdeaBlade DevForce object mapping
Book excerpt: Printing in Visual Basic 2005
CodeGear RAD Studio now supports .NET 2.0

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
IronRuby  (SearchWinDevelopment.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



Database Programming Solutions - .NET XML, Visual Studio LINQ, ORM .NET
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2000 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts