FreeOrion

Forums for the FreeOrion project
It is currently Fri Jul 20, 2018 12:52 pm

All times are UTC




Post new topic Reply to topic  [ 19 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Coding Tools
PostPosted: Sat Aug 02, 2008 8:02 pm 
Offline
Krill Swarm

Joined: Thu Jul 03, 2008 8:35 pm
Posts: 11
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.


Top
 Profile  
 
 Post subject: Re: Coding Tools
PostPosted: Sat Aug 02, 2008 8:51 pm 
Offline
Programming, Design, Admin
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 12235
Location: Munich
If you want a full-featured IDE, there's always Visual Studio on Windows...


Top
 Profile  
 
 Post subject: Re: Coding Tools
PostPosted: Sat Aug 02, 2008 9:46 pm 
Offline
Compilation Expert
User avatar

Joined: Thu Jul 06, 2006 10:30 pm
Posts: 219
Location: Russia/Moscow
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.

_________________
In Soviet Russia, forum posts YOU!!


Top
 Profile  
 
 Post subject: Re: Coding Tools
PostPosted: Sun Aug 03, 2008 11:12 am 
Offline
Space Floater

Joined: Tue Jan 29, 2008 6:25 am
Posts: 22
Eclipse can also co-operate with gdb. And you can always do compiling using terminal.

_________________
CWF Freeware
Programmer's Diary
C - features in Finnish


Top
 Profile  
 
 Post subject: Re: Coding Tools
PostPosted: Sun Aug 03, 2008 7:46 pm 
Offline
Programming Lead Emeritus
User avatar

Joined: Thu Jun 26, 2003 1:33 pm
Posts: 1092
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.


Top
 Profile  
 
 Post subject: Re: Coding Tools
PostPosted: Mon Aug 04, 2008 3:31 am 
Offline
Krill Swarm

Joined: Thu Jul 03, 2008 8:35 pm
Posts: 11
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!


Top
 Profile  
 
 Post subject: Re: Coding Tools
PostPosted: Mon Aug 04, 2008 4:39 am 
Offline
Space Floater

Joined: Tue Jan 29, 2008 6:25 am
Posts: 22
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 :)

_________________
CWF Freeware
Programmer's Diary
C - features in Finnish


Top
 Profile  
 
 Post subject: Re: Coding Tools
PostPosted: Mon Aug 04, 2008 6:12 am 
Offline
Space Krill
User avatar

Joined: Tue Jul 22, 2008 4:43 am
Posts: 7
Location: Massachusetts, USA
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.


Top
 Profile  
 
 Post subject: Re: Coding Tools
PostPosted: Mon Oct 20, 2008 4:51 pm 
Offline
Space Krill

Joined: Thu Nov 16, 2006 1:26 pm
Posts: 3
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...


Top
 Profile  
 
 Post subject: Re: Coding Tools
PostPosted: Tue Oct 21, 2008 8:30 am 
Offline
Space Dragon
User avatar

Joined: Thu Oct 02, 2008 11:00 pm
Posts: 339
Location: Slovakia
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.


Top
 Profile  
 
 Post subject: Re: Coding Tools
PostPosted: Tue Nov 11, 2008 11:56 pm 
Offline
Space Dragon
User avatar

Joined: Thu Oct 02, 2008 11:00 pm
Posts: 339
Location: Slovakia
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.


Top
 Profile  
 
 Post subject: Re: Coding Tools
PostPosted: Thu Jan 22, 2009 10:49 pm 
Offline
Space Floater

Joined: Sun Sep 28, 2008 3:05 pm
Posts: 31
Location: Horten, Norway
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.

:)


Top
 Profile  
 
 Post subject: Re: Coding Tools
PostPosted: Fri Jan 23, 2009 12:02 am 
Offline
Space Dragon
User avatar

Joined: Thu Oct 02, 2008 11:00 pm
Posts: 339
Location: Slovakia
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.


Top
 Profile  
 
 Post subject: Re: Coding Tools
PostPosted: Fri Jan 29, 2010 11:14 pm 
Offline
Space Kraken
User avatar

Joined: Tue Jun 23, 2009 5:34 pm
Posts: 165
Location: Bielefeld, Germany
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.


Top
 Profile  
 
 Post subject: Re: Coding Tools
PostPosted: Sun Jan 31, 2010 4:09 pm 
Offline
Space Dragon
User avatar

Joined: Thu Oct 02, 2008 11:00 pm
Posts: 339
Location: Slovakia
Compilation with cmake is on wiki - Compile with eclipse. After all is set up, you click on external tool and select created link.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 19 posts ]  Go to page 1, 2  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group