[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Tabs are superior Always have been Always will be Spacefags gtfo

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 58
Thread images: 6

File: tabs-vs-spaces.jpg (126KB, 1440x679px) Image search: [Google]
tabs-vs-spaces.jpg
126KB, 1440x679px
Tabs are superior
Always have been
Always will be
Spacefags gtfo
>>
>bikeshedding by people who can only write hello world: the thread
>>
The point of tabs is that everyone can set their indent to be as many spaces as they want.
>>
>>59950398
>projecting: the post
>>
>>59950411
bullshit
>>
File: tumblr_nlqlidS94h1unxnx9o1_500.gif (126KB, 500x296px) Image search: [Google]
tumblr_nlqlidS94h1unxnx9o1_500.gif
126KB, 500x296px
>>59950411
They also waste less bytes, are easier to edit and deal with, takes one keystroke to generate them.

And before someone says that spaces can be rebinded to tabs, fine, then why not just use tabs. Morons.

tl;dr Spaces are stupid.
>>
2-space indentation is the reason why no programmer takes GNU seriously.
>>
Soft tabs are where it's at.

>>59950466
Takes one keystroke to add or delete a soft tab as well.
>>
4-space tabs are master race. Everything else is Pajeet poo-loo tier.
>>
Tabs are for the young.
Someday you will see the light.
>>
1 tab = 3 spaces
>>
Tabulation is fucking MADE for indenting. That's the whole purpose of tabs.

Space is prehistoric and useless.
>>
File: 1470472554524.webm (280KB, 480x270px) Image search: [Google]
1470472554524.webm
280KB, 480x270px
>use python
>cant mix tabs and spaces
>>
>>59950361
>his editor and/or linter doesn't convert tabs to whitespace automatically
>>
>>59952025
Nice argument.
>>
File: FB_IMG_1492262504570.jpg (76KB, 800x1200px) Image search: [Google]
FB_IMG_1492262504570.jpg
76KB, 800x1200px
>>59951002
>works on my machine
Fuck off
>>
>>59951002
>And before someone says that spaces can be rebinded to tabs, fine, then why not just use tabs.
>>
It doesn't matter since any text editor can seamlessly treat one as the other and you can even enforce your favorite style at the source control level with git.
The tab vs space debate is deprecated.
>>
>>59952499
>It doesn't matter
You're wasting bytes for no reason when using spaces. Why would you do that?
>>
>>59952525
You're wasting more bytes by encoding your text in UTF-8 instead of good old ASCII.
>>
>>59952616
Wait no I'm retarded.
Anyway, it doesn't matter when storage is now pretty much free.
>>
I use Fibonacci indentation.
>>
>>59952684
It matters when things scale
It always matters when things scale
>>
File: 1477435251362.jpg (47KB, 536x536px) Image search: [Google]
1477435251362.jpg
47KB, 536x536px
>using a language that doesn't have a format tool builtin, making syntax wars irrelevant
>>
>>59950361
how to spot someone who uses a fisher price text editor: the post
>>
>>59952802
Available storage scales much faster.
>>
>>59950361
Who indents HTML?
Why?

If it helps you just do a =} and after you are done do a {<}

But then who writes HTML from scratch nowadays?
>>
>>59952616
>ASCII was incorporated into the Unicode (1991) character set as the first 128 symbols, so the 7-bit ASCII characters have the same numeric codes in both sets. This allows UTF-8 to be backward compatible with 7-bit ASCII, as a UTF-8 file containing only ASCII characters is identical to an ASCII file containing the same sequence of characters.

https://en.m.wikipedia.org/wiki/ASCII
>>
>>59952889
>Who indents HTML?
Someone who develops with HTML

>Why?
Because that's how structure is layed out

>If it helps you just do a =} and after you are done do a {<}
What

>But then who writes HTML from scratch nowadays?
Everyone worth their salt
>>
>>59950361
i agree, but browsers defaulting to 8 spaces = a tab makes browsing code on github complete cancer.

.editorconfig helps, but no one does it.
>>
>>59952436
>>59950466
formatting is a real thing when you're writing more than just a tiny toy program and a tab will always fuck it up even if you do tab + spaces.

Anyone with a half decent editor will have literally no issue with dealing with spaces as tabs either and it's entirely transparent, and if your autism is hurting you that must just run the persons code through a formater.
>>
>>59952525
>wasting bytes

it's literally such a small amount it doesn't matter unless you're really too poor to upgrade from a 32mb harddrive.
>>
Ascii settled this question once and forall:
' ' > '\t'
>>
>>59950361
tabs:
>tap
spaces:
>TAPTAPTAPTAP

I rest my case.
>>
>>59953675
t. someone who programs in NotePad with font set to Times New Roman
>>
>>59952971
he means 7 bit ascii, but he's a dumbass because nobody actually uses it
>>
>>59950361
Tabs really are great. Unfortunately when you're writing in Hoon, the compiler treats hard tab characters as illegal instead of 'gap', which really sucks
>>
4 spaces

>Always 4 spaces

1 tab

>Sometimes 4 spaces, sometimes 2, sometimes more

Thread over
>>
>>59954143
So tabs are better because the person reading the code can set the tab size to whatever width he wants. Got it.
>>
>>59952889
This. If you're not injecting elements into your HTML with JavaScript, how do you ever expect to be taken seriously in the cut-throat world of web dev memes?
>>
>>59953703
>not programming with comic sans ms
>>
>>59950411
>The point of tabs is that everyone can set their indent to be as many spaces as they want.
That's nice, but that can be done regardless of whether tabs or spaces are used. Literally every worthwhile text editor and IDE supports both equally well.

>>59950466
>They also waste less bytes
Could not care less. Disk space is dirt cheap and the amount saved is trivial.

>Takes one keystroke to generate them
This is true regardless of whether you are using tabs or spaces. Literally every worthwhile text editor and IDE supports both equally well.

>>59953675
Stop coding in notepad.exe you retard


At the end of the day, both options work fine. However, there is one point where spaces have an advantage, which is end of line comments. If you like to use end of line comments and like them to be alligned with each other, spaces are the only reasonable option. The reason for this is that if someone uses end of line comment with tab characters, the allignment will be fucked up on your text editor unless you set it to use the exact same amount of whitespace per tab character. With spaces, this is not the case. With spaces, the end of line comments will stay alligned with each other regardless of the text editor used.
>>
>>59952157
this. fucking neophobes.
>>
>>59952382
Needs less make up and to remove the wig, but the cat dress can stay.
>>
>>59950361
do people really argue about this?
its like cleaning your butt standing up
its a fact standing up makes it more difficult to clean so its better to do it while sit
>>
>>59954590
>reaching your hand into the toilet to wipe your butt
>having to pull out shit covered toilet paper from under your balls to check whether you need to wipe again
>>
tab indents, space aligns > spaces >>>>>> tabs
>>
>>59950361
>He doesn't use single spaces for indentation

Stop wasting screen space.
>>
>>59952781
How does that look like?
>>
>>59952290
Use sublime text, install the pep8 linting plugin, press ctrl-shift-r, reformats your code, fixed indentation, converts stray tabs or stray spaces accordingly.

I could be wrong about which plugin does this for me, but it's one of the sublime-linter Python plugins
>>
>>59954171
I don't want anyone who uses tabs reading my code.
>>
>>59952382
What kind of shitty editor are you using that doesn't support soft tabs?

>>59952436
If I'm writing something and indent it 4 spaces, it's because I want 4 spaces of indentation. Fuck your custom tab widths.
>>
>>59957861
>If I'm writing something and indent it 4 spaces, it's because I want 4 spaces of indentation. Fuck your custom tab widths.
This is a moot point because every major coding text editor and IDE let you customize soft tab width as well.
>>
whatever the project is using
just let your editor take care of formatting for you and concentrate on real issues
the dilettantes on this board...
>>
>>59952143
This.
>>
>>59950361
Wow. /g/ is really filled with useless pigs.

WHO CARES ABOUT TABS VS SPACES ANYWAY?
>>
>>59952143
1 tab = 23.976 spaces
>>
File: OkadOut.png (389KB, 1024x768px) Image search: [Google]
OkadOut.png
389KB, 1024x768px
>when u realize the patrician formatting tool is color
Thread posts: 58
Thread images: 6


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.