[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
tabs vs spaces
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: 24
Thread images: 4
File: fry.png (188 KB, 603x452) Image search: [Google]
fry.png
188 KB, 603x452
tabs vs spaces
>>
Did you mean to post this in the list of most autistic arguments ever conceived by man, right next to mathematial ontology?
>>
>>54988286
Tabs for indentation, spaces for alignment.

That, and with tabs you can always tell your editor how many spaces a tab should be worth. For example I like to code in Ruby with 2-space indentation, and my colleague likes to use 4. And we get to work on the exact same code.

Using spaces also takes up less disk-space, not that is particularly matters much these days.
>>
Spaces.
>>
>>54988286
Tabs
>less key strokes
>efficiency at its maximum
>write code faster for the overloards
>abc
>always be coding
>>
>>54989046
>>54988351
>>54988322
Don't feed this faggot with replies
>>
Tabs
>>
File: giphy-facebook_s.jpg.gif (89 KB, 480x270) Image search: [Google]
giphy-facebook_s.jpg.gif
89 KB, 480x270
>>54988322
>>54989046
>>54989154
tabs are winning so far.
>>
Spaces
>>
set tabs to equal 4 spaces
>>
>>54988286
I always use tabs because it allows for less keystrokes. Once I am finished with the file, I run a script to replace each tab with 5 spaces. Spaces make it much easier to read, comment, and just manage the text in general.
>>
>>54989238
Are you literally retarded?
>>
>>54989258
he's just pretending to be
>>
File: m8b7gr9.png (91 KB, 800x600) Image search: [Google]
m8b7gr9.png
91 KB, 800x600
>>54989046
>being this retarded
>>
>>54989277
>>54989258
Please reply with an argument. What is wrong with my method?
>>
Tabs, because me space bar is broken
>>
Tabs because spaces are a waste of space.
Why the fuck would you bloat your code files with 4 spaces instead of 1 tab?
>>
>>54988286
yes
>>
>>54989358
any editor that doesn't suck will allow to put in x spaces automatically when you press tab
>>
>>54988286
of course
>>
>>54989046
>coding
>>
File: 1465423800611.gif (603 KB, 320x240) Image search: [Google]
1465423800611.gif
603 KB, 320x240
>>54988286
both
>>
>>54988286
IF YOUR TABSTOP IS ANYTHING OTHER THAN 8 CHARACTERS IT IS WRONG
>>
>>54988286
https://www.emacswiki.org/emacs/TabsAreEvil
Thread replies: 24
Thread images: 4

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.