[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]

Which side are YOU on?

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: 77
Thread images: 8

File: tabs-vs-spaces.jpg (126KB, 1440x679px) Image search: [Google]
tabs-vs-spaces.jpg
126KB, 1440x679px
Which side are YOU on?
>>
anyone who uses tabs is retarded
>>
>>61065207
why would anyone use tabs, when your IDE makes it virtually undistinguishable?
>>
anyone who makes money writing code is using space

tabs are for wincuck script kiddies
>>
what's the difference/why does it matter
>>
>>61065486
>>61065509
>>61065522

t. millenial
>>
>>61065486
>Use tabs
>Configure IDE to convert tabs into 4 spaces
Checkmate, atheist.
>>
I don't code but I feel like I would use tabs
>>
>>61065486

t. richard
>>
>codemonkeying
ayyyyyy
>>
>>61065549
Lmao
>>
>>61065207
This thread is retarded. 99.9% of the time it doesn't matter. Fuck off
>>
>>61065543
you're not using tabs then
>>
>>61065564
it does matter. if a git repo uses spaces, they won't merge your code if you use tabs...
>>
Compiles to the same shit. Who cares.

Tabs is less keypresses though therefore marginally faster to type.
>>
>>61065564
Well, just look at OPs example, fucking html
No wonder it's retarded
>>
>>61065543
Fuckin moron, that is what we are talking about. Using tabs means you leave /t all over the files.
>>61065547
gtfo
>>61065564
you are not a programmer
>>61065580
this
>>
>>61065207
Tab converted to 4 spaces, because I'm not dumb enough to press space 4 times.
>>
>>61065616
gj for you too, achieving another level of incompetence
>>
>>61065582
>Tabs is less keypresses though therefore marginally faster to type.
What are you using, Notepad?
Even vi supports soft tabstops
>>
>>61065580
That sounds like a trivial problem to solve.
>>
>>61065580
s/\t/    /g
>>
>>61065644
yeah, just image if you want to use tabs but you need to convert them all the time for spaces if you want to push. sounds like a pain in the ass
>>
>>61065207
spaces because I want to make more money
>>
>>61065580
>>61065614
>>61065644
>>61065662
Isn't that what .editorconfig is for?
>>
>>61065662
.replace("/t", " ")
>>
>>61065693
yeah, but why make your life harder when almost everyone uses spaces already and it makes no difference for you when you code (tab->4spaces)
>>
I prefer tabs, because reasons. That said, >>61065580 makes a good point. That said, >>61065653, >>61065693, and >>61065696
seem like good enough solutions to that problem.
>>
use spaces when starting a new line and indenting from there.

tabs when adding comments to an existing line, or indenting a line that is solely commentary
>>
File: 1422249815433.jpg (51KB, 720x480px) Image search: [Google]
1422249815433.jpg
51KB, 720x480px
>fags here thinks using tabs vs spaces means literally pressing tabs or spaces multiple times
looks like i will keep my job for quite a time
>>
>>61065207
Any modern IDE makes spaces behave like tabs anyway, so who even cares
>>
>>61065614
You are talking about html
Who's morron now
>>
>>61065846
The guy who misspelled "moron", moron. In case you didn't figure it out yet, that's you.
>>
tabs sized other than 8 are sin
>>
>M-x tabify
>M-x untabify
/thread
>>
>>61065894
Of course. That's why I use 4-space indentations.
>>
>use tabs
>indent character is saved / rendered as 1 tab
>is textually consistent with every programmer
>is visually adjustable to the programmer's preferences

>use spaces
>each programmer has an IDE that converts tabs to spaces of different lengths
>ACTUAL FUCKING SOURCE CODE CHANGES every time someone modifies it visually

everyone in the professional world uses spaces and I don't. fucking. understand it. at all
>>
File: 1422248239145.png (413KB, 2200x2200px) Image search: [Google]
1422248239145.png
413KB, 2200x2200px
>>61065911
I hate all the Vim and Emacs users from my heart
>>
>>61065948
I'm sorry I'm not so autistic that I'm physically unable to read code without it having my preferred tabstops
>>
>>61065868
Kek, did I hurt your feelings?
>>
>>61065960
yeah but you're autistic enough to confuse the concepts of "can't" and "shouldn't"
>>
>>61065965
Oh sorry, I'm not the anon you were typing at earlier, you just typed like a moron so I called you out for being a moron.
>>
>>61065548
I thought Richard was team tabs.
>>
>>61065207
Statistically people who use spaces make more than people who use tabs.
Do you know what that means? Use spaces and you'll magically make more money.
>>
>>61065801
this


I think it's time for me to leave, I just can't relate to /g/ in any way anymore
>>
>>61065207
I use tabs then convert to spaces so my peers respect me.
>>
>>61066001
>source: your ass
>>
>>61066058
that anon probably got it from one of those goyhub surveys.
>>
>>61066058
https://stackoverflow.blog/2017/06/15/developers-use-spaces-make-money-use-tabs/
There you dumb nigger. It's more accurate than anything else you'll find.
>>
>I need to code quickly and efficiently or my job will be given to some Indian
>how do I prove my efficiency in coding?
>I know, whenever I need to indent something I'll press the same button six billion times instead of another button twice!

You have to be a literal retard to use spaces.
>>
>>61066187
You have to be a literal retard to think we're not pressing tab
>>
>six billion times
>using indents that are a multiple of three characters
Almost had me there buddy.
>>
>>61065772
>perfection
>>
>>61066187
>>61066231
Forgot quote.
>>
>not just using your editor/ide default or setting it to follow some style guide for your language
But in the case you have choice, tab that's 8 space wide, anything is shit tier with the exception of lisp where your tab width should be 2 spaces.
>>
File: rly makes my pythons program.png (16KB, 705x393px) Image search: [Google]
rly makes my pythons program.png
16KB, 705x393px
>>61066231
>six billion
>not divisible by 4
>>
If you think spacefags use the space key you need to leave.
>>
File: l.png (153KB, 899x590px) Image search: [Google]
l.png
153KB, 899x590px
source: https://stackoverflow.blog/2017/06/15/developers-use-spaces-make-money-use-tabs/
>>
>>61066445
it is the webdev trash keeping those medians down right?
please respond
>>
I use the tab button, but map it to spaces
>>
>>61066187
4/10
>>
I always used spaces, but tabs in vim can be modified so you can have something like:
...
int main()
| if(OP == cuck){
| | printf("I knew");
| else{
| | OP = cuck;
| }
| return 0;
}
...
[\code]
>>
You guys argue over the stupidest things. Anyone worth their value can adapt to either on a sneeze.

I tab on personal junk projects and spaces on paid projects, 20 years in and no problems.
>>
>>61066884
what is this showing?
>>
>>61067066
Code indentation with plain vim
>>
2 space tabs or you're a fucking idiot
>>
>>61065207
I don't use any white space or indentation.
>>
>>61067139
I don't understand. Are you saying it's impressive that Vim can render tabs?
>>
>>61067241
I'm sayin that vim doesn't render spaces, so it's convenient to use tabs :)
>>
File: tabs-spaces-both.png (287KB, 500x667px) Image search: [Google]
tabs-spaces-both.png
287KB, 500x667px
Both, tabs for indentation and spaces for alignment.
>>
File: 1438472958230.png (104KB, 394x378px) Image search: [Google]
1438472958230.png
104KB, 394x378px
>>61066884
>int main
>>
Every time I open a code indented with spaces, I auto-reindent all the code with tabs
Because it's objectively better
>>
>>61067329
: sorry ( -- )
." That was an example! C isn't even my favourite language... " cr ;

sorry
>>
>>61065207
tabbed spaces
>>61065543
that's tabbed spaces
it is master race
>>
>>61067329
..whats wrong with int main
>>
>>61065207
I think Silicon Valley is a good show
>>
>>61065207
anyone who uses two spaces/tabs is retarded.
Thread posts: 77
Thread images: 8


[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.