[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
>I indent with spaces instead of tabs
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: 35
Thread images: 8
File: 1459415159570.jpg (75 KB, 500x375) Image search: [Google]
1459415159570.jpg
75 KB, 500x375
>I indent with spaces instead of tabs
>>
>>54652086
is that the apparition killer?
>>
>>54652086
>I have autism
>>
>>54652086
I cannot even begin to imagine the diseased mind that would do this. How badly do you have to be beaten and raped by a parental figure for this to happen to you?
>>
>>54652129
I know, spaces are retarded
>>
Indent with whatever they fuck you want, it won't make a difference until you begin to work on huge projects and using tabs actually save quite a lot of space if you're short on storage.
>>
File: blinking pepe.gif (45 KB, 499x499) Image search: [Google]
blinking pepe.gif
45 KB, 499x499
>>54652086
Spaces are superior, you still use tabs, but let your editor convert them to spaces.
It allows better code formating and 100% compatibility with every editor.
>>
File: you.jpg (71 KB, 500x500) Image search: [Google]
you.jpg
71 KB, 500x500
>>54652186
Sure if you mean stone age editors that dont let you customize your tab width and make it more visually pleasant without needing to convert the amount of spaces
Pic related is you
>>
>>54652236
>not having full control on the style of you code regardless of the editor
>not programming in column sensitive language

You can convert it back to tabs if it's required by your autism.
>>
>>54652086
>>54652236

>this amount of autism

http://legacy.python.org/dev/peps/pep-0008/#tabs-or-spaces
http://www.yaml.org/faq.html
>>
File: mondays.jpg (243 KB, 1792x1080) Image search: [Google]
mondays.jpg
243 KB, 1792x1080
>>54652086
>Caring about something as trivial as "spaces vs tabs" because you use a shit IDE/Text Editor.
kyp
>>
>>54652562
Tabs give you more control over code style you dumbshit. For one person it could be 9 billion spaces visually and the other one 1 space

>>54652613
>WAH MY CODE MIGHT NOT HAVE IDENTICAL AUTISTIC SPACING TO THE NEXT GUY
Literally every editor sticks tab characters in when you press space. What's the issue with compatibility.
>>
>>54652803

You're trying too hard, m8.
>>
>>54652803
You've never actually used an editor which lets you set tab and space widths, have you?

You sound clueless
>>
>>54652562
>You can convert it back to tabs if it's required by your autism.
No, you can't; that's kind of the point. Proper tab-based indentation can NOT be reconstructed from spaces-based indentation without losing information. Tab-based indentation is a strictly richer formatting model that contains more information than space-based indentation.
>>
>>54652086
Kill yourself.
>>
File: file.png (13 KB, 575x325) Image search: [Google]
file.png
13 KB, 575x325
>>54653388
What?
>>
>>54654030
That's a shitty approximation, anon.

Proper code layout uses tabs for block indentation and spaces for in-block alignment. If you flatten this all down to spaces, there's no getting the distinction back. That button in your editor probably converts *all* sequences of N spaces to tabs, which is not what you want. Only the block indentation should be converted to tabs.
>>
File: laughinggirls.jpg (33 KB, 346x347) Image search: [Google]
laughinggirls.jpg
33 KB, 346x347
>I indent with spaces instead of tabs
>in emacs
>>
>>54653261
>>54652803
I just realized I said puts in a tab character when you press space, and now look like a retard.
I meant tab character when you press tab
>>
set nocompatible
filetype plugin on
filetype indent on
set cindent
set ai
set si
set sw=4
set ts=4
set et
set hid
syntax enable
set wrap
colorscheme default
set tw=79
set lbr
set nu
set rnu
set formatoptions+=t
set mouse=a
set nohlsearch
set smartcase
set ignorecase
>>
>>54654073
There is no problems in what you're describing since you aren't using elastic tab. Also you're doing something wrong if you do something else than block indentation. You create inter-line false dependencies.
>>
>>54654838
>color
Are you using vim instead of vi?
>>
PEP8 specifies spaces.
>>
>why not both
My Tab key inserts four spaces.
>>
>>54655047
ye i stole this config from a friend
>>
>>54652186
This

Emacs default tab width = 4 * space is god tier
>>
>>54652086
I use both :^)
>>
File: deer1458770747229.jpg (79 KB, 599x461) Image search: [Google]
deer1458770747229.jpg
79 KB, 599x461
>what is M-x tabify/untabify
>>
>>54652236
That's soo cute, his mom is taking the photo
>>
>>54652086
You're a digraceful human being to do what you do. I'm absolutley mortified at the thought of you doing that. I'd rather punt my 3 year old niece off of a downtown building's terrace then listen to your nonsensical rambling. I hope you understand that you are a complete and utter sin and that what you're doing is socially unacceptable on all fronts you egocentric piece of garbage.
>>
>>54655145
See:
>>54654124
>>
>>54652086
It's in the Airbnb style guide for some reason.

And I follow it to the letter.
>>
> I indent manually
Freetards pls
>>
>>54652096
No. The Apparition Killer doesn't have a hilt.
Thread replies: 35
Thread images: 8

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.