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.

 

 

 

Free DevExpress Products - Get Your Copy Today

The following free DevExpress product offers remain available. Should you have any questions about the free offers below, please submit a ticket via the DevExpress Support Center at your convenience. We'll be happy to follow-up.
No Comments

Please login or register to post comments.