C Board  

Go Back   C Board > Community Boards > General Discussions

View Poll Results: How do you indent?
Tabs 19 55.88%
1 space per level 0 0%
2 or 3 spaces per level 6 17.65%
4 through 6 spaces per level 7 20.59%
7+ spaces per level 2 5.88%
Voters: 34. You may not vote on this poll

Reply
 
LinkBack Thread Tools Display Modes
Old 09-23-2009, 06:35 AM   #46
(?<!re)tired
 
Mario F.'s Avatar
 
Join Date: May 2006
Location: Portugal
Posts: 5,661
Quote:
Originally Posted by zacs7 View Post
On a side note, who uses black backgrounds for their coding window? I find it's easier on my eyes.
I've used it pretty much all my life. Always around some sort of small variation of this style. Except back in the days when we had little choice and it was either white on blue, or green on black.

But recently I've been having problems with it. I'm getting tired faster and, I reckon, having more trouble concentrating with it. My ophthalmologist insists it's the fact I'm getting old and the quick variations between dark and bright white when switching between the editor and the web or other materials is not being taken easily anymore by my eyes.

I have been doing some forays into lighter backgrounds, while making sure I do not increase the contrast too much, testing some possibilities until I settle with something I like. Currently this is what I have, but still working on it. I'm not entirely satisfied yet.

OldBrownEyes Scheme:
The font is Dina. Scientifically proven by the major makers of software to be the best font to protect your code from corrosion and calcium oxide while leaving a good natural smell and protecting the environment.
Attached Images
 
__________________
Originally Posted by brewbuck:
Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.



Last edited by Mario F.; 09-23-2009 at 08:07 AM.
Mario F. is offline   Reply With Quote
Old 09-23-2009, 07:22 AM   #47
critical genius
 
MK27's Avatar
 
Join Date: Jul 2008
Location: SE Queens
Posts: 5,230
Quote:
Originally Posted by zacs7 View Post
On a side note, who uses black backgrounds for their coding window? I find it's easier on my eyes.
Me too. I had thought this was scientifically proven, but after googling around it looks like the world is split on the issue and there is no evidence, beyond personal preference, to justify either dark on light or light on dark.

I'm also sold on large fonts; I used to use normal fonts and then just jack them up sometimes when my eyes got tired. Now I just leave them all large all the time and hey! my eyes never get tired.

ps. great vim tip, thanks! I use all tabs, but at least I can see them now. Apparently this has it's own highlight class:
Code:
:highlight ExtraWhitespace ctermbg=darkblue
__________________

"A man can't just sit around." -- Larry Walters

Last edited by MK27; 09-23-2009 at 07:31 AM.
MK27 is offline   Reply With Quote
Old 09-23-2009, 08:21 AM   #48
Registered User
 
Join Date: Jul 2007
Posts: 62
man 9 style
fronty is offline   Reply With Quote
Old 09-23-2009, 09:13 AM   #49
Unregistered User
 
Yarin's Avatar
 
Join Date: Jul 2007
Posts: 982
I agree that white-on-black is nicer on the eyes, but for some reason, I find it more natural to read thinner fonts on black-on-white.

Mario, nice theme, you should try adding a little more green to it, the preprocessors would be a good place.
__________________
May the Source be with you.
Yarin is offline   Reply With Quote
Old 09-24-2009, 01:49 AM   #50
Woof, woof!
 
zacs7's Avatar
 
Join Date: Mar 2007
Location: Australia
Posts: 3,297
No one is extreme enough to use 1 space for indenting.

Which is odd since it's the optimal indent level for a small file size, while still having indenting
__________________
"I.T. gets the chicky-babes" - M. Kelly
bakefile | vim
zacs7 is offline   Reply With Quote
Old 09-24-2009, 02:01 AM   #51
C++ Witch
 
laserlight's Avatar
 
Join Date: Oct 2003
Location: Singapore
Posts: 11,372
Quote:
Originally Posted by zacs7
Which is odd since it's the optimal indent level for a small file size, while still having indenting
Using tab characters would result in the same small file size with indentation that is easier to spot. But "small file size" is a poor argument anyway.
__________________
C + C++ Compiler: MinGW port of GCC
Build + Version Control System: SCons + Bazaar

Look up a C/C++ Reference and learn How To Ask Questions The Smart Way
laserlight is offline   Reply With Quote
Old 09-24-2009, 07:10 AM   #52
Woof, woof!
 
zacs7's Avatar
 
Join Date: Mar 2007
Location: Australia
Posts: 3,297
Quote:
Originally Posted by laserlight View Post
Using tab characters would result in the same small file size with indentation that is easier to spot. But "small file size" is a poor argument anyway.
Yes, yes, I meant with spaces. Oh well, curse my ambiguity. And of course it's a poor argument, so is using 1 space :-)
__________________
"I.T. gets the chicky-babes" - M. Kelly
bakefile | vim
zacs7 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing 3 spaces to tabs dnguyen1022 C Programming 2 12-22-2008 12:51 AM
Tabs or Spaces DavidP General Discussions 46 04-08-2007 11:45 AM
Visual C++ Golffor1 C++ Programming 1 08-04-2003 04:30 PM
tabs to spaces with dev c++ v.4 stallion Windows Programming 2 01-28-2003 02:07 PM
Tab Controls - API -KEN- Windows Programming 7 06-02-2002 09:44 AM


All times are GMT -6. The time now is 03:58 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22