spacing in code tabs

Pages: 123
kbw wrote:
The standard has a cover?
The pdf version I have sure does not. Unless you call any first page a cover.. (A cover is obviously something which covers. In that case a cover of a printed book is its exterior, whatever it is, and a cover of a pdf does not exist as there is nothing to cover.)

kbw wrote:
I was curious about the reasons why people had particular preferences.
Could it be that we live in an environment which encourages any opinion on all matters?
Could it be that we live in an environment which encourages any opinion on all matters?
Nothing wrong with that. It's no big deal, I just wanted to know what people thought about it.

I'm with Albatros on the colour of the cover--blue.
I'm going to start using space-emulated tabs instead of just tabs since I sometimes like to mix tabs and spaces... I know it's stupid :P
actually, I mix tabs and spaces, but in a systematic way

1. tabs at the beginning of the line for overall indentation
2. spaces everywhere else to prettify code (I like to line things up)
I used to do that too, but I won't anymore. If someone tried to look at my code and had their tab size set to something other than 8, it would be a mess... So I'll use 8 space indents from now on. I have to say, though, pressing backspace once to go back one indent is easier than deleting 8 spaces...
closed account (1yR4jE8b)
+1 chrisname

What editor do you use? Some editors have a setting to detect leading spaces as tabs and delete the right amount of spaces. Most other editors let you decrease indentation by pressing Shift+Tab, this is more common.

Also, an 8 tab width is kindof excessive...try 4, personally, I like 2.
Last edited on
I used to do 4 spaces. I like 8. I use gedit btw.
[Edit:]And forgot the most important link:
http://diameter.sourceforge.net/general/coding_style.txt
http://kerneltrap.org/mailarchive/git/2007/10/16/344968

Linus Torvalds says:

Tabs are 8 spaces wide. Live with it. It's the only sane solution.


My tabs are 2 spaces wide. Linus, go f*ck yourself, although you are the greatest living programmer in my opinion (no there is no contradiction between the first clause and the following one in this sentence).
Last edited on
closed account (1yR4jE8b)
Linus, go f*ck yourself


haha, the exact same thought that crossed my mind before I even finished reading that quote.
Althought I dissagree with the second part of that statement...but let's save that for a *different* flame war ;)

EDIT: *after reading your links*
Link 1: I dissagree with sections 1 and 2, but everything on after that. Pick 1 brace style, and stick with it...period, no exceptions. Also, indents are whatever the hell size I damn well want and for verbose languages like C++ I find it more important to be able to fit most of my statements on one 80 character terminal line and *not* staring at useless white space.

Linke 2: Linus, you're an asshole, in everything you ever say or write makes you look like a pompous git (excuse the terrible pun). Just because you invented Linux doesn't give you the right to be so damn condensending all the time; your word is not gospel despite what many people seem to believe. To reiterate, go f*ck yourself.
Last edited on
The last two posts have my seal of approval, and let me just add that RMS can go **** himself (or some flowers or something, if he so chooses).
Linus, go f*ck yourself


Agreed.

indents are whatever the hell size I damn well want


This.
closed account (3hM2Nwbp)
Well, tition, darkestfright, helios, *edit - and firedraco...it's been nice knowing you. The open source cult is out to get you now.

Torvald is probably already under your bed and Stallman is in your closet waiting for you to fall asleep. :P
Last edited on
closed account (1yR4jE8b)
It's ok, I sleep with nunchucks under my pillow.
The open source cult is out to get you now.


It's ok, I have an EULA outside my room similar to this:
http://xkcd.com/501/
Torvald is probably already under your bed and Stallman is in your closet waiting for you to fall asleep. :P


http://xkcd.com/344/

also the previous parts of this comics :)
closed account (z05DSL3A)
"Opinions are like assholes. Everybody's got one and everyone thinks everyone else's stinks."
Wow, that's got everyone going. Lets do Operating Systems next.
Homebrew > All standard OS ^ ∞

I am of course, completely and totally serious joking
Oh no xander, your homebrew OS interrupted the data packet, crossed out serious, and put joking ;)
WANDOWMS IS THE BETS BECAUSE LINUCKS IS JUST LIKE A BLACK SCREEN W/ TEXT LOL AND MAC IS TOY LIKE FOR LITTLE CHILDRAN ALSO MAC HAS NO GAEMS! AND WUDNOWS HAS THE MOSTS USERS SO MUST BE BETTER. MAX AND LOONIX ARE CARP BECAUSE TEHY THINK THAT THEY DON'T GET VIRUS BUT THEY DO THEY JUST DON'T ANY USERS SO NO ONE BOTHERS 2 WRITE VIRUSES FOR THEM BECOZ THEY SUCK!!!! ALSO LUNX FOR GEEKS AND LOSERS W/ NECKBEARD WHO LIVE IN THEIR MUMS BASEMENT AND HAVE NO FRIENDS AND MAC IS FOR ARTISTS AND GAYS. LOL USE WINDOWNS FAGGOT Y U MAD PROBLEM???
Last edited on
Pages: 123