[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
Space vs. Tabs... this is a real thing you nerds argue over?
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 54
Thread images: 10
File: UsELAKj.webm (43 KB, 600x338) Image search: [Google]
UsELAKj.webm
43 KB, 600x338
Space vs. Tabs... this is a real thing you nerds argue over?
>>
Yeah it makes a difference

It's like capitalizations in titles
Some people capitalize all words
Some people only capitalise certain words
I personally capitalize all words in a title
>>
>>54813605
>I personally capitalize all words in a title
even Of, The etc?
>>
>>54813624
>OP, The Adventures Of The Cum-Thirsty Faggot

Seems alright
>>
>>54813818
you're a fucking monster
>>
>>54813818
That's disgusting.
>>
File: 1458794869985.jpg (39 KB, 500x360) Image search: [Google]
1458794869985.jpg
39 KB, 500x360
>>54813586
>>
No because your editor converts tabs to spaces. No one actually uses tabs, they press tab to get spaces.
>>
>>54813586
No contest.

There's only one correct choice and that's spaces.
>>
>>54814524
No desu a tab is a character. Look at an ASCII chart.
>>
>>54813586
>all that extra backspacing
I'd be annoyed too.
>>
>>54814671
your editor doesn't recognize indentation levels and backspace groups of spaces accordingly?

i understand if you don't like having to set your editor to do it or whatever, but if your editor *can't*, then you should drop it.
>>
>>54813586
I started with tabs and didn't know any better
now I use 4 spaces where I used to have 1 tab
>>
File: 1459901289243.png (53 KB, 186x220) Image search: [Google]
1459901289243.png
53 KB, 186x220
>using spaces

LMAOING @ YOUR LIVES
>>
>>54814524
>No because your editor converts tabs to spaces.
Now you are making assumptions that people use the same text editor as you.
>>
File: A_10_Thunderbolt_II_In_flight_2.jpg (2 MB, 2353x1266) Image search: [Google]
A_10_Thunderbolt_II_In_flight_2.jpg
2 MB, 2353x1266
>>54813586
No. Tabs and spaces are both good, that's why I mix them every time I indent
>>
Editors can convert tabs to any number of spaces, but not all 2-4 space indentations to tabs or other number of spaces at the same time, and thus using spaces makes you a fascist.
>>
File: 1448579434951s.jpg (6 KB, 246x250) Image search: [Google]
1448579434951s.jpg
6 KB, 246x250
>2 space indent master race
>>
>>54813586
Spaces are preferred by retards who think data belongs in source files. They try to format things like array initialization values so that columns are lined up in a way that would be ruined with a different tab width. Every efficiency conscious programmer hates having to do 2,3, or 4 things when we should only have to do 1 (delete the fucking tab). Initialization data is also more efficiently represented in csv files.
>>
>>54816181
That's too filthy, TAB or bust.

>guaranteed consistency
>one keystroke
>able to shift more than one line at he same time
How can spacebar even compete?
>>
>>54813586
Need a full webm of that scene with his chick on the couch
>>
>>54813586
>tfw I set my vimrc so that pressing tab actually inputs 4 spaces.

I'm still pressing the spacebar out of habit tho.

>vim
>indent with space

Based chick.
The github's real also.
>>
>>54813818
You never capitalise 'a', 'of', 'in', 'at', 'the' etc. in a title, unless they come at the start.
>>
>>54817204
thanks for that autistic follow up.
>>
>>54814865
ayy
>>
File: winnie.jpg (98 KB, 1687x943) Image search: [Google]
winnie.jpg
98 KB, 1687x943
>>54813586
https://github.com/stitchpunk
>>
It's as stupid as using vim over emacs
>>
>>54817250
it's true
>>
>>54817774
but i use vim
>>
File: WHOTFUP.jpg (58 KB, 480x473) Image search: [Google]
WHOTFUP.jpg
58 KB, 480x473
>>54817376
>tfw look like richard hendricks
>tfw prefer tabs over spaces
>tfw prefer emacs over vim

is... is there hope for me to get dat facebook pu$$i???
>>
>>54813586
no op this is a real thing autists argue over

it literally does not matter unless the language you're using complains about mixed tabs and spaces in which case you'll come to an agreement if you're not retarded
>>
>>54819907
as long as you don't throw a hissy fit while being literally hitler.
>>
>>54813818
>The Adventures of OP: The Cum-Thirsty Faggot
>>
>>54813586
no, because the answer is obviously tabs
>>
>>54814524
what sort of shitty text editor are you using that it doesn't even recognize the tab character?
>>
>>54817376
>they actually took the time to make fake commits over the course of multiple months to make that profile
wow
>>
>>54813605
Don't try to change the subject. We're talking about tabs and spaces.
I say spaces is the only way to go, because there will always be some faggots out there whose editors are configured with one tabstop = 8 characters.
>>
>>54816181
Are you a systems programmer?
>>
>not using .editorconfig with your text editor
>>
File: dj.gif (1 MB, 304x168) Image search: [Google]
dj.gif
1 MB, 304x168
>>54821249
>not knowing that it's really fucking easy to make old git commits
>>
File: Fotor_146463981804081.jpg (136 KB, 1079x1439) Image search: [Google]
Fotor_146463981804081.jpg
136 KB, 1079x1439
Personally I use both.

If I am the only one writing the code, I use tabs for indentation and spaces for lining up blocks. For example, if I am making an array that will span several lines, I use spaces to line all of the numbers up given they are all of the same character size. Stuff like that. I use tabs to show level indentation.

If I am writing code for a multi-person project, and nobody really minds, I use tabs. Many editors can interpret the invisible '\t' as whatever you set it to. For example, I like tabs that are four columns wide for just about everything; thus I set vim to do so. Let's say I am working with Miss Cutiemcbooty and Sir Mixalot. Miss Cutiemcbooty is a fan of eight column tabs to match DAT ASS and Sir Mixalot likes spaces instead of tabs so he can use his hipster two column space itty bitty waist indentation on HTML files and eight space (whyIdontknow) indentation in his R......oundthinginyourface files. They can each set their editors to interpret the character as such.

If you like VI(M), explanation on how to do this is on the vim wiki. For other editors, as long as they are more feature packed than textedit, read their wikis|manuals for instructions.

Picture Credit: https://youtu.be/xa-4IAR_9Yw
>>
>>54814865
HQ bait
>>
>>54816181
OVA ERE
>>
Do people seriously hit the spacebar to indent? I always thought that the tabs vs spaces was an argument over how you'd have your editor act when you hit the tab key. I can't even fathom how somebody could stand smashing space 16 times just to indent every line
>>
>>54824199
*tap* *tap* *tap* *tap* *tap* *tap* *tap* *tap* *tap* *tap* *tap* *tap*
>>
>>54813605
Then you're capitalising wrong.
>>
>>54813605
>Some people capitalize all words
That's wrong, though.
>>
>Bob likes three-space tabs
>Jim likes four-space tabs
>Eddie is a degenerate pedophile who likes two-space tabs
>John mandated that everyone has to insert spaces instead of tabs
>Now everyone is unhappy
>We're gonna beat the shit out of Eddie now
>>
File: TabsOrSpaces.png (13 KB, 757x441) Image search: [Google]
TabsOrSpaces.png
13 KB, 757x441
>>54824199

Seriously?
>>
I use python, and lots of conditional statements.

If I switch to spaces i'll be doubling my filesize.

> tabs4lyfe
>>
>>54821266
In critical applications you must go with tab.
>>
>>54813586
Is dick sucking vs. power-bottoming something you and your friends argue over?
>>
>>54813586
Sort of... people have preferences, but nobody is that autistic about it. Personally I prefer tabs since you can change the width whenever you want, but believe consistency is more important (if a file was started using N spaces to indent, stick to that when editing it).

That episode mostly sucked btw.
>>
If I were to make a script to replace tabs with spaces and otherwise, something like I should replace every \t by " ".
However for space to tabs, "[^ /t]" " should be replaced to "\t\t"

I have to make it work for more than two level of indent.

But whatever, we could also autistically argue over "never using more than 2 level of indent" or whatever.
Thread replies: 54
Thread images: 10

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

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.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.