Blogs

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 Mark Miller (DevExpress)
Bookmark and Share

Comments

 

CESAR F. QüEB said:

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

March 25, 2009 4:26 AM
 

Daniel Hulse said:

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.
More from DevExpress
Live Chat
Have a pre-sales question?
Need assistance with your evaluation?
We are here to help.
Chat is one of the many ways you can contact members of the DevExpress Team. We are available Monday-Friday between 8:30am and 5:00pm Pacific Time.
If you need additional product information, require pre-sales assistance, or want help with your order, write to us at info@devexpress.com or call us at
+1 (818) 844-3383.