[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
>one tab saves you eight spaces What did he mean by this?
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: 34
Thread images: 9
File: Middleditch.jpg (65 KB, 647x972) Image search: [Google]
Middleditch.jpg
65 KB, 647x972
>one tab saves you eight spaces
What did he mean by this?
>>
Literally who?

And it's not like you actually type in the 8 spaces.
>>
>>55575994
>not like you actually type in the 8 spaces
Wait, you don't?
>>
>>55575985
>8-space tabs
How many cracks do you have to smoke to get this high?
>>
File: 1468250112901.jpg (72 KB, 720x690) Image search: [Google]
1468250112901.jpg
72 KB, 720x690
>>55575985
He literally (LITERALLY) meant, striking the TAB key once is equal to striking the SPACE BAR eight times. Fuck fampai.
>>
>>55576118
>his editor doesn't convert tab strokes into spaces automatically
What the fuck are you using? Vim?
>>
>>55576118
But it isn't
>>
>>55576135
set expandtab
>>
>>55576118
tab is equal to 4 spaces not 8
>>
>>55576179
set tabstop=8
>>
File: 2016-07-14 15h39_05.gif (74 KB, 344x306) Image search: [Google]
2016-07-14 15h39_05.gif
74 KB, 344x306
>>55576135
>>55576137
>>
>press tab
>automatically converted to 4 spaces
>implying people that use spaces actually press the space bar
this show sucks
>>
>>55576135
>>
>>55576274
>using Notepad

Opinion discarded.
>>
>>55576086
autoindent
>>
>>55576274
>notepad
>windows 7
>"screenpresso"

Opinion very discarded.
>>
File: tabsfordaze.png (5 KB, 170x84) Image search: [Google]
tabsfordaze.png
5 KB, 170x84
>>
>>55575985
Tabs are for men, spaces are for autists.
>>
File: 1468206995042.jpg (88 KB, 768x547) Image search: [Google]
1468206995042.jpg
88 KB, 768x547
>1 tab
>saves you eight spaces
If it's 8 or 1, then it saves you 7 keypresses.
>>
File: 1466007286813.jpg (91 KB, 750x923) Image search: [Google]
1466007286813.jpg
91 KB, 750x923
>>55576372
>>55576437
Meh, this is a work pc and screenspresso is cringe worthy but there's nothing wrong with notepad. In fact, someone with half a brain would understand that notepad is the perfect environment for verifying the number of spaces that would equal a tab given that it's the default text editor in a very well established OS. FFS.
>>
>>55576537
Have you forgotten most of /g/ have some degree of autism?
>>
>>55576505
he said spaces not keypesses
>>
>>55576644
I said keypresses, not spaces.
>>
File: zogoecr1eqsuv8qztxuh.jpg (7 KB, 200x176) Image search: [Google]
zogoecr1eqsuv8qztxuh.jpg
7 KB, 200x176
>>55575985
>8 space tabs
>not 4 or even 2
>>
>>55575985
Idec familia, i let pycharm manage that shit for me...
>>
>>55576135
No, he meant using actual tab characters, like \t, for indentation.

They had a specific point about "your code looking different on other people's computers"
>>
Tabs look like fucking shit on most editors/viewers, and for a good reason

If you don't configure your text editor to put 4 spaces when hitting tab, you're retarded
>>
>>55576368
>>55576274
I'm sure you could find/configure an editor to put the equivalent of 32, 1000 or 5 million spaces when using tab

this doesn't prove shit
>>
>>55576537
Notepad++, you fucking dingus.
>>
File: 1468351065094.jpg (63 KB, 512x342) Image search: [Google]
1468351065094.jpg
63 KB, 512x342
>>55577676
>your code looking different on other people's computers
I've never seen such case.
I saw my files opened in a bunch of os/editor combinations and they always looked the same.
>>
>>55578034
and you use actual tab characters?
>>
>>55578192
yes
>>
>>55578209
Huh. I was just quoting what they said on Silicon Valley, and I assumed it was pretty much true.

Good to know.
>>
>>55575985
>implying i use tabs
I use space bar faggot. The only time i use tabs is when forced into it.
Thread replies: 34
Thread images: 9

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.