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

Tab or spaces?

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: 26
Thread images: 5

File: 1438814780337.gif (443KB, 400x480px) Image search: [Google]
1438814780337.gif
443KB, 400x480px
Tab or spaces?
>>
neither
>>
everyone using spaces should be gassed
>>
>>60210566
You_first
>>
Ctrl v empty spaces
>>
File: qt-sluts.jpg (89KB, 800x431px) Image search: [Google]
qt-sluts.jpg
89KB, 800x431px
I prefer to indent my code with cute anime girls.
>>
File: CuQi1H7XEAEYJq_.jpg (24KB, 392x175px) Image search: [Google]
CuQi1H7XEAEYJq_.jpg
24KB, 392x175px
>>60210555
hotdogs
>>
>>60210566
This, even though I didn't even know spaces was a thing until silicon valley
>>
>they don't indent their code with zero-width characters

Plebs, all of you.
>>
Spaces 'force' the style on others and use more data.
Tabs use less data and size can be changed in program.
Both are interchangeable with external programs.
Use spaces to wall your community from bad writers, otherwise tabs.
>>
>>60210618
I didn't realise it was a thing till I saw this thread.
>>
>>60210611
kek
>>
>>60210555
Both. I alternate every line.
>>
>>60210968
This is the only way.
>>
>>60210618
It's a fatal error in python3+ to mix tabs and spaces, also a question for the OP, is a tab 4 or 8 spaces?
>>
>>60210555

Tabs indent, spaces align.
>>
i used to use tabs when i was a kid too.

but then i grew up and got a job and realized nobody cares about the extra KBs, spaces allow to align properly everytime.

those who use both should die by firing squad though.
>>
>>60211611

>is a tab 4 or 8 spaces?
Not OP but it literally doesn't matter, that's why tab indents are superior
>>
>tabs or spaces
spaces are superior simply because they are the same for everyone
>>
>>60211611
Nigger everybody knows it's three
>>
File: 1493769530469.png (96KB, 408x368px) Image search: [Google]
1493769530469.png
96KB, 408x368px
>>60210555
Usually spaces but in rare cases tabs are necessary and tabs are also necessary for backwards compatibility.
>>
>>60210555
spaces
>>
File: indentation.jpg (166KB, 857x1202px) Image search: [Google]
indentation.jpg
166KB, 857x1202px
>>60210555
>>
>>60210555
If you have matrices in your code, use a different tab stop than me, and you use tabs for indentation, I will kill you in your sleep.
>>
>>60210555
Set text editor to autoconvert tabs to spaces
>>
Spaces, glhf with dos2unix'ing your code.
Thread posts: 26
Thread images: 5


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