Spaces or Tabs, Sup Forums?

Spaces or Tabs, Sup Forums?

8-space tabs

3 spaces

8 is too much

half tabs and half spaces

Holy shit, kill yourself.
Literally setup your editor to insert 4 spaces for a tab. Who the fuck would really press space x times when they could just setup their shit to make tab insert x spaces.

I go 8 spaces

>comma after hello

8-size tab or 4-size tab depending on language and size of the project
I prefer 4-size, 8 is too big to comfortably read for me

if you use spaces you are an idiot
and I'm not even talking about pressing space 4 times, for that you would have to be literally retarded

it's the true unix(tm) way

Tabs, with the tab NOT being spaces. If I want to remove the tab I don't wanna hit the fucking backspace button 4 times

dubs and trips of truth
3-sized tabs, bitchez
depictured by yellow arrows

ctrl+backspace
or shift+tab

but spaces are retarded still

>If I want to remove the tab I don't wanna hit the fucking backspace button 4 times
You don't have to, in a sane editor/IDE, though.

elaborate why 3 is better than 4

>not 0dw and v

it annoys both 4 and 8 space faggits

2 as long as M-x whitespace-cleanup is available

I like each of my code documents to have a healthy mix of tabs AND spaces. Sometimes on the same line.

Mixed spaces and tabs.

Spaces because tabs sizes are not consistent across machines and ides.

tabs are spaces, I don't understand this "debate".

spaces

ins 2017

This guy gets it

spaces are for real programmers
tabs are for numales

Tabs, a key dedicated to alignment that in byte code are smaller than spaces
t. An intellect

No spaces or tabs, just put it all on the same level.

4 tabs

\f

Spaces? I write my programs all on one line.

So K&R uses tabstop as 4 spaces.
Not sure if that is what they prefer in their code, or if they did that just for the textbook.
Linux kernel requires 8 character tabstops though.

I think you're joking but this is actually fairly common if you're using tabs to indent, since you'd want to still use spaces for alignment (as the tabs can be set to any width).

Why not pick something more normal with history behind it, like 5?
Tabstop used to be 5 on typewriters, then it was changed to 8 with computers because it was more efficient to use a power of 2 in binary.

4 spaces mapped to the tab key is the only correct answer.

>not encapsulating each single digit in a new class, then concatenating each character into a single string in the same fashion

elastic tabs, my man

What editor?

>tfw not in editor yet

You'd think this would be a flashy new feature of VS by now.

Spaces always

How many is determined by the language:

C gets 8
Java gets 4
JavaScript gets 2
Python gets 4
Tcl gets 3
Ruby gets 2
Haskell gets 4
Bash gets 5
Clojure gets 2

Why spaces? Because they're deterministic. You can make sure everyone is seeing the code in the same way and lining their columns up right. If you use tabs, there's always that one asshole who uses some crappy setup and delivers misaligned unreadable code.

Tabs always, because presentation should be left up to each user. Set your tabstops appropriately and shut the fuck up.

>presentation should be left up to each user
It really shouldn't. Does it really matter if you have to get used to looking at a different number of spaces for a project? No.

But does it matter if people keep delivering with fucked up formatting because they have to be a special snowflake? Yes, absolutely.

Spaces

If you use tabs it fucks up alignment with other tab sizes and looks retarded

>Sup Forums
...

Tabs don't work for alignment, so you have to use spaces for that:
int n;
float x;
char c;


The OCD answer is to use tabs for indentation and spaces for alignment. The practical answer is to just use spaces for everything.

Which is *exactly* what happens when you use spaces, because then every other faggot's stylistic choices are forced on you, where with tabs, they adapt to your preference transparently.

There is no good reason to use spaces instead of tabs. If you can force everyone on a project to use a certain number of spaces, you can by the same token force them to use tabs, write smaller source files, and then everybody gets to be happy.

are you sure?
I remember it being 8 spaces

tab to start a statement, spaces for the rest

>The practical answer is to just use spaces for everything.
not really
the actual practical answer is to use whatever is agreed upon, and keep it consistent. which is usually tabs because that's often the default in IDEs

unless you're coding solo, in which case there isn't even anyone to give a fuck what you use

typewriter fags btfo

tabs for indentation, spaces for alignment

tab indents, space alignments

Tabs are for indentation spaces are for alignment. Don't replace tabs with spaces because whoever editing the file can set the tab width to their personal preference and the alignment will stay.

> Tcl gets 3
I was sure it gets 4. Got any source or reason for that?
The basic guidelines I found were 4 spaces, 80 characters screen width.

>You can make sure everyone is seeing the code in the same way and lining their columns up right.
protip: if you use tabs purely for indentation, this still happens

Just use 4 space tabs; a good editor should only require one backspace to remove it

>fuck you if you want to view my code differently!

Space fags needs to neck themselves.