It means you configured your IDE or text editor to input spaces when you press the tab key. You aren't really this stupid, are you? You just picked a side without having any idea what the frick was being discussed?
2 years ago
Anonymous
I'm not the first anon, i didn't pick any side, i didn't care up untill your reply >It means you configured your IDE or text editor to input spaces when you press the tab key
What's the point of that?
2 years ago
Anonymous
>What's the point of that?
Generally people switch to spaces after seeing their code displayed with a different tabstop setting than they use personally (ie. on github or someone else's computer). It can often look very ugly and even cause end-of-line comments to become misaligned. Using spaces instead means you can line things up and they will stay lined up.
Yes, that's what "using spaces" means. Nobody says "spaces using tabs" because the tab key is implied. moron.
2 years ago
Anonymous
>because the tab key is implied
no it isn't
2 years ago
Anonymous
Sure, it's not implied if you are a moron who has never coded or looked at the settings for any IDE or programmer's text editor.
2 years ago
Anonymous
You have below 80 IQ if you really think anyone uses the physical spacebar for indentation or if you think anyone has done that in the last 30 years. Every single IDE and capable text editor has supported spaces for indentation for longer than you've been alive.
2 years ago
Anonymous
>30
Make it 20. I've seen horrid code from early 2000s
2 years ago
Anonymous
Yes, it is. What do you think it was else supposed to mean?
Imagine being the kind of moron who thinks it's literally about spacebar vs tab-key and going around telling everyone that tabs are better, just to end up using spaces anyways because that's the default
Tabs. Using spaces makes everyone's "columns per indent" value the same, but do you really need that? Why do you feel the need to control how others see your code? Use tabs and let people choose how many columns they have per indentation for frick's sake, it doesn't affect you in any way.
Use spaces for alignment.
>hurr durr.. you should mix tabs and spaces
homosexuals like you should kys
Well don't use spaces then. Space-neurodivergents think they're smart for using spaces, while in reality they're simply being exclusive. You're an enemy number one of an inclusive society.
i dont even see how this is a discussion
in the show that woman spammed spaces on each line clearly only for comedic effect
i dont think anyone really does that irl
>t. has never had to write code on a production server before
i dont even see how this is a discussion
in the show that woman spammed spaces on each line clearly only for comedic effect
i dont think anyone really does that irl
Every editor made after 2000 supports customizable tab stop
Yet most editors won't automatically unident when you press backspace at the indent. You have to press backspace 4 times per indent ro use a whole separate key combination to do it.
When using tabs, press backspace once and you are back 1 indent.
tabstops are not multiple spaces, lurk more
every sane editor knows 4 (or whatever) spaces are an indent and [Tab]s and [Backspace]s them properly
also every sane editor supports .editorconfig file
Yes, you have to wonder because you don't program.
Since I program, I don't have to wonder. I know that I can press a key combination and my editor will produce a perfectly formatted file, regardless of whether spaces or tabs were used.
If you don't use an autoformatter in 2022, your opinion on the matter is irrelevant since your workflow is shit anyway. Code formatting is an activity that can and should be automated, every second spent doing it manually is wasted.
With that said, spaces are objectively superior. They guarantee consistency in the presentation of your code while still offering all the advantages that tabs provide. If you think that changing indent size is only possible with tabs, you've been misled.
Yes, there is a difference between indentation and alignment, but it's irrelevant. It's simpler and more consistent to always use spaces for presentation.
>consistency in the presentation
Nobody except morons uses tabs for presentation.
Tabs are used for indentation. 1 char per indentation level is consistent, an arbitrarily chosen number of spaces isn't.
And you can't always work with your favorite tools. Sometimes you work with other people machines on some randomly indented codebase. And in those times even as a spacetard you'll wish they used tabs.
Why would a single tab be more consistent than a fixed number of spaces per indentation level?
Besides, not every programming language follows this rigid indentation model. Some have a more "free form" structure with idiomatically more levels of indentation (e.g. Scala). In fact, virtually every language that doesn't have C-style syntax has universally agreed on using spaces as a convention. This debate only really applies to C, C++ and Java.
And it's obvious to see why: with such fine-grained whitespacing and visual scoping, tabs only get in the way and give you no advantage. The right way is using a basic whitespace unit that is guaranteed to be always displayed as one character wide, and that unit is the space character. A "variable" unit such as a tab character would immediately disrupt any fine-grained formatting.
Spaces are conceptually simpler and more versatile. Wherever you can use tabs, you can also use spaces, but the opposite is not always true.
>And you can't always work with your favorite tools.
In that case, you don't have a choice anyway, therefore the "debate" is meaningless. An obvious premise of the "spaces vs tabs" question is that you do have a choice in which tooling you use.
I remember when they were the same goddamn thing, tab just inserted some number of spaces. This "waaa tab vs. spaces" bullshit argument today is just silly. Use what the frick ever.
>>> lst=[1,2,3] >>> for i in lst:
... burr=lst[i-1]
... print(burr)
File "<stdin>", line 3
print(burr)
TabError: inconsistent use of tabs and spaces in indentation
I unironically won't hire you if you argue for spaces rather than tabs (for indentation that is, alignment in comments or specific langs like hcl, md, etc, is acceptable because of the set width, pic related) >tabs let each team member set their own preferred indentation width >tabs takes less space on disk >tabs whole purpose is for horizontal indentation/alignment >tabs just werks
There is literally no benefit in using spaces you fricking zoomer Black folk
You are all racists fricks frick you very much im sorry but it is very upsetting everytime i got o work and have to submit a new project my manageris always assking me to stop using different amounts of spacing for my code because he says it makes it very difficult to read how stupid is he that he does not know that in india we use the left hand for the poopoo so we do not want to use the evil finger to press the tab button
Tabs.
You've got to hate yourself if you un ironically use spaces instead of tabs.
I'll bet you are one of those morons who thinks using spaces means literally pressing the spacebar
Wait, what does it mean then, am i being baited?
It means you configured your IDE or text editor to input spaces when you press the tab key. You aren't really this stupid, are you? You just picked a side without having any idea what the frick was being discussed?
I'm not the first anon, i didn't pick any side, i didn't care up untill your reply
>It means you configured your IDE or text editor to input spaces when you press the tab key
What's the point of that?
>What's the point of that?
Generally people switch to spaces after seeing their code displayed with a different tabstop setting than they use personally (ie. on github or someone else's computer). It can often look very ugly and even cause end-of-line comments to become misaligned. Using spaces instead means you can line things up and they will stay lined up.
lmao thought so
the absolute state of IQfy
Considering we are talking about silicon valley in the OP, that was what was implied
Spaces.
You've got to hate yourself if you un ironically use tabs instead of spaces.
tabs
Spaces using tabs.
Literally best of both worlds. Any gay who denies this is a contrarian brainlet. I've also yet to hear a valid argument against this.
>Spaces using tabs.
This is gibberish and you are stupid for thinking this means anything.
It means that wen you press the tab key your editor inserts for spaces you absolute brainlet. Spaces using tabs (key)
Yes, that's what "using spaces" means. Nobody says "spaces using tabs" because the tab key is implied. moron.
>because the tab key is implied
no it isn't
Sure, it's not implied if you are a moron who has never coded or looked at the settings for any IDE or programmer's text editor.
You have below 80 IQ if you really think anyone uses the physical spacebar for indentation or if you think anyone has done that in the last 30 years. Every single IDE and capable text editor has supported spaces for indentation for longer than you've been alive.
>30
Make it 20. I've seen horrid code from early 2000s
Yes, it is. What do you think it was else supposed to mean?
Immediately made sense to me
Nice b8
the only difference is the pre compiled file size right?
Spaces, although I see the argument for why tabs are superior.
vim
frick emacs
tabs for indent, spaces for alignment. This is the one true way, everything else is heresy and evil
>tabs for indent, where each tab is replaced with 4 spaces
ftfy anon
>where each tab is replaced by 2 spaces
ftfy anon
>24 spaces
fxied
4 spaces is the sweet spot.
kek
tabs
Imagine being the kind of moron who thinks it's literally about spacebar vs tab-key and going around telling everyone that tabs are better, just to end up using spaces anyways because that's the default
Tabs. Using spaces makes everyone's "columns per indent" value the same, but do you really need that? Why do you feel the need to control how others see your code? Use tabs and let people choose how many columns they have per indentation for frick's sake, it doesn't affect you in any way.
Use spaces for alignment.
>Tabgays pretending indentation is not alignment
Kek I love this moronation
Well don't use spaces then. Space-neurodivergents think they're smart for using spaces, while in reality they're simply being exclusive. You're an enemy number one of an inclusive society.
If you can fold it in your ide then it usually means it's indented. It's not that complicated anon I'm sure you'll get it eventually.
>hurr durr.. you should mix tabs and spaces
homosexuals like you should kys
Is your editor so terrible that it can't change the indentation size of code that uses spaces?
There is probably a way, never tried doing that.
I switch between tabs and spaces every 100 lines or so.
I like tabs, but I use spaces because it actually impacts some langs.
You can easily tell someone has double digit IQ when they use spaces
There are zero arguments for spaces. ZERO.
>t. has never had to write code on a production server before
How many times are you going to post this thread?
neither
i dont even see how this is a discussion
in the show that woman spammed spaces on each line clearly only for comedic effect
i dont think anyone really does that irl
Spaces
there is no other sane solution than 4 spaces
there are tab-stops, but they are unsupported in most editors and still troublesome
Every editor made after 2000 supports customizable tab stop
Yet most editors won't automatically unident when you press backspace at the indent. You have to press backspace 4 times per indent ro use a whole separate key combination to do it.
When using tabs, press backspace once and you are back 1 indent.
tabstops are not multiple spaces, lurk more
every sane editor knows 4 (or whatever) spaces are an indent and [Tab]s and [Backspace]s them properly
also every sane editor supports .editorconfig file
>press tab once
>or press space 4 times
HMMMM I WONDER
Yes, you have to wonder because you don't program.
Since I program, I don't have to wonder. I know that I can press a key combination and my editor will produce a perfectly formatted file, regardless of whether spaces or tabs were used.
If you don't use an autoformatter in 2022, your opinion on the matter is irrelevant since your workflow is shit anyway. Code formatting is an activity that can and should be automated, every second spent doing it manually is wasted.
With that said, spaces are objectively superior. They guarantee consistency in the presentation of your code while still offering all the advantages that tabs provide. If you think that changing indent size is only possible with tabs, you've been misled.
Yes, there is a difference between indentation and alignment, but it's irrelevant. It's simpler and more consistent to always use spaces for presentation.
>consistency in the presentation
Nobody except morons uses tabs for presentation.
Tabs are used for indentation. 1 char per indentation level is consistent, an arbitrarily chosen number of spaces isn't.
And you can't always work with your favorite tools. Sometimes you work with other people machines on some randomly indented codebase. And in those times even as a spacetard you'll wish they used tabs.
Why would a single tab be more consistent than a fixed number of spaces per indentation level?
Besides, not every programming language follows this rigid indentation model. Some have a more "free form" structure with idiomatically more levels of indentation (e.g. Scala). In fact, virtually every language that doesn't have C-style syntax has universally agreed on using spaces as a convention. This debate only really applies to C, C++ and Java.
And it's obvious to see why: with such fine-grained whitespacing and visual scoping, tabs only get in the way and give you no advantage. The right way is using a basic whitespace unit that is guaranteed to be always displayed as one character wide, and that unit is the space character. A "variable" unit such as a tab character would immediately disrupt any fine-grained formatting.
Spaces are conceptually simpler and more versatile. Wherever you can use tabs, you can also use spaces, but the opposite is not always true.
>And you can't always work with your favorite tools.
In that case, you don't have a choice anyway, therefore the "debate" is meaningless. An obvious premise of the "spaces vs tabs" question is that you do have a choice in which tooling you use.
Drop a `.editorconfig` in the repo root and add check style/ktlint/eslint/robocop/etc to the ci job
I remember when they were the same goddamn thing, tab just inserted some number of spaces. This "waaa tab vs. spaces" bullshit argument today is just silly. Use what the frick ever.
Tabs on odd lines, spaces on even ones, and width to 5.
is this homosexual supposed to be based on anyone
Tabs replaced by 4 spaces
another moron
spaces
any good editor will manage them like tabs
Literally does not matter + have a nice day.
why
not
both?
nothing
3 spaces + shift-tab + tab
werks every time 🙂
>>> lst=[1,2,3]
>>> for i in lst:
... burr=lst[i-1]
... print(burr)
File "<stdin>", line 3
print(burr)
TabError: inconsistent use of tabs and spaces in indentation
>python chuds will defend this
Does python still freak out if you use both?
iirc python 3 only supports tabs
Spaces because I hate spaces and tabs
Spaces.
Tabs are for trannies, Black folk, women, incels, and homosexuals.
You got it backwards. Google uses spaces.
Case closed.
I write all my code in one line
I miss the magic of S1.
I unironically won't hire you if you argue for spaces rather than tabs (for indentation that is, alignment in comments or specific langs like hcl, md, etc, is acceptable because of the set width, pic related)
>tabs let each team member set their own preferred indentation width
>tabs takes less space on disk
>tabs whole purpose is for horizontal indentation/alignment
>tabs just werks
There is literally no benefit in using spaces you fricking zoomer Black folk
You are all racists fricks frick you very much im sorry but it is very upsetting everytime i got o work and have to submit a new project my manageris always assking me to stop using different amounts of spacing for my code because he says it makes it very difficult to read how stupid is he that he does not know that in india we use the left hand for the poopoo so we do not want to use the evil finger to press the tab button
4 spaces for python, C, Java and tabs for ganoo make and golang
Hard tabs for everything, including python