Home > Microsoft .Net Development Tips > C# Development > Refactor this!
Win Development Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

C# DEVELOPMENT

Refactor this!


Ed Tittel
03.11.2005
Rating: --- (out of 5)


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


During a recent journey of discovery through the world of Visual Studio related tools, I came across the subject of this week's tip — a nifty tool that goes by the name of NET Refactor.

A product from an equally nifty company that goes by the name of Know DOT.NET, NET Refactor is an interesting product that offers some great capabilities. But to understand what it does, you first have to understand the concept of refactoring. One way of looking at this topic is as a way or organizing class definitions to streamline and simplify access to objects, methods, and classes within your code. Another way of looking at it is to say that refactoring means applying a set of simple, single-step transformations to code that restructures its innards without altering its external behavior. The drive behind refactoring is to re-organize internal code structure logically and consistently, to make it modular, readable, and easy to maintain. As an added benefit, refactoring often also produces performance improvements (most modest ones) as well. Much of the work of refactoring can be automated, and that's precisely what NET Refactor does.

In fact, the program's developers have put together a tutorial and examples page that lists loads of general articles on refactoring and that also includes a longish list of specific refactorings known to be of value (and supported in NET Refactor as well). These include ways to reduce the size of large, complex methods and event handlers, consolidation of duplicate in-line strings into constants or string variables, renaming method parameters, isolating interfaces to implement multiple classes, and a whole bunch more. The software's refactoring functions include a complexity analyzer, an "extract method" tool, a tool to simplify complex conditional statements, a tool to build an interface for any selected class, and a smart commenting feature.

Though it may seem mysterious or magical, NET Refactor can analyze and reorganize VB.NET or C#.NET code nicely, and produce cleaner, more compact code as a result. The product also provides nice graphic views of project items, and can report on organization and perform an algorithmic analysis of code complexity. It also includes a bevy of renaming and reordering tools, plus a handful of SQL and ADO refactoring tools as well. The company offers a 30-day trial version.


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   



RELATED CONTENT
Visual Basic and Visual Basic .NET
Compose XML more quickly using Visual Basic 9
Virtualization keeps Legacy Apps alive
VB 9 Anonymous Types help create flexible objects
Visual Studio Team System Add-ins: Conchango Scrum for Team System and Scrum Dashboard
Book Excerpt: Sams Teach Yourself Visual Basic 2008 in 24 Hours -- Complete Starter Kit
Check out CodePlex for a ton of interesting .NET projects
Book excerpt: Murach's VB 2008
Book excerpt: Printing in Visual Basic 2005
Visual Basic 2008 and closures
WinForms development using SQL Server 2005 and Visual Basic 2005

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

C# programming language
Inside Visual Studio 2010
Mono 2.0 moves .NET apps to Linux - includes migration analyzer
LINQ beyond queries: Strong-typed refection
Assembly versioning in the .NET Framework 2.0
Book excerpt: Creating graphical output using the .NET Compact Framework
Visual Studio 2008 Learning Guide: C# 3.0
Simonyi firm to address divide between domain experts and developers
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

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
C#  (SearchWinDevelopment.com)
GLib  (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