tags:

views:

268

answers:

16
+4  Q: 

Why use an IDE?

This may be too opinionated, but what I'm trying to understand why some companies mandate the use of an IDE. In college all I used was vim, although on occasion I used netbeans for use with Java. Netbeans was nice because it did code completion and had some nice templates for configuration of some the stranger services I tried.

Now that my friends are working at big companies, they are telling me that they are required to use eclipse or visual studio, but no one can seem to give a good reason why.

Can someone explain to me why companies force their developers into restricted development environments?

+1  A: 

Sufficiently bad developers are greatly assisted by the adoption of an appropriately-configured IDE. It takes a lot of extra time to help each snowflake through his own custom development environment; if somebody doesn't have the chops to maintain their own dev environment independently, it gets very expensive to support them.

Corporate IT shops are very bad at telling the difference between "sufficiently bad" and "sufficiently good" developers. So they just make everybody do the same thing.

Disclaimer: I use Eclipse and love it.

Jim Kiley
This is easily solved by having a standard environment, but letting people (not quietly, not hiddenly) use and configure/use their own IDE if they want to...
Rodrigo Gama
+5  A: 

Because companies standardize on tools, as well as platforms--if your choice of tools is in conflict with their standards then you can either object, silently use your tool, or use the required tool.

All three are valid; provided your alternative doesn't cause other team-members issues, and provided that you have a valid argument to make (not just whining).

For example: I develop in Visual Studio 2008 as required by work, but use VS2010 whenever possible. Solutions/Projects saved in 2010 can't be opened in 2008 without some manual finagling--so I can't use the tool of my choice because it would cause friction for other developers. We also are required to produce code according to documented standards which are enforced by Resharper and StyleCop--if I switched to a different IDE I would have more difficulty in ensuring the code I produced was up to our standards.

STW
Check out this tool for switching solution/project versions from 2008 to 2010 and vice versa. I use it all the time so I can use VS 2010 day to day. The only caveat I have come across is when you have to add/remove files from the solution, better to use 2008 to do that. I usually just revert all solution/project files before checking in, and then use the tool to bump them to 2010 again. Here is the link: http://stevedunns.blogspot.com/2010/02/tool-to-switch-project-files-between.html
Nate Pinchot
+2  A: 

Theoretically, it would decrease the amount of training needed to get an unexperienced developer to deal with the problems of a particular IDE if all the team uses that one tool.

Anyway, most of the top companies don't force developers to use some specific IDE for now...

I agree with this last way of thinking: You don't need your team to master one particular tool, having team knowledge in many will improve your likelyhood to know better ways to solve a particular roblems.

Rodrigo Gama
+1  A: 

Same reason we use a hammer to nail things instead of rocks. It's a better tool.

Now if you are asking why you are forced to use a specific IDE over another, well that's a different topic.

A place that uses .NET will use Visual Studio 99% of the time, at least that's what I've seen. And I haven't found anything out there that is better than Visual Studio for writing .NET applications.

Jack Marchetti
+2  A: 

For me, I use Visual Studio with ReSharper. I cannot be nearly as productive (in .Net) without it. At least, nobody has ever shown me a way to be more productive... Vim, that is great. You can run Vim inside of Visual Studio + R# and get all the niceties that the IDE provides, like code navigation, code completion and refactoring.

Brian Genisio
ReSharper is written by JetBrains, the same folks who give us IntelliJ.
duffymo
A: 

Features like these aren't available in vim:

  1. Refactoring
  2. Integrated debuggers
  3. Knowing your code base as an integrated whole (e.g., change a Java class name; have the change reflected in a Spring XML configuration)
  4. Being able to run an app server right inside the IDE so you can deploy and debug your code.

Those are the reasons I choose IntelliJ. I could go back to sticks and bones, but I'd be a lot less productive.

duffymo
Vim has code completion. I have used vim's auto completion when doing C and Java programming
So if you were using Spring JARs in your code, it would be able to help you with those as easily as it did JDK packages? IntelliJ does it with every JAR I bring into my project. It can also attach to source code so it's readable when I step through with the debugger. Can VI do that?
duffymo
Vim can use 'omnicomplete', it's code completion equivalent, which is (arguably) better than conventional IDE code completion. Intellisense can be also hacked into Vim to work for some languages (C#, Java).
buru
A: 

http://xkcd.com/378/

Real programmers use the best tools available to get the job done. Some companies have licenses for tools but there's nothing saying you can't license/use another IDE and then just have the other IDE open to copy/paste what you've done in your local IDE.

Nate Noonen
A: 

There is much more than code completion into an IDE:

  • debugging facilities
  • XML validation
  • management of servers
  • automatic imports
  • syntax checking
  • graphical modeling
  • support of popular technologies like Hibernate, TestNG or Spring
  • integration of source code management
  • indexing of file names for quick opening
  • follow "links" in code: implementation, declaration
  • integration of source code control
  • searching for classes or methods
  • code formatting
  • process monitoring
  • one click/button debugging/building
  • method/variable/field/... renaming

etc

Nothing to do with incompetence from the programmers. Anybody would be A LOT less productive using vim for developing a big Java EE application.

Pierre Gardin
Is this an answer to why should I use an IDE not why should I use a particular IDE?
A: 

Why should I use an IDE?

Yisroel
+1  A: 

How big were you projects at college? A couple of classes in a couple of files? Or rather a couple of hundreds of classes in a couple of hundreds of files?

Today I had the "honor" of looking at a file in a rather large project where the programmer opted to use vi (yes vi, not vim) and a handcrafted commandline compiler call (no make). The file contained on function spanning about 900 lines with a series of if-else-if-else-constructs (because that way you have all your code in one place!!!!!!). Macho-Programmer at his finest.

EricSchaefer
+3  A: 

IDE vs Notepad I've written code in lots of different IDEs and occasionally in notepad. You may totally love notepad, but at some point using notepad is industrial sabatoge, kind of like hiring a gardener who shows up with a spoon instead of a shovel and a thimble instead of a bucket. (But who knows, maybe the most beautiful garden can be made with a spoon and a thimble, but it sure isn't going to be fast)

IDE A vs IDE B Some IDE's have team and management features. For example, in Visual Studio, there is a screen that finds all the TODO: lines in source code. This allows for a different workflow that may or may not exist in other IDEs. Ditto for source control integration, static code analysis, etc.

IDE old vs IDE new Big organizations are slow to change. Not really a programming related problem.

MatthewMartin
Nice analogy, "gardener who shows up with a spoon instead of a shovel and a thimble instead of a bucket"
Bill
+2  A: 

If you're good at using vim and know everything there is to know about it, then there is no reason to switch to an IDE. That said, many IDEs will have lots of useful features that come standard. Maintaining an install of Eclipse is a lot easier than maintaining an install of Vim with plugins X, Y, and Z in order to simulate the same capabilities.

  • IntelliSense is incredibly useful. I realize that vim has all sorts of auto-completion, but it doesn't give me a list of overloaded methods and argument hints.
  • Multiple panes to provide class hierarchies/outlines, API reference, console output, etc.. can provide you more information than is available in just multiple text buffers. Yes, I know that you have the quickfix window, but sometimes it's just not enough.
  • Compile as you type. This doesn't quite work for C++, but is really nice in Java and C#. As soon as I type a line, I'll get feedback on correctness. I'm not arrogant enough as a programmer to assume that I never make syntax errors, or type errors, or forget to have a try/catch, or... (the list goes on)

And the most important of all...

  • Integrated Debuggers. Double click to set a break point, right click on a variable to set a watch, have a separate pane for changing values on the fly, detailed exception handling all within the same program.

I love vim, and will use it for simple things, or when I want to run a macro, or am stuck with C code. But for more complicated tasks, I'll fire up Eclipse/Visual Studio/Wing.

MikeD
Plus EVERYTHING for Integrated Debuggers. There is quite simply nothing that will improve programmer productivity more than that.
Adam Crossland
A: 

The question is a bit open-ended, perhaps you can make it community wiki...

As you point out, the IDE can be useful, or even a must have, for some operations, like refactoring, or even project exploring: I use Eclipse at my work, on Java projects, and I find very useful to get a list of all occurrences of the usage of a public method or a class in a project. Likely, I appreciate to be able to rename it from where it is defined, and having all these occurrences automatically updated.
The fact I have the JavaDoc displayed when hovering over a name is very nice too. Like autocompletion, jump to a class name, etc.
And, of course, debugging facilities...

Now, usage of Eclipse isn't mandatory in our shop! Some years ago, some people used the Delphi IDE (forgot its name), I tried NetBeans, etc. But I think we de facto standardized on Eclipse, but it was a natural evolution rather than a company policy. And we often just open files in a text editor when we need a quick update...

PhiLho
A: 

OK there are very good reasons for enforcing a particular toolset within a production environment:

  • Companies want to standardize everything so that if an employee leaves they can replace that person with minimal effort.

  • Commercial IDEs provide a complex enough environment to support a single interface for a variety of development needs and supporting varying levels of code access. For instance the same file-set could be used by the developer, by non-programmers (graphics designers etc.) and document writers.

  • Combine this with integrated version control and code management without the need of someone learning a particular version control system, all of a sudden IDEs start to look nicer and nicer.

  • It also streamlines maintenance of build systems in a multi-homed environment.

  • IDEs are easier to give tutorials to via phone or video, and probably come with those.

etc. etc. and so forth.

The business decision making behind enforcing a standardized environment goes beyond the preference of a single programmer or for that matter perhaps the understanding of the programming team.

Elf King
+1  A: 

Using an IDE helps an employee to work with huge projects with minimal training. Learn a few key combos - and you will comfortably work with multi-thousand-file project in Eclipse, IDE handles most of the work for you under the hood. Just imagine how many years of learning it takes to feel comfortable developing such projects in Vim.

Besides, with an IDE it is easy to support common coding standards across the entire team: just set a couple of options and an IDE will force you to write code in a standardized way.

Plus, IDE gives a few added bonuses like refactoring tools (especially good in Eclipse), integrated debugging (especially good in Visual Studio), intellisense, integrated unit tests, integrated version control system etc.

The advantages and disadvantages of using an IDE also greatly depends on the development platform. Some platforms are geared towards the use of IDEs, others are not. As a rule of thumb, you should use IDE for Java and .Net development (unless you're extremely advanced); you should not use IDE for ruby, python, perl, LISP etc development (unless you're extremely new to these languages and associated frameworks).

buru
A: 

As said before, the question about using an IDE is basicaly productivity. However there is some questions that should be considered by the company when choosing a specific IDE. that includes:

  • Company culture
  • Standardize use of tool, making it accessible for all developers. That easies training, reduces costs and improve the speed of learn curve.
  • Requirements from specific contract. As an example, there are some development packages that are fully supported (i.e. plugins) by some IDE and not by anothers. So, if you are working with the support contract you will want to work with the supported IDE. A concrete example is when you are working with not common OS like VxWorks, where you can work with the Workbench (that truely is an eclipse with lot of specific plugins for eclipse).
  • Company policy (and also I include the restriction on company budget)
  • Documentation relating to the IDE
  • Comunity (A strong one can contribute and develop still further the IDE and help you with your doubts)
  • Installed Base (no one wants to be the only human to use that IDE on the world)
  • Support from manufacturers (an IDE about to be discontinued probably will not be a good option)
  • Requirements from the IDE. (i.e. cross platform or hardware requirements that are incompatible with some machines of the company)

Of course, there is a lot more. However, I think that this short list help you to see that there is some decisions that are not so easy to take, when we are talking about money and some greater companies.

And if you start using your own IDE think what mess will be when another developer start doing maintenance into your code. How do you think will the application be signed at the version manager ? Now think about a company with 30+ developers each using its own IDE (each with its own configuration files, version and all that stuff)...

Leonardo Rocha