Page 1 of 2

Coding Tools

Posted: Sat Aug 02, 2008 8:02 pm
by jackbunny
Alright now that I'm actually digging into the meat of the code (just took me three weeks :P), I'm looking to improve my Linux coding environment. I've piddled with Eclipse, but I'm not sure how well that would work with scons as it has a built in makefile system. I remember that tzlaine said he used XEmacs and I've had other developers suggest using Vim. I've also heard that this argument is as old as Linux itself and aruging one over another is like saying saying "My text editor can beat up your text editor." I've not had experience with either. My main question, I guess, is there any sort of step through debugging to be had anywhere? Or do I need to "code like a man" and step up my mental step through skills ;). Any advice welcome. Thanks.

Re: Coding Tools

Posted: Sat Aug 02, 2008 8:51 pm
by Geoff the Medio
If you want a full-featured IDE, there's always Visual Studio on Windows...

Re: Coding Tools

Posted: Sat Aug 02, 2008 9:46 pm
by loonycyborg
Geoff the Medio wrote:If you want a full-featured IDE, there's always Visual Studio on Windows...
Unfortunately, Visual Studio doesn't work under wine.
jackbunny wrote: My main question, I guess, is there any sort of step through debugging to be had anywhere? Or do I need to "code like a man" and step up my mental step through skills ;)
GDB and ddd, GUI frontend for it.

Re: Coding Tools

Posted: Sun Aug 03, 2008 11:12 am
by Maz
Eclipse can also co-operate with gdb. And you can always do compiling using terminal.

Re: Coding Tools

Posted: Sun Aug 03, 2008 7:46 pm
by tzlaine
One advantage to using emacs over vi (that has nothing to do with personal taste) is that the keybindings for emacs show up in other places, meaning you only have to memorize one set. For instance, most X terminal programs recognize the emacs keybindings, but not vi.

Re: Coding Tools

Posted: Mon Aug 04, 2008 3:31 am
by jackbunny
Thanks to everyone for the advice. I know Visual Studio and I'm trying to steer away from it. I've considered using eclipse for editing and compiling from command line also. I'll likely wind up doing a combination of eclipse and emacs (which I'm trying to learn). I've found some good guides for using emacs as a text editor. My challenge now is to set it up to make it more c++ development friendly, which I've not been able to do yet. By friendly I mean syntax hi-lighting and the like. Thanks again!

Re: Coding Tools

Posted: Mon Aug 04, 2008 4:39 am
by Maz
I have never really used any other text editor on linux but vi(m). Okay, I once tried using emacs, and I found out it could've been good operating system - if someone wrote a decent text editor for it. :p

Well, seriously. I just thought that I'll remind you vi(m) allows you to map all keys as you wish. But the real power of vim is, that you do not need any other input devices but keyboard with standard numbers, letters and esc. And that's what it intended for. It is done back when there were machines without mouses. Nowadays it is extremely usefull when you need to do your work over ssh.

But as you stated, vim Vs emacs is anxient war, and there will not be solution to this question. It is really only up to you :)

Re: Coding Tools

Posted: Mon Aug 04, 2008 6:12 am
by igrok
Yes, don't be fooled by vi(m). For a long time I thought it was a simple, but confusing, text editor. Then I started using it, but only learned a few of the commands.

Once you have learned a good portion of the commands available, you can work very efficiently with no need to move your hands between keyboard and mouse. It's seems very counter-intuitive to have a text entry mode and a command mode, but it ends up making you more efficient!

I also hear there's a plugin for eclipse that mimics vi. I imagine there's another that mimics emacs.

Re: Coding Tools

Posted: Mon Oct 20, 2008 4:51 pm
by gustavsen
Eclipse is huge and nasty... (IMO) I suggest try Netbeans too...

btw: when you learn just 20/30 vi(m) commands your will love it...

Re: Coding Tools

Posted: Tue Oct 21, 2008 8:30 am
by OndrejR
jackbunny wrote:Alright now that I'm actually digging into the meat of the code (just took me three weeks :P), I'm looking to improve my Linux coding environment. I've piddled with Eclipse, but I'm not sure how well that would work with scons as it has a built in makefile system. My main question, I guess, is there any sort of step through debugging to be had anywhere? Or do I need to "code like a man" and step up my mental step through skills ;)
Eclipse has scons plugin:
http://nic-nac-project.de/~lothar/eclip ... lugin.html

To setup project, you also need subversion plugin. The best svn plugin for Eclipse is subclipse:
http://subclipse.tigris.org/

Eclipse has one huge advantage - it is open source multiplatform IDE and comparable with Visual Studio.

Re: Coding Tools

Posted: Tue Nov 11, 2008 11:56 pm
by OndrejR
I wrote guide how to comfortably develop FreeOrion under Linux with Eclipse IDE. For more info see wiki under Compile->Linux or directly from here.

Re: Coding Tools

Posted: Thu Jan 22, 2009 10:49 pm
by stride
My experience? Well... if you do programming for a living, or just do alot of it, getting used to using console tools and keyboard only is a big plus. There is a reason the most common unix commands being short and quick to type. OK... I'll admit they look somewhat cryptic in the beginning.

Programmers tend to get a little hooked every once in a while, and things cannot go fast enough. That's when you notice hunting for tiny buttons and things to click on really slows you down.

If you cant get away from Windows, spend some time learning the keybord shortcuts.

:)

Re: Coding Tools

Posted: Fri Jan 23, 2009 12:02 am
by OndrejR
stride wrote:If you do programming for a living, or just do alot of it, getting used to using console tools and keyboard only is a big plus. There is a reason the most common unix commands being short and quick to type. OK... I'll admit they look somewhat cryptic in the beginning.
Getting used to console tools is one thing. But autocomplete, refactoring, code formating, ..., is another. I want IDE which helps me with everything I can think about. I want to think about algorithm and not howto compile something. With Eclipse I save file and Eclipse automatically compiles FreeOrion(and in Java imports, code formatting don't bother me). Keep It Simple Stupid.
stride wrote:Programmers tend to get a little hooked every once in a while, and things cannot go fast enough. That's when you notice hunting for tiny buttons and things to click on really slows you down.
For example I design uml model and then click and I get code which when I later somehow change I get this changes back to uml model. With two clicks.
stride wrote:If you cant get away from Windows, spend some time learning the keybord shortcuts.
every manager wrote:You don't need to know shortcuts and commands. You need to know how something works and where to find it or to know someone who knows. And when you want something to do, you do it the quickest way or the cheapest way or with decided quality. If my time is too precious to me and you want high quality code and want it quick, IDE helps. I appreciate everything which saves my time. Operating system and programming language is not important.

Re: Coding Tools

Posted: Fri Jan 29, 2010 11:14 pm
by strooka
I've tried out Eclipse but i didnt manage to create the project Files As i started. So i Went to KDevelop3. It doesnt recompile the whole project when you Change headers, but it doesn't compile parallel.

I like it to have all Things under control with cmake, i don't Know how it is Managed in Eclipse, but there Seem to Be almost no differences when editing.

Re: Coding Tools

Posted: Sun Jan 31, 2010 4:09 pm
by OndrejR
Compilation with cmake is on wiki - Compile with eclipse. After all is set up, you click on external tool and select created link.