Re: Refactoring wishlist
"George" <[email protected]> Thu, 06 Oct 2011 21:37:31 -0000
| Newsgroups | gmane.comp.programming.refactoring |
|---|---|
| Message-ID | <[email protected]> |
Mark, I said: >So here's your challenge: give me the link or admit that you were >giving an overzealous sales pitch. I'd like nothing better than for >you to lay me out on this one and have your product win the day, but >I don't think you can. But you did. I had thought that there would be many cases where I would want to apply each of my refactorings separately, but I worried that I was introducing too many refactorings for a programmer to find them when needed. After seeing what you've done, I agree that "Simplify Expression" was the right way to go. And I can't believe your response time on adding "Reverse Boolean". You have knocked me out. I am down for the count. (And now I'm done with trite boxing metaphores. Next we're going to shoot for the moon.) George --- In [email protected], "Mark Miller" <markm@...> wrote: > > OK, just added Reverse Boolean (thanks George, for encouraging this). Here's > your screenshot of the refactoring's preview hinting: > > > > http://a.yfrog.com/img859/5843/r5a.png > > > > CodeRush customers: I'll get the source to this plug-in up on the community > plug-in site in 24 hours. > > > > - Mark Miller > > DevExpress > > C# MVP > > @MillerMark > > > > From: [email protected] [mailto:[email protected]] On > Behalf Of Mark Miller > Sent: Thursday, September 29, 2011 2:33 PM > To: [email protected] > Subject: RE: [refactoring] Re: Refactoring wishlist > > > > > > Hi George, > > I was just re-reading through your list, and somehow I missed #7 on the > first read - reverse the sense of a Boolean variable. CodeRush does NOT have > this yet, although it's something we've been talking about implementing for > a while. It's a great suggestion. > > - Mark Miller > DevExpress > C# MVP > @MillerMark > > From: [email protected] <mailto:refactoring%40yahoogroups.com> > [mailto:[email protected] <mailto:refactoring%40yahoogroups.com> ] > On > Behalf Of Mark Miller > Sent: Thursday, September 29, 2011 1:11 PM > To: [email protected] <mailto:refactoring%40yahoogroups.com> > Subject: RE: [refactoring] Re: Refactoring wishlist > > > Hi George, > > Ø So here's your challenge: give me the link or admit that you were giving > an overzealous sales pitch. > > We wrapped up "Apply DeMorgan's Law" inside a refactoring called "Simplify > Expression". We did this to make it more accessible to users who had never > heard of DeMorgan. > > We also added logic to find redundancy and simplify math operations that > went beyond considerations of DeMorgan, Quine, and McCluskey. For example, > we can simplify this: > > if (!(a < 5 || a == 5)) > > { > > // > > } > > Into this: > > if (a > 5) > > { > > // > > } > > It's a simple example, but CodeRush can simplify any level of complexity in > an expression. > > CodeRush is still the only refactoring tool I'm aware of with this > refactoring. Simplify Expression has been in the product for five years. > > Here's the link to the documentation: > > http://documentation.devexpress.com/#CodeRushXpress/CustomDocument5851 > > Here's a link to a screenshot I just took with your example code and > CodeRush's simplification. CodeRush's preview hinting shows the change that > will take place to the code before you apply the refactoring. > > http://a.yfrog.com/img739/2884/gvlf.png > > Also, George, I would challenge you to come up with more challenges for > CodeRush. > > We're ready to impress you. J > > - Mark Miller > > DevExpress > > C# MVP > > @MillerMark > Portions of our previous conversation have been removed. ------------------------------------ Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/refactoring/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/refactoring/join (Yahoo! ID required) <*> To change settings via email: [email protected] [email protected] <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/