Tabs vs Spaces

>Tabs vs Spaces

Silicon Valley had tabs vs spaces topic
Is there objectively one better than another?
Any stats on whats more popular?

I am a space guy for some reason
and I think they portraied use of spaces wrong
I use spaces, but I actually press tab to get them
I thought this was common approach
but the show portrayed the girl - the spaces user
as someone who press space four times...

drink bleach and die, faggot

>so salty

I use tabs for indentation and spaces for alignment.

>mixing bait

Spaces. Tab sizes can be different on different systems and on different editors so your shit can get fucked up. Spaces will never look different.

Well of course you set your editor to insert spaces in stead of tabs when you press tab.

...

Are you doing that thing to show that static webm use up less space?

uh huh

tabs is the patricians choice, no discusion

>using 4 characters instead of 1

wtf? I can't believe you people are discussing this. Tabs are the only correct choice.

>Tab sizes can be different on different systems and on different editors (...) Spaces will never look different.
That's the whole fucking point, numbnut.

Spaces are unquestionably superior for some languages (e.g. lisps). Tabs are arguably better for some languages (e.g. C, Java, etc.). I tend to use tabs unless there is a good reason to use spaces.

Tabs for indentation, spaces to align afterwards.
If you're too stupid to manage that, use all spaces.

>Tab sizes can be different on different systems and on different editors so your shit can get fucked up. Spaces will never look different.
That's the point. People can customize their tab size to their preference without having to actually change the number of spaces.

so stupid

>Tabs for indentation, spaces to align afterwards.
>not aligning with tabs

You can do the same with spaces.

>align
lol

also, using spaces over tabs leads to an even more pointless flame which is "how many spaces should I use?"

which macbook does that guy have?

Who gives a shit? It makes no difference.

Follow your work's style when at work and use whatever you like for your personal projects.

you don't understand
the episode specifically showed her pressing space 6 times for one tab instead of tab once which auto indents to x spaces

>pressing space 6 times
I do it sometimes.

Looks like it's just a normal Pro.

I thought it was the black Macbook at first. That was the most beautiful and professional-looking machine Apple's ever made, but then they pulled the plug on it because they're retarded.

There's editors out there , right now as I speak, that don't even support tabs.

>indenting code manually

People actually do this?
Do they also type the ; manually after each line, lol?

you can't fuck up a tab

you can, however hit the wrong number of spaces.


spaces are for turbo turds

>you can, however hit the wrong number of spaces.
No.

jesus, we the space guys dont actually press spaces
we press the tab for indentation same as you, but instead of if writing tabcharacter it writes 4 spaces or whatever you have set

this means theres never mix of whitespace, ever

ok, i can respect that as long as we both agree that manually entering spaces is fucktarded

>manually entering spaces is fucktarded
Why?

it never ever crossed my mind that someone actually does it manually until I saw that episode of silicon valley and saw the girl doing tab-tap-tap-tap

Sup Forums is a tabs-only board. if you use spaces for indentation you need to go back.

>we press the tab for indentation same as you, but instead of if writing tabcharacter it writes 4 spaces or whatever you have set
polishing a turd won't make it smell nice

>does not even know he is a minority

>this means theres never mix of whitespace, ever

I put a non-breaking space in my code once.
It was part of a a string, but still, crazy times.

>being this gay and accusing others of being minorities

>Sup Forums is a tabs-only board.

That's becasue we don't have jobs.
Most style guides mandate spaces.

>Most style guides mandate spaces.
wat

YOUR SUCH A FAGGOT GODDAMN JUST KILL YOURSELF YOU FUCKING BITCH WTFWTFWTFWTFWTFWTFWTFWTFWTFWTFWTFWTFWTFWTFWTFWTF

question for tab-fags?

lets say you write code and want to respect widely accpeted style guides, for example dont go over 80 characters lines length

you want to break a line
but visually align it for readability, tabs wont fit, its in between

do you actually mix tabs and spaces?
I mean that is crazy to me

for me it depends on the language and the encompassing style.
For C/C++ I use 4 wide tabs.
For Java I use 4 wide spaces
For Python/Ruby/bash I use 2 wide spaces.

lists like that should be defined somewhere else:
asd = [
'adwaita',
'elementary',
'faenza',
'numix',
'oxygen',
'ubuntu'
];

self.icon_theme_label = Qw.QLabel('');
self.icon_theme_combobox = Qw.QLabel('');
self.icon_theme_combobox.addItems(asd);
self.icon_theme_combobox.setEditable(1);
self.icon_theme_combobox.lineEdt().setReadOnly(1);

but i guess i'd do it like this, with a single tab:
self.icon_theme_label = Qw.QLabel('');
self.icon_theme_combobox = Qw.QLabel('');
self.icon_theme_combobox.addItems(['adwaita','elementary','faenza',
'numix','oxygen','ubuntu']);
self.icon_theme_combobox.setEditable(1);
self.icon_theme_combobox.lineEdt().setReadOnly(1);

I use spaces.
But I would always put the array items on a separate line, not dangling somewhere off the code.
Either a line with just the array items (with the opening bracket on the line above and the closing on the line below).
Or even a separate line for each item.

>do you actually mix tabs and spaces?
Yes. Tabs for scope indentation, spaces for alignment.

>I mean that is crazy to me
How is it more crazy than doing it with all spaces?

I also use visible whitespace (with a subtle color), but that's just personal taste.

I use both. Get rekt.

Imagine you had a child with her and every time your kid was writing a school report you'd hear "tap tap tap tap tap..."

> Tab sizes can be different on different systems and on different editors so your shit can get fucked up
This.
I was tired of intendation errors in Python, though lines looked aligned the same.

>mfw use enter to tab
I don't give a fuck

tabs for indent, spaces for alignment is best.