News for hackers. Stuff that matters.
Re:Unix as IDE by gnaritas on Wednesday February 15, 2012 @10:52AM (#3594665)
That's not at all equivalent.
Re:Unix as IDE by mjdwitt on Wednesday February 15, 2012 @11:05AM (#3594733)
How so? I haven't used VS since a couple of versions ago and never got to know it very well, so I based my above comment on the OPs description; if there's more to the feature than I could easily be wrong.
Re:Unix as IDE by gnaritas on Wednesday February 15, 2012 @11:15AM (#3594782)
Global search and replace casts a wide net, makes tons of mistakes, requires you to inspect every change to ensure it was correct; automated refactorings don't make any mistakes no matter the size of the code base. These two things are vastly different.
Re:Unix as IDE by philwelch on Wednesday February 15, 2012 @12:46PM (#3595225)
You don't review automated refactorings?
Re:Unix as IDE by phpnode on Wednesday February 15, 2012 @01:29PM (#3595422)
Actually in jetbrains IDEs you preview your automated refactoring, before it happens. It will show you which files will be affected and how, and then you can choose whether to exclude specific instances or not.

Code review happens anyway, automated refactor or not

Re:Unix as IDE by gnaritas on Wednesday February 15, 2012 @04:26PM (#3596144)
You certainly can; however, you'll stop after a while when you realize it actually works.
Re:Unix as IDE by arethuza on Wednesday February 15, 2012 @11:14AM (#3594776)
The vim command is doing a search and replace over all text - Rename in Visual Studio will restrict the change to class/method/.... name definitions and calls to them.
Re:Unix as IDE by mjdwitt on Wednesday February 15, 2012 @11:24AM (#3594837)
Ah, so instead of having to hand-roll your own really complex regex that would limit the scope every time, VS automatically limits the scope of the renaming for you. That is pretty nice.
Re:Unix as IDE by bronson on Wednesday February 15, 2012 @11:56AM (#3594996)
It isn't about limiting scope, it's about parsing and understanding the language. A refactor can change every file in your project (for example, renaming a global variable named 'i').

And, yes, it is very nice. Eclipse comes close with Java but, last I tried Vim and Emacs refactoring plugins, they were nowhere near as good or even very discoverable/usable).

Re:Unix as IDE by henrikschroder on Thursday February 16, 2012 @05:31AM (#3598097)
No, you operate on different levels. A regex replace works on the text of your source files, a refactoring rename in Visual Studio or Eclipse works on the symbol.