What is the Ultimate Linux Development Environment? 643
nachmore asks: "I've been programming on Linux for a while now, always content to use vi for my editing and any debugger tools out there (gdb for C/C++, and so forth). As part of my SoC project I was working on Thunderbird (my first huge project on Linux) and I found that , although shell-based tools can do the job, they lack in easy project management, ease of debugging and other development features. I've only ever programmed with a GUI on Windows — and I have to admit that I find Dev Studio to be one of the few programs that Microsoft seems to have gotten (nearly) right. I've played around with Eclipse but find it's C/C++ support still lacking. So what GUIs would you recommend for Linux? I would like something with debugging (single step, step through, step-to-end, etc) support, CVS access and of course, support for large projects (e.g. Mozilla) and especially good support for C/C++. Is there anything really good out there, or is vi the way to go?"
SlickEdit (Score:5, Informative)
If you must... (Score:3, Informative)
Absolutely -- that and Excel.
Anyway, as with a lot of things in Linux, you might want to take your preferred toolkit into account. (Since you seem to be asking about a RAD...) I personally love KDevelop, which is integrated with Qt Designer. If you want to use GNOME as a platform, there are tools that I haven't looked in on in a while but should be easy to find. Although back when the weekly KDE developer interviews asked about preferred tools, they mostly used Emacs, so take that for what it's worth.
(PS: to fend off flames -- I know you can write GNOME code in KDevelop and vice versa, but when last I tried, the cross-toolkit RAD wasn't there.)
Re:KDevelop (Score:3, Informative)
Re:SlickEdit (Score:2, Informative)
Re:Eclipse (Score:3, Informative)
emacs (Score:5, Informative)
Emacs also offers easy access to our source control system (by corporate mandate, we use ClearCase, which I do not recommend to anyone wishing to maintain their sanity).
Finally, emacs allows me to open two (or more) windows in the same session. I generally put two windows next to each other so I can edit two files at once. This lets me open up files as I need them in either window, and then switch to that buffer in the other window if I need to get to it later.
Even though I consider myself a vi person, I've found emacs to be a very good environment for editing source files. It is very customizable and powerful. It adapts to how you want to use it (other people use it in vastly different ways), and generally gets out of your way to let you get your work done.
Just my opinion.
Re:If you must... (Score:5, Informative)
I believe the GNOME equivalent is Anjuta [sourceforge.net], which has a lot of the features the OP was asking for. I haven't really used it myself so I can't really say. As you note for KDE developers, my understanding that a lot of GNOME devs just use Emacs. Still, if you want something with a nice GUI then Anjuta looks [sourceforge.net] decent [sourceforge.net] (choice of GTK theme used for screenshots not withstanding).
Re:Don't write off simple tools until you know the (Score:5, Informative)
Now I'm using Eclipse for Java, and once you understand how it works, there's just too much to gain from it.
I don't browse the code, I navigate it. I don't navigate to files, I search for them. Go to declaration, forward and back editor navigation, automatic javadoc, automatic class and member creation, method extracting (yay!) are all features that, when combined, make an IDE that actually helps you build better code, faster.
Of course an IDE does get in your way, but Eclipse gives so much that it's worth it.
Debuggin with eclipse is great, it's the first debugger I'm actually using and liking since turbo pascal 5.5! (the VB6 debugger, I didn't enjoy that much)
I understand that CDT doesn't have as many features as the java stuff, but I think that going to Eclipse would be a good investment for anyone. You just need to adapt to it, and discovering features is not that difficult, you can start by printing a cheatsheet.
I'm sure emacs can do most of this stuff too, and way faster, but it does take more commitment.
NetBeans IDE C/C++ (Score:1, Informative)
Strange Contendor. . . (Score:4, Informative)
Emacs or Vi is really nice for development, but neither of them are an IDE.
Re:Eclipse (Score:3, Informative)
Re:KDevelop (Score:3, Informative)
Yeah, the other day I went to try out KDevelop. Worst IDE I have ever tried...ever.
I was trying to create a project, I chose my folder I wanted it in. KDevelop then proceded to tell me that the folder didn't exist (I'ts supposed to create it from what I gathered). I tried createing the folder before I started the project wizard. No luck, it whined about the folder existing. I then decided to RTFM before I asked about it. Unfortunetely the manual consists of a few descriptions of what menu options do, and nothing to do with actually using it :P.
Once I finally got my project created I attempted to checkout my svn repo...nothing, not even an error. Its like the code for that part was empty 0.o.
Maybe the arch linux build is just fscked, but I dont like it :P
Re:KDevelop (Score:2, Informative)
Re:Eclipse (Score:4, Informative)
Re:Eclipse (Score:1, Informative)
It's probably doable if you forget templates, and punt on the more complex declarations, but C++ projects that don't use templates (at least through the STL and Boost libraries) are getting rare these days. The IDE still has to implement things like the overloading resolution algorithm, which depends not only on argument types but the namespaces of the arguments and the available functions...
Re:Anjuta! (Score:3, Informative)
KDevelop really annoyed me a lot, it was unusable for me.
Eclipse is great for java, but for C or C++ it really let me down.
Anjuta isn't perfect (but no other IDE I've ever seen is anyway), but overall it does most of what I want perfectly.
Re:Eclipse (Score:5, Informative)
"Turn off Build Automatically" -- In Eclipse/Java, you'd never need to tell someone to do this, even in the largest of projects, because the build runs quickly and incrementally (using the built-in Eclipse Java compiler). But in CDT, the only way to build is to run your entire toolchain using a Makefile. (So instead of fixing this, they provide features to auto-generate the Makefile!)
"The CDT full indexer is very expensive on large C++ projects (Recommendation: Don't use it on such projects)" Gee, thanks! That's the thing that makes Eclipse (in Java) so Eclipse-y, you know? So make sure you turn that off on large projects.
Oh, and there's my personal favorite FAQ: Can I debug Java and C++ at the same time? [eclipse.org] Answer? "If you can get this to work, please let the cdt-dev mailing list know!"
The Eclipse CDT is a joke. Even Visual Studio can handle reference searches on large projects.
Re:emacs (Score:3, Informative)
Re:SlickEdit (Score:2, Informative)
Re:Understanding and Navigating Code (Score:3, Informative)
Re:SlickEdit (Score:2, Informative)
I suspect that's why they provide a named user option, where the license is tied to the specific user and you can use it on multiple computers so long as only one copy is used at any given time.
Re:Microsoft IDE is like a bad rash (Score:5, Informative)
Stuff your arrogance where the sun doesn't shine.
I for one have been using Visual Studio for more than six years. I used 6, 7 and 8. 6 IS crap, yes. But the rest of your posting radiates ignorance. The typical UNIX way (make/emacs/vi/shell) is not The Way To Enlightenment. I don't use VS for code generation, I use it because it automates stuff I just don't want to handle all the time. Building? One click. Debugging? MUCH easier than with gdb. Quick overview & access to all files? Done.
I do develop for Linux, too, and it constantly bugs me that I have to switch to the shell, type make/scons/whatever, see the error output, switch back to the editor, look for the file in the file requester, open it, switch back to see the exact error, switch back to the editor.... vi and emacs are damn confusing, gvim is ok, but doesn't have a file overview panel like VS has. My favourite editors in Linux are kate, nedit and gedit, but none of them have all helpful tools VS has. Oh, and then there is gdb. Debugging multithreaded stuff with gdb - yeah right. gdb often simply misses breakpoints, does not find the source (even when I specified the exact path in the source command), watching variables is unnecessarily difficult etc. gdb is an absolute nightmare to use. ddd is better, kdbg is best, but debugging is one of the things where an IDE shines: since it has knowledge about the overall project structure and the files it consists of, debugging can be much easier. Then there are additional benefits, like refactoring tools (mostly in Java IDEs though - see IDEA).
Re:Eclipse (Score:5, Informative)
Although they have been in 1.0rc2 for quite some time, they make nightly bulds which are very good.
Re:If you must... (Score:5, Informative)
I strongly disagree. I've been using every version of visual studio professionaly since version 6 (and I used v5 at school), and it's been a complete pain in the ass through the years. It used to do things that others IDE didn't do, so at some point most of its crappiness was tolerable.
But nowadays, this thing is unacceptable.
Vs2003 was almost ok and seemed to have the potential to turn into something acceptable.
Plenty of things were wrong or even a complete pain in the ass already: the project settings dialog, the configuration system, the inflexible build system which mysteriously failed to rebuild things on a regular basis, the mysterious and annoying separation of file system hierarchy and project hierarchy, the irritating and random hanging for dozen of secodns at time of the whole thing for no apparent reason, the tiny, cramped and not resizable dialogs...
Then vs2005 came along.
This thing is a monstrosity. It didn't fix anything that I had a problem with in vs2003. Instead, it became more slow, badly architectured and is a total shrine of mediocrity.
It spam refresh the project list tree for dozens of seconds at a time for no reason. Close multiple tabs and watch as it pointlessly waste its time (and yours) refreshing the display after closing each tab.
The project configuration dialog is a complete joke which tend to overwrite the wrong project settings for no reason.
Watch it randomly remove projects from the solution from times to time.
Create a file, add it to the project, and it chokes and crash.
Try to rebuild the project or just even run it, wait for 30 seconds for that clusterfuck of an ide to figure out that nothing should be built. Not that it ever gets it right if a lot of stuff were updated in your last version control update, anyway.
Scalability is horrendous.
And of course, they still haven't figured out how how to make resizable dialogs. The did figure out how to add gradients in the toolbars, though. Thanks for this awesome usability improvement guys.
Oh, I almost forgot that they decided arbitrarily to not provide you with redistributable debug version of the runtime libraries. Since I'm working on an internal production application with an hopelessly convoluted setup procedure, I really enjoy not being able to run a debug version on a user's machine to help me troubleshoot some issues. Development tools are supposed to make the developer's life easier, not to create gratuitous inconveniences.
I use thing thing 8 hours per day. I hate it with a passion.
And it's not like it's cheap either.
If it's worth money to you... (Score:2, Informative)
Keep It Simple, ... (Score:2, Informative)
1. Learn to use vi properly - not vim, but 'classic' vi. Or alternatively, use emacs. It is not that vim is bad, but it is not on all platforms. Being able to do my coding anywhere is something I have had enormous benefit from over the years. GUIs and syntax highlighting may be pleasing to the eye and look cool, but proper indentation is all you really need.
2. Learn to use make properly. GNU make is probably the de facto standard now; it is certainly the same on all platforms. Put subprojects in subdirectories; it is very simple and efficient.
3. Learn to use a source code control system properly. I prefer Perforce; it comes with a GUI interface if you must.
4. Learn to code properly. This is not so much about algorithms or fancy coding, but about legibility. I always imagine I'm writing my code as an example for somebody to see how the current problem should be solved. I include comments that actually explain what and why rather than stating the obvious. I indent according to a rigorous model and I avoid unnecessary whitespace. Code should be read as literature, so don't put things in columns - that's for accountants.
5. Learn to debug properly. I don't use debuggers at all - I used to, but stopped because I found the advantage was too small. Instead I rely on trace statements - yes, basically printf()'s. It is only in the very simplest cases that a debugger is effective. But whatever your preference, learn to do it properly; the UNIX debuggers are more or less equivalent, so I suppose there's no real need to stick with just one.
- So why not an IDE? Well, mostly because you don't need it. It binds you to just one way of doing things and it isolates you from what is actually going on. If you are used to eg. Visual Studio, do you actually know what happens underneath it all? You will need to know from time, especially if you are going to write portable code. A better way, I find, is to have several xterms open, one for each task, more or less: one for building (with make), one for testing the program, and one or more for editing code.
And before you start scoffing at my ideas, I can say that I'm far from being the slowest coder in my company.
Re:KDevelop (Score:3, Informative)
Re:Eclipse (Score:4, Informative)
Unfortunately, I have to agree. I use Eclipse on some C++ projects, simply because I like the GUI, project file tree (Emacs gets very annoying across larger source trees), and CVS integration. However, I've had to turn off most of CDT's features because they are just too damn painful. Every time I try to do something that would trigger an auto-complete drop-down, the system strains and stalls for a while before it maybe gives me an accurate list of choices. I also had to stop building from within Eclipse, since my project used makefiles that generated absurly long command lines (lots of stuff to include/link). These got trunkated in Eclipse and bombed out, but worked just fine in a shell window.
Of course in Java-land, Eclipse is wonderful. It may feel a bit less polished than NetBeans, but IMHO beats it on some useful features (like while-you-code error checking across files).
Re:Emacs excels at the basics... (Score:2, Informative)
For most GTK+ apps (which is probably the majority in the default install of Ubuntu), you can get Emacs keybindings by adding the following line to your ~/.gtkrc-2.0:
This used to be the default in GTK+ 1.x, but then the GTK+/GNOME people decided to change this as part of the quest to make GNOME more "user-friendly". Ironically, the users they strive to befriend are Windows users rather than long-time Unix / GNU users...
QuantaPlus (Score:2, Informative)
Large C/C++ project? Anjuta vim MSVC (Score:2, Informative)
In the end, if I'm developing in C, I use: vim for smaller files, because it is better at moving text around, Anjuta for larger projects, because it is better at navigating through all the files/functions, and MSVC if I HAVE to because I'm on a Windows Only environment where I can't install anything else (like work!). The End.
Church of the Flying Spaghetti Monster (Score:1, Informative)
Re:vim (Score:3, Informative)
Speaking of which, my signature contains a tip I learned a while back, and I've been shocked to discover most Vim users don't know it. (I used Vim for years without knowing it either.) Just in case I change the signature sometime, here it is:
Don't reach for the ESC key in Vim. Use Ctrl-C instead.