Comparing Visual Studio and Eclipse 294
An anonymous reader writes "Getting started with Eclipse can be confusing. New concepts, such as plug-in architecture, workspace-centric project structure, and automatic build can seem counterintuitive at first. Without waxing too philosophical about IDE design, this article presents the main differences between Visual Studio and the Eclipse IDE."
That's not a comparation !! (Score:5, Informative)
Plugins make Eclipse what it is (Score:5, Informative)
The most important thing to me in moving to Eclipse was that it would fully support the Vi command set. There were several different Vi-type plugin options available, but after trying them all I ended up using the only commercial download of the bunch, which was availble for $20 here:
http://satokar.com/viplugin/ [satokar.com]
The only other IDE I've ever found that was acceptable before Eclipse was Visual SlickEdit, which had most of the same features as Eclipse but was very expensive and didn't have the F&OSS plugin community of Eclipse.
Now that I'm into Eclipse, I don't think I'll ever look back!
-Will the Chill
*please insert 10 cents for one additional sig*
Eclipse rules, but the summary != the link. (Score:2, Informative)
Re:Not Apples to Apples (Score:4, Informative)
Re:Intellisense (Score:2, Informative)
Visual Studio has a Refactor menu and can do the following types of things for you:
- offer to fill in signatures of members of interfaces that you have implemented
- offer to provide signatures of methods you wish to override from a base class
- reorder method parameters
- promote local variables to method parameters
- remove method parameters
- rename members
- encapsulate a field to create a property wrapper for it (set, get)
- extract statements from the body of a method to create another method
The intellisense capabilities are extensive: auto-complete, shows help excerpt tool tips, shows signatures of members.
The debugging features are extensive. You can pretty much see and change anything on-the-fly while stepping through your program. List too long to go into
Visual Studio intellisense sometimes fails notation when there is a syntax error above it in the code, not unlike Eclipse does.
Re:How is IBM an unbiased source? (Score:4, Informative)
Re:Eclipse would be awesome if.. (Score:3, Informative)
Re:I beleive the technical term is (Score:5, Informative)
(Oops -- you mean VS supports extensions? But TFA says that's unique to Eclipse!)
Re:That's not a comparation !! (Score:2, Informative)
Re:Eclipse would be awesome if...it was compiled? (Score:2, Informative)
http://sourceware.org/eclipse/ [sourceware.org]
However I do find the autocomplete features quickly grind to a halt whilst using APIs with large numbers of methods such as jogl.
I hope Ecipse gets better and better because it really is an excellent IDE, and at the moment the only thing holding it back is the performance issue.
Re:Eclipse would be awesome if.. (Score:2, Informative)
On a 4 GB RAM server, we can smoothly run 8 instances of eclipse + 8 instances of Xvnc that the developers access remotely to work in their development environment, this is on linux. Are you on windows ? Could there be issues with your environment that impact performances when running eclipse ?
I also run 1 eclipse instance quite smoothly on my IBM thinkpad 1GB RAM and windows XP.
Re:Intellisense (Score:5, Informative)
It also seems much more of a pain to open an eclipse project on a different machine (at least with the Perforce plugin) than with Visual Studio (I just recently had to have someone else set up one of my Eclipse projects on their new machine, and we got into some sort of recursive look where Eclipse ended up creating subdirectories until it hit an NTFS limit for directory depth (which was a royal pain to clean up -- XP's fault, but still).
I think that much of it is preference, but each can (and should) learn from the other.
I'm anxious to see how X-Code (current and "leopard" release) compare... I've just started using a Mac as my primary development machine (and thanks to Parallels, I can run VS for existing dotnet and C++ development) as well as Eclipse on the Mac. I have not yet figured out how to begin integrating our existing Unix build scripts into X-Code to use it...
Re:Intellisense (Score:5, Informative)
What version of Visual Studio are you comparing against? Visual Studio 2005 (which is the basis for the free Express [microsoft.com] versions, so you can try it out without risking any cash) has all of the features you claim are lacking. It's maybe not as automatic (VS2k5 won't automatically stub a method for you unless you tell it to do so), but IMHO that's a good thing -- I don't want the IDE second-guessing what I'm doing.
Perhaps you were using Visual Studio for C++ code? It's been a while since I've done any C++, having focused almost exclusively on C# for the last 5 years, but with C# the IDE will catch syntax errors, auto-complete for you if you wish (use ctrl+space to bring up intellisense), stub out methods and interface implementations (ctrl+F10 to open the SmartTag-like dropdown), allow you to easily refactor code into methods or wrap variables into Properties, declare "using" tags if you reference something from an assembly in the project references without declaring its namespace (you can alternatively tell it to use the fully-qualifed namespace if you don't want to add it to your "using" list), etc. I would assume that most of the functionality also exists for C++ projects, but I haven't verified that. The functionality is all there (at least for .NET languages), in the box, without any extra plugins needed, and Visual Studio is lightweight enough that I can run 4-5 instances on a 2 year old laptop with 2GB RAM without any issues at all. VS is also pluggable like Eclipse, so feel free to extend it as you wish.
It's been a while since I tried using Eclipse, mostly because I haven't done any Java work since graduating from college back in 2000. When I did last check it out (probably 2-3 years ago) it was horribly obtuse and bloated. I'm sure things have gotten better over the years, and if I had to start working with Java Eclipse would be my first choice of IDE, but in a Windows C++/C# world I'll choose Visual Studio 2005 every single time. (I'd choose Visual Studio 2008, but I was burned by the VS2k5/.NET 2.0 beta and am now wary of beta versions of Visual Studio -- I'll switch when it ships.)
Refactoring (Score:3, Informative)
My switch from VC++ to Eclipse (Score:5, Informative)
- There is SVN integration, task integration with Mylyn which can help you focus on only one task at a time, etc. - stuff you simply can't do in VC++ or, if you can, not without paying a lot of money
- The ability to compile one file on each CPU is, laughably, apparently worth $5,000 to Microsoft. Even then, I've heard it doesn't work properly
- I can easily make automated compile/test scripts thanks to switching to MinGW from VC++, and run them automatically on a Linux server which will notify me if a build goes awry
- EASILY extensible. I can compile every bit of the C++ toolset in about 30 seconds, since it is written in Java. If your machine can't run it, you deserve a better machine anyway to soothe compile times...
- The intellisense in both are pretty much comparable with the Europa release.
- If I decide to switch to Linux, all my hotkeys, knowledge, and features are still available.
I could go on and on, but those are the main reasons.
Re:I keep trying to like eclipse (Score:5, Informative)
Its a 'click here and install' sort of thing. Both for windows and OSX.
Re:Eclipse would be awesome if...it was compiled? (Score:5, Informative)
Re:Eclipse would be awesome if.. (Score:3, Informative)
The version of java you use to run it seems to make big different btw -- I used Sun's java 6/1.6/whatever, but earlier I accidentally tried to run it using GCJ (the java version of gcc), and that was completely unusable, mostly because my system tried to swap itself to death.
Re:Down With IDEs! (Score:2, Informative)
Ummm, are you on crack? Sorry, but why on earth would you NOT want an IDE? It saves tons of time, prevents easy mistakes, helps you debug your code, helps you keep things organized and on topic, and can promote good habits (for example, assuming "well, you're making a new class--let me set up a unit test outline for you"). What's not to love?
Or do you write all your code in "edit" because visual tools like vi or emacs are for babies?
Re:I've enjoyed both (Score:2, Informative)
I think the key here is that it depends on what you're doing. If you're doing small-time ASP.NET work, smaller .NET apps, or even writing games, the Express [microsoft.com] versions of Visual Studio (including XNA Game Studio) are quite nice and free. If you're doing enterprisey work, you'll probably want the full Architect edition and probably get an MSDN subscription as well. If you just want to do an ASP.NET website with a SQL Server backend, spend your money on SQL Server 2005 (or don't spend your money yet and use SQL Server Express to build your proof of concept) and use the free Visual Web Developer Express [microsoft.com].
Re:I beleive the technical term is (Score:3, Informative)
Re:I beleive the technical term is (Score:5, Informative)
Re:Refactoring (Score:2, Informative)
Re:Eclipse would be awesome if.. (Score:3, Informative)
That's odd... it works fine for me on a 1GB system with a single celeron processor. Yes, it eats a lot of memory (I tend to find about 300MB, compared with about 100MB for VS), but if it's all you're doing with a box I don't see any reason you'd need more than 1GB for it.
Re:Eclipse would be awesome if.. (Score:3, Informative)
Say what? Examining an average project in my workspace, I have 4.2K of eclipse settings files, 55K of source files and 72K of compiled binaries. This doesn't seem unreasonable to me, and if 4.2K of extra data is taking "minutes" to copy to your flash drive, you probably need a better flash drive.
Re:One Big Difference: Cross-Platform (Score:3, Informative)
Not wanting to rain on your parade or anything but just because a platform has Java on it doesn't mean that it will run Eclipse. Eclipse uses SWT which uses JNI calls to the underlying window manager - this JNI code needs to be ported to the OS before you can run Eclipse.
You can still run Eclipse on far more platforms than VS...
Re:Eclipse would be awesome if.. (Score:3, Informative)
Visual studio is ok (Score:2, Informative)
btw, once you get used to it, you cannot live without Alt-Ins, (vs.net) ctrl-click and ctrl-shift-alt-n
Re:Intellisense (Score:1, Informative)
For example Eclipse will prefer not to offer
int aNumber = myClass.getSomeString();
bit Visual Studio will offer that, and also offers completely bonkers things like keywords.
int aNumber = case??
Eclipse's refactoring beats Visual Studio hands down.
The one advantage of Visual Studio is its Visual Design, but I've found that more a cost on anything non-trivial. The time saved drawing things visually is lost again and again in maintenance.
I believe the technical term is 'obsolete' (Score:3, Informative)
@WebService()
public class WebServiceAPI {
@WebMethod
public String callSomeAppFunction(@WebParam(name='param1') final String param1,
@WebParam(name='param2') final String param2) {
return someAppFunction(param1, param2);
}
}
Oh, and to make that an XML-RPC API, just add the line:
@SOAPBinding(style=Style.RPC, use=Use.LITERAL, parameterStyle=ParameterStyle.WRAPPED)
right after the "@WebService" annotation.
Re:Eclipse for OCaml? (Score:1, Informative)
OCaml : http://eclipsefp.sourceforge.net/ocaml/ [sourceforge.net] or http://sourceforge.net/projects/ocaml-eclipse [sourceforge.net]
Granted, I haven't tried it, but then I do mostly Java/C/C++/Objective-C work.