Re: Tools for C/C++

Dave Rooney <[email protected]> Tue, 21 Sep 2010 10:53:37 -0400
Newsgroups gmane.comp.programming.refactoring
Organization Mayford Technologies
Message-ID <[email protected]>
  Cool - thanks for the list.  I'm intrigued by the VIM-Inside-Eclipse 
idea - I'll look into that.  With regards to SlickEdit, I'm not about to 
attempt to get all of the developers to standardize on a single editor.  
Curing cancer would be easier. (Note the lack of smiley)

I'm trying to get them to change from writing 500+ line functions with 
no microtests.  I'm trying to help them deal with the fear that 
extracting a 10 line function and writing a couple of simple tests for 
it is virtually risk-free.

In essence, I don't believe the editor is the most pressing problem.  I 
would prefer that the developers learn what needs to the changed and how 
to change it manually anyway.  Having automated tools to assist would be 
helpful, but having developers who know how to write clean and fresh 
smelling code would be much better.
-- 
Dave Rooney
Westboro Systems
Web: http://www.WestboroSystems.com
Blog: http://practicalagility.blogspot.com
Twitter: daverooneyca


On 21/09/2010 10:32 AM, Kaleb Pederson wrote:
> On Tuesday, September 21, 2010 06:47:41 am you wrote:
>>    Hi Mike,
>>
>> Yes, it does.  I'm using it right now to set up for a Code Smells&
>> Refactoring demo later today.
>>
>> My issue is that not a single developer at this client uses Eclipse.
>> Have you ever tried to tell 200+ developers to change their code editor? :)
> I'm a Vim user with a penchant for refactoring :) ... and sadly, the two don't mix very well. Here are a few options:
>
> 1) Eclim (http://eclim.org/) basically takes Eclipse, makes it headless, and then uses Vim to access its functionality.  The features look fairly impressive, but I've never tried it myself. It looks, however, like it makes you learn new keystrokes.
>
> 2) vimplugin (http://sourceforge.net/projects/vimplugin/) is a nice way to embed gvim into Eclipse. However, the last titme I tried I couldn't find any way to do refactoring. There's only UI-level integration but no sharing of knowledge so the refactoring engine doesn't know where the cursor is nor is there a way to call out to the refactoring functionality.
>
> 3) vwrapper (http://vrapper.sourceforge.net/home/) provides vim-like editing in Eclipse. I just found this today and don't know anything about it although it seems well-liked in SO (http://stackoverflow.com/questions/1766067/what-is-the-most-useable-vi-vim-plugin-for-eclipse).
>
> 4) Standard Eclipse, with an external editor - It's easy to configure Eclipse to use an external editor (typically gvim) that can be used to edit files.  Then you spend most of the time in Vim but do refactorings in Eclipse.  This is how I typically use it. A couple of things I don't like about it -- Eclipse remembers the last editor, so I would have to tell vim to use the system editor, do the refactoring, and then remember to Eclipse to use vim again, or it would popup in the system editor next time. I suppose that's not more than slightly annoying.
>
> Here's the script that I use to start gvim as an external editor:
>
> #!/bin/sh
> gvim --servername eclipse --remote-silent "$@"
>
> An alternative:
>
> 5) SlickEdit - SlickEdit provides more refactorings than are available in Eclipse and provides vim-like functionality.  SlickEdit had no problem understanding my basic vim commands, but anytime I started doing something fairly complex (say, a mid-level vim user), it failed.  There were also vim keystrokes that SlickEdit had remapped (and documented accordingly) that wouldn't work. Note however that my experience is now two years old, so perhaps the newer version does better.  I made an extensive list of complaints and bug reports in my trial use at that time -- if they have been addressed in newer versions, it may be much better. However, it's commercial and will cost some money.
>



------------------------------------

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/