Mark Miller

Prepping for the 9.1 release of CodeRush and Refactor! Pro

We're all deep in the final stages of prepping for the 9.1 release of CodeRush and Refactor! Pro. That explains the relatively quiet front out here. The jump in version numbers synchronizes with the rest of the product releases here at Dev Express. The 9 corresponds to 2009, and the 1 signifies the first release of the year.

I'm currently working on an plug-in that HTML devs should be excited about, and in it I noticed the following code:

      if (leftSideIsWhiteSpace && rightSideIsWhiteSpace)
        ea.Satisfied = true;  // On an empty line.
      if (!leftSideIsWhiteSpace)
        ea.Satisfied = true;  // Text to the left.

You may have spotted the redundancy here. Fortunately, I have Refactor! Pro. So I can place the caret on the if statement, press the CodeRush/Refactor! key, and choose Combine Conditionals, which gives me this (sans redundancy):

      if (!leftSideIsWhiteSpace || rightSideIsWhiteSpace)
        ea.Satisfied = true; // On an empty line.
      // Text to the left. 

Nice. :-) Now I can manually combine the comments into something more meaningful, like "// Text to the left or on an empty line" and I'm done.

I will be back soon with previews of what's you can expect in 9.1, including some powerful sweet fun code creation and navigation features for HTML developers. And after 9.1 is out I'll return to the Science of Great UX blog series.

 

 

 

Published Mar 24 2009, 05:33 PM by
Bookmark and Share

Comments

CESAR F. QüEB

Really I'm waiting this rekease. Please.. hurry ... :(

March 25, 2009 4:26 AM

Daniel Hulse

You mean it RF! doesn't automatically change the comment as well? Sheez...

Looking forward to the "powerful sweet fun"...!

Dan

March 25, 2009 8:03 AM

About Mark Miller (DevExpress)

Mark Miller is a C# MVP with strong expertise in decoupled design, plug-in architectures, and great UI. Mark is Chief Architect of the IDE Tools division at Developer Express, and is the visionary force behind productivity tools like CodeRush and Refactor!, as well as the DXCore extensibility layer for Visual Studio. Mark is a popular speaker at conferences around the world and has been writing software for over two decades.
LIVE CHAT

Chat is one of the many ways you can contact members of the DevExpress Team.
We are available Monday-Friday between 7:30am and 4:30pm Pacific Time.

If you need additional product information, write to us at info@devexpress.com or call us at +1 (818) 844-3383

FOLLOW US

DevExpress engineers feature-complete Presentation Controls, IDE Productivity Tools, Business Application Frameworks, and Reporting Systems for Visual Studio, along with high-performance HTML JS Mobile Frameworks for developers targeting iOS, Android and Windows Phone. Whether using WPF, ASP.NET, WinForms, HTML5 or Windows 10, DevExpress tools help you build and deliver your best in the shortest time possible.

Copyright © 1998-2017 Developer Express Inc.
All trademarks or registered trademarks are property of their respective owners