An Introduction to
    CodeRush Xpress
           Erik Ralston
             BIS BoF
        December 3rd, 2009




1
What is Refactoring?


    Changing internal structure without altering external
    functionality

    Manipulation of ex...
What is CodeRush?


    Visual Studio 2008 Plug-In that adds additional features
    to C# and VB.Net code editor
      So...
Installing CodeRush


    Only works on Visual Studio 2008 (Non-Express Editions)
    Download from DevExpress Website
   ...
Improving Existing Code


    Breakdown, change arguments, extract, or move methods
    Simplify conditional logic
    Con...
Writing New Code


    Implement stub for methods declared on-the-fly
    Convert locals into fields or properties (or bot...
Avoiding Pitfalls


    Don’t wait until the very end to refactor!
    Be sure to assign meaningful names
    Passing unin...
Questions?



8
Thank You!



9
Upcoming SlideShare
Loading in...5
×

Introduction to CodeRush Xpress

1,183

Published on

An introduction to CodeRush Xpress, a free Visual Studio 2008 plug-in for code refactoring and generation.

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
1,183
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
4
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Transcript of "Introduction to CodeRush Xpress"

  1. 1. An Introduction to CodeRush Xpress Erik Ralston BIS BoF December 3rd, 2009 1
  2. 2. What is Refactoring? Changing internal structure without altering external functionality Manipulation of existing text for human benefit Usually to improve Maintenance & Reusability 2
  3. 3. What is CodeRush? Visual Studio 2008 Plug-In that adds additional features to C# and VB.Net code editor Some features vary with language difference Built by DevExpress, maker of DXperience UI Library and application support libraries They also make “Refactor! For ASP.Net” and “Refactor! For C++” Mentioned in the Pluralsight ASP.Net training (August 2009) 3
  4. 4. Installing CodeRush Only works on Visual Studio 2008 (Non-Express Editions) Download from DevExpress Website Run installer Run Visual Studio and start refactoring! 4
  5. 5. Improving Existing Code Breakdown, change arguments, extract, or move methods Simplify conditional logic Convert parts of expressions into variables 5
  6. 6. Writing New Code Implement stub for methods declared on-the-fly Convert locals into fields or properties (or both!) Aggregate functionality into new types Re-organize types across new files 6
  7. 7. Avoiding Pitfalls Don’t wait until the very end to refactor! Be sure to assign meaningful names Passing uninitialized variables by reference CodeRush can’t optimize for reusability Can’t look for repetitious code CodeRush isn’t a replacement for design patterns 7
  8. 8. Questions? 8
  9. 9. Thank You! 9
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×