[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 is this something people actually argue over?
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: 40
Thread images: 5
File: Tabs vs Spaces Silcon Valley.png (2 MB, 1897x1061) Image search: [Google]
Tabs vs Spaces Silcon Valley.png
2 MB, 1897x1061
>Tabs vs spaces

is this something people actually argue over? Theres nothing wrong with spacing
>>
Why the fuck would you use spaces though?
>>
but if you can just press tab once, why the fuck would you put 4 spaces, its inaccurate and fucking retarded
>>
>>54890872
Tabs have too many issues.
>>
>>54890872
Consistency on different editors.

The real argument here is how many spaces/tabs, 2, 4 or 8?
>>
>>54890895
1. That's actually really easy.
2. It's also easy to configure your editor so that 1 tab = number of spaces you want.
>>
File: 1373397491536.png (266 KB, 640x400) Image search: [Google]
1373397491536.png
266 KB, 640x400
>>54890895
>indenting manually
>>
File: 610777.jpg (68 KB, 960x720) Image search: [Google]
610777.jpg
68 KB, 960x720
>>54890863
MFW I FELL FOR THE TAB MEME
>>
This has already been completely settled.

Tabs for indentation, spaces for alignment.
>>
>>54890895
the authors of this show are fucking retards. season 1 seemed so promising.
>>
>>54890863
>putting laptops directly on your lap
>>
>>54890914

i barely indent, most the time the ide does it automatically

>>54890911
what the fuck does that have to do with anything
>>
>>54890941
S02 was also good. The 3 comma guy was fucking hilarious
>>
>>54890932
No.

muh_penis(int a) {    * this does not
return a * a; * magically solve all issues
} * with 8-space tabs these comments wouldn't be aligned
>>
>>54890863
Interested in watching this but how much apple-shit product placement there actually is?
>>
>>54890959
>what does that have to do with anything
>have to do with anything
>anything
J U S T
U
S
T
>>
It's just brain damage in people that don't know how to code, so they end up defining stupid coding concepts to "get better" and "write clean code", just like using new line for starting bracer..

It's one space, no spaces/tabs. If your brain can't comprehend this simple pattern then join Node/JS devs. Thanks
>>
>>54890986
It's an accurate representation of what Silicon Valley programmers actually use, salty PCuck.
>>
>>54890971
Who the fuck would put their comments like that you fucking nigger ape

* this is how the white man does
* their code comments
muh_penis(int a) {
return a * a;
}
>>
Doesnt IDE does this automatically?
I mean most of them or all of them uses tabs.
>>
>>54891022
Look at this cuck.
>>
>>54891040
i bet this fag uses emacs
>>
>>54890986

some of them use macs but it seems to be a normal ratio for Palo Alto, I used to live there
>>
I never watch this show. Is it worth it? How accurate is it?
>>
File: 1464925636486.jpg (59 KB, 521x509) Image search: [Google]
1464925636486.jpg
59 KB, 521x509
I'm no programmer, but why would it matter that tabs would look different on someone else's editor? If all the tabs look the same on that person's editor, it wouldn't matter.
>>
>>54891894
>Catalog
Back to /a/ you go
>>
>>54890900
2 you fucking moron
>>
>>54891909
>catalog
What?
>>
>>54890897
>I can't into
fuck off
>>
>>54891017
what about Fortran or Assembly?
>>
>>54892024
>sacrificing tons of advantages so you don't have to set your editor to insert spaces
>>
There is only one proper way to indent code: tabs (each being 4 spaces long)
>>
File: asciifull.gif (27 KB, 715x488) Image search: [Google]
asciifull.gif
27 KB, 715x488
>>54890863
4 spaces = 4 bytes
1 tab = 1 byte

Save 300% disk space on indentation
What now, spacecucks?
>>
>>54892535
NO ONE CARES
>>
I have this discussion at work at least once a week. TABs are fucked up cause they lack consistency. Spaces take more space but are more accurate. Solution -> IDE configured to put 4 spaces on TAB press -> WIN.
>>
>>54892609
>I have this discussion at work at least once a week
Start looking for a new job
>>
>>54892625
I make fuck-ton of money and it is just our way of having fun.
>>
>>54892535
That single image used more bytes than the number of tabs you will ever place.
>>
>>54892661
>27 KB
>27,000 / 3 = 9,000
>like 9k lines, max

S M H T B H F A M
>>
>>54890900
>Consistency on different editors.
You are aware that this is exactly why it is better to use tabs? Unlike spaces, you can adjust tabs in your editor the way you want.
Thread replies: 40
Thread images: 5

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.