in
Forums
Blogs
Files
Devexpress.Com
Client Center
Support Center
DevExpress Channel

Sam Gentile switches to <censored>

Last post 8/10/2007 1:52 PM by Mark Miller (Developer Express). 25 replies.
Page 2 of 2 (26 items) < Previous 1 2
Sort Posts:
Previous Next
  • 6/22/2007 1:36 PM In reply to

    Re: Sam Gentile switches to <censored>

    > I downloaded the ReSharper 3.0 beta and used it with CodeRush for a while

    is there something to pay special attention to when running both at the same
    time?

    regards, Robert
  • 6/22/2007 1:38 PM In reply to

    Re: Sam Gentile switches to <censored>

    > I'm using both and I pray that I'm never forced to choose.

    any special settings necessary to use both at the same time?

    regards, Robert
  • 6/22/2007 4:57 PM In reply to

    Re: Sam Gentile switches to <censored>

    Hello Bob,

    > Mark Watts:
    > 1. Typing a class reference will pop a small selection dialog that
    > offers
    > to add a namespace to the uses clause if the namespace has not been
    > "used"
    > or imported. This was/is REALLY nice because I can just be typeing
    > away
    > for example. "FileStream" and if System.IO is not present it, it shows
    > the
    > hint, ctrl-enter selects it and adds it to the uses clause and I keep
    > on
    > typing code.
    > Actually, you get the same thing with R!. If you type a class name and
    > it doesn't turn blue then VS doesn't know about it. If you hit the
    > refactor key Ctrl-~ then it will add the using/import statement for
    > you. Yes, it is not as in your face as R# but pretty similar. R!
    > doesn't show you a refactoring/fix is availble for a line or object
    > unless you are currently focused on it.

    Really? I did not know that, even after using the product for years. But
    I think you make my point. R# helps me out by telling me as I type what
    needs to be done. CR depends on me discovering that myself. (Or just knowing
    it).

    -mark
  • 6/24/2007 4:18 PM In reply to

    Re: Sam Gentile switches to <censored>

     Hi

    Jeff Donnici wrote: 

    What specific features are there in Resharper that better "enable"
    > TDD/Agile development?

    Things I like about Resharper, and want to see in Code Rush/Refactor Pro,

    in Resharper you can write code like

    1.  new MyObject();  which is expanded into MyObject variableName = new MyObject();

    2. if MyObject is not currently defined as a class, you can automatically define in in the correct project, with namespaces etc

    3. having defined IMyInterface myObject = new MyObject(); you can type myObject().function(a,b); and Resharper will allow you to add the method signatures to both the interface and the class.

    4. you can auto define a variable from a return type of a method 

    5 Errors in the code are highlighted in real time, (like VB) which is great if you are using NAnt or MSBuild scripts to build and run the project.

    The list of things I like about Code Rush is way too long to put here, but when using Resharper I miss the outlining that CodeRush supplies, and its non intrusive nature, CodeRush/RefactorPro are very passive, they will only do things when asked, and there are no dialog box's, the downside of this is that finding features is harder, and I feel that i am not getting the best out of the product that I can.  Resharper on the other had is very active, and pushes ideas forward, which makes feature finding easier, and the user feels that they are using the product to the full.  I do prefer the Code Rush way of doing things, as I know what I am coding, but being able to create the interface and method stubs etc from within the test code would be great. 

    As for pointing out errors before compile, that requires some sort of background checking, which I am sure Mark and the Gang could do, for me this its top feature, but I am not sure if it wouldn't slow down VS too much. 

    I have written a small Refactor plug in that does item one in the above list (badly), I chose Refactor because I like the menu, and although its not really a refactor, tyeing the code, and hitting the refactor key to generate the definition, or stub seamed the most natural way to go, and I am planning to have a go at the others, but would love to see these appear as code rush features.  The more time I can spend in my Test code creating stubs, for things the better.                                                           

    Filed under: , ,
  • 6/26/2007 2:11 PM In reply to

    Re: Sam Gentile switches to <censored>

    Hi Duncan,

    No need to write a plugin for Item #1 on your list -- it can be done with the 'nX' templates in CR... if "MyObject" is on the clipboard, you'd use n\ (or maybe it's n/, I forget) and get:

    MyObject [varName] = new MyObject();

    and [varName] is a text field with focus so you can change the name. You can quickly define these for your commonly used types by right-clicking any of them in the editor, so then you'll have the type available with all the n, v (declares a variable but doesn't create a new instance), f (field), m (method), and p (property/field) templates. That said, if "MyObject" isn't on the clipboard, I usually just use 'no', which does the above with the base object type, but the type itself is a text field:

    [object] [varName] = new [object]();

    So now you can move from one text field to the other with Tab and changing the type/class for [object] changes it in both spots. 

    I'm not sure about #2 or #3 in your list... if they're supported in CodeRush, then I'm not familiar with them (but would like to hear from someone who knows for sure).  They sound cool, so if they're not available, they're good enhancement requests.

    I'm not sure I follow #4... do you mean something like this:

    private SomeCustomType GetSomething() {

     // some keyboard shortcut here will auto-declare a variable of "SomeCustomeType" for me?

     

    Anyway, thanks for a specific list...  those are interesting features to learn about.

     Jeff
     

     

     

  • 6/26/2007 3:33 PM In reply to

    Re: Sam Gentile switches to <censored>

    No, I think he meant this

    http://community.devexpress.com/forums/t/55426.aspx 

    which I also would like to see in CR.

    Jeff Donnici:

    I'm not sure I follow #4... do you mean something like this:

    private SomeCustomType GetSomething() {

     // some keyboard shortcut here will auto-declare a variable of "SomeCustomeType" for me?

     

  • 7/27/2007 3:30 PM In reply to

    Re: Sam Gentile switches to <censored>

    Apologies for jumping in late...
     
    > CR is very good (none-better IMO) at letting
    > me tell it how/what to do stuff, but IMO is
    > weak in telling me when things need to be done.
     
    This seems to be the key distinction between Resharper and CodeRush.
     
    We need to do a much better job of showing opportunities for improving your code.
     
    We intend to address this issue with a major CodeRush update happening sometime after 2.5 (which we're prepping for release now, expected early next week).
     
    In the coming weeks as we approach that major update, we will announce availability of new functionality here in the newsgroup, so early adopters can try it (most likely through a daily build or perhaps a beta program) and let us know how we're doing.
     
    Best regards,
     
    Mark Miller - Developer Express
    C# MVP
    "Mark Watts" wrote in message news:186573@community.devexpress.com...
    Hello Julio,

    > Mark, correct me if I'm wrong, your 1. feature isn't included in VS
    > 2005? You can type your class and press Shift+Alt+F10 and VS will give
    > your the choices of adding the namespace to the using or prefix the
    > class. I guess that's why is not included in CR.

    I guess the key think is that R# TELLS me that I need to add it without me
    doing anything at all while VS (CR) expects me to know that I need to add it.

    > The interesting thing here for me is also, why is happening that
    > coupling between Resharper and the Agility and TDD stuff, what is that
    > agile stuff that you can do in Resharper that you can't in CR...

    I haven't used R# for very long and honestly I don't like much of its UI.
    I MUCH prefer CR (been a CR user since the Raptor days in Delphi) but based
    on my experience so far I don't think it has so much the TDD experience itself
    but with the fact that R# does so much to tell me up front what is wrong
    with my code or what needs to be changed. If a namespace needs to be imported/used
    it tells me. If a method is missing (very TDD to write the test using a class/method
    that does not exist, then implement the class/method) it tells me and offers
    to implement. That kind of thing.

    CR is very good (none-better IMO) at letting me tell it how/what to do stuff,
    but IMO is weak in telling me when things need to be done.

    -mark

    http://community.devexpress.com//forums/p/55104/186573.aspx#186573

  • 7/27/2007 3:38 PM In reply to

    Re: Sam Gentile switches to <censored>

    Hi Duncan,
     
    Apologies for jumping in so late...
     
    Thanks for your post.
     
    Items 2-5 are expected in the next major update to CodeRush, happening after the 2.5 release (which we're prepping now). As soon as we have early experience for these features working, I'll let you know.
     
    As Jeff already pointed out, item #1 is already more efficiently handled through the no template.
     
    Best regards,
     
    Mark Miller - Developer Express
    C# MVP
    "Duncan Butler" wrote in message news:186805@community.devexpress.com...

     Hi

    Jeff Donnici wrote: 

    What specific features are there in Resharper that better "enable"
    > TDD/Agile development?

    Things I like about Resharper, and want to see in Code Rush/Refactor Pro,

    in Resharper you can write code like

    1.  new MyObject();  which is expanded into MyObject variableName = new MyObject();

    2. if MyObject is not currently defined as a class, you can automatically define in in the correct project, with namespaces etc

    3. having defined IMyInterface myObject = new MyObject(); you can type myObject().function(a,b); and Resharper will allow you to add the method signatures to both the interface and the class.

    4. you can auto define a variable from a return type of a method 

    5 Errors in the code are highlighted in real time, (like VB) which is great if you are using NAnt or MSBuild scripts to build and run the project.

    The list of things I like about Code Rush is way too long to put here, but when using Resharper I miss the outlining that CodeRush supplies, and its non intrusive nature, CodeRush/RefactorPro are very passive, they will only do things when asked, and there are no dialog box's, the downside of this is that finding features is harder, and I feel that i am not getting the best out of the product that I can.  Resharper on the other had is very active, and pushes ideas forward, which makes feature finding easier, and the user feels that they are using the product to the full.  I do prefer the Code Rush way of doing things, as I know what I am coding, but being able to create the interface and method stubs etc from within the test code would be great. 

    As for pointing out errors before compile, that requires some sort of background checking, which I am sure Mark and the Gang could do, for me this its top feature, but I am not sure if it wouldn't slow down VS too much. 

    I have written a small Refactor plug in that does item one in the above list (badly), I chose Refactor because I like the menu, and although its not really a refactor, tyeing the code, and hitting the refactor key to generate the definition, or stub seamed the most natural way to go, and I am planning to have a go at the others, but would love to see these appear as code rush features.  The more time I can spend in my Test code creating stubs, for things the better.                                                           



    http://community.devexpress.com//forums/p/55104/186805.aspx#186805

  • 7/31/2007 9:22 PM In reply to

    Re: Sam Gentile switches to <censored>

    Thanks Mark, eagerly waiting for those to be implemented. Coderush all the way.

  • 8/10/2007 5:04 AM In reply to

    Re: Sam Gentile switches to <censored>

    Sorry for being so late in replying,

     thanks to all for all the tips, there is so much of code rush I don't use effectively, there is proberbly a book there somewhere!

    I have just got the 2.5 version, and like the new refactoring, but Mark I am rearly chomping at the bit to get the next version, I saw you post talking about code smells, so it sounds like you are taking CR to the next level!

    A beta or nightly build would be great, I will be looking out for that.

     

  • 8/10/2007 1:52 PM In reply to

    Re: Sam Gentile switches to <censored>

    Hi Duncan,
     
    I'll post in these newsgroups when we have something you can work with.

    Best regards,
     
    Mark Miller - Developer Express
    C# MVP
    "Duncan Butler" wrote in message news:191077@community.devexpress.com...

    Sorry for being so late in replying,

     thanks to all for all the tips, there is so much of code rush I don't use effectively, there is proberbly a book there somewhere!

    I have just got the 2.5 version, and like the new refactoring, but Mark I am rearly chomping at the bit to get the next version, I saw you post talking about code smells, so it sounds like you are taking CR to the next level!

    A beta or nightly build would be great, I will be looking out for that.

     



    http://community.devexpress.com//forums/p/55104/191077.aspx#191077

Page 2 of 2 (26 items) < Previous 1 2
Copyright © 1998-2008 Developer Express Inc.
ALL RIGHTS RESERVED