Horde3D

Next-Generation Graphics Engine
It is currently 29.04.2024, 00:50

All times are UTC + 1 hour




Post new topic Reply to topic  [ 21 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Coding style
PostPosted: 29.09.2008, 21:16 
Offline

Joined: 22.11.2007, 17:05
Posts: 707
Location: Boston, MA
phoenix64 wrote:
@ Letting lines wrap: I don't think this is a good solution as imho it is harder to read than aligned function arguments.
Tell your editor to align the function arguments for you - if it wont, get a new editor. The display of code should not in any way be related to the whitespace in the code itself.

_________________
Tristam MacDonald - [swiftcoding]


Top
 Profile  
Reply with quote  
 Post subject: Re: Coding style
PostPosted: 29.09.2008, 23:12 
Offline

Joined: 15.06.2008, 11:21
Posts: 166
Location: Germany
I have yet to come across an editor which does that. Plz name a few. For Linux and Windows plz :)
And no, I don't think the coding style should force you to use one specific editor.

/me is away until next Monday


Top
 Profile  
Reply with quote  
 Post subject: Re: Coding style
PostPosted: 29.09.2008, 23:48 
Offline

Joined: 22.11.2007, 17:05
Posts: 707
Location: Boston, MA
phoenix64 wrote:
I have yet to come across an editor which does that. Plz name a few. For Linux and Windows plz :)
Emacs and VIM both - I believe Code::Blocks will with a plugin as well.

_________________
Tristam MacDonald - [swiftcoding]


Top
 Profile  
Reply with quote  
 Post subject: Re: Coding style
PostPosted: 30.09.2008, 07:18 
Offline
Tool Developer

Joined: 13.11.2007, 11:07
Posts: 1150
Location: Germany
Apart from the fact, that I believe that there are more important things than the tabulator size, I doubt that I ever change to another IDE than Visual Studio, so whatever you decide to use in the community branch,... in the official SVN we either will change all tabs to spaces or leave it like it is (although writing an addin to run AStyle or another code style tool would be not to much effort and I really think about it).

Why not concentrate on features, bug fixes and the improvment of the code than on the discussion about whitespaces... BTW, we could also change the coding language from C++ to whitespaces :lol: :lol:

Sorry, just my two cents.


Top
 Profile  
Reply with quote  
 Post subject: Re: Coding style
PostPosted: 01.10.2008, 02:32 
Offline

Joined: 08.11.2006, 03:10
Posts: 384
Location: Australia
Volker wrote:
...I doubt that I ever change to another IDE than Visual Studio, so whatever you decide to use in the community branch,... in the official SVN we either will change all tabs to spaces or leave it like it is.
Why not concentrate on features, bug fixes and the improvment of the code than on the discussion about whitespaces...
I use MSVS 99% of the time as well, but it doesn't really take any more effort to use tabs/spaces properly like phoenix64 suggested, and if we do write new code like this then it makes it easier for non-MSVS-users to concentrate on improvements rather than concentrating on reading strangely-tabbed code ;)


Top
 Profile  
Reply with quote  
 Post subject: Re: Coding style
PostPosted: 01.10.2008, 07:37 
Offline
Tool Developer

Joined: 13.11.2007, 11:07
Posts: 1150
Location: Germany
Ok, then we will just use the tab-space style for new code as phoenix suggested.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 21 posts ]  Go to page Previous  1, 2

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 11 guests


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