It is currently Sat Nov 26, 2011 8:17 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Tabs vs Spaces
PostPosted: Thu Oct 22, 2009 8:46 pm 
Offline
Developer

Joined: Thu Oct 08, 2009 1:18 am
Posts: 62
Hey Guys,

I'd like to know if I should be formatting using tabs or spaces.

I see some of the code uses tabs throughout, while other code uses a mix of tabs and spaces (sometimes using a tab width of 4, and sometimes using a tab width of 8).

It makes no difference to me one way of the other, I'll set eclipse and anyedit to follow whichever format you prefer.

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 23, 2009 7:25 pm 
Offline
Lead Developer
User avatar

Joined: Mon Jan 16, 2006 5:46 pm
Posts: 904
Location: Netherlands
I would convert a tab to 4 spaces. I thought that was default in our code.

In hindsight it might have been better to make it two spaces to prevent code shifting out of your screen :)


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 23, 2009 7:36 pm 
Offline
Developer

Joined: Thu Oct 08, 2009 1:18 am
Posts: 62
Sounds good to me. I like 4 spaces (or one 4-space tab) for indent levels.

I also usually try to keep the code within 120chars, which shouldn't be too tricky with the right design, although Java can be annoyingly verbose :).


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 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

Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group