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

Spaces vs Tabs

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

File: 1485551804816.jpg (305KB, 1920x1080px) Image search: [Google]
1485551804816.jpg
305KB, 1920x1080px
Which is superior and why?
>>
File: bird_4.jpg (555KB, 1200x675px) Image search: [Google]
bird_4.jpg
555KB, 1200x675px
>>58934322
tabs > spaces. Tabs take fewer button presses and can be conifgured to a different size on any machine. That means tabs can be set to the exact length of four spaces.
>>
>>58934700
wrong
>>
File: notepad++_2017-02-13_17-33-01.png (35KB, 856x392px) Image search: [Google]
notepad++_2017-02-13_17-33-01.png
35KB, 856x392px
>>58934700
wew
>>
Tabs for indentation, spaces for alignment
>>
Anyone who has done any development for Unix knows it's tabs, especially since if you respect the people programming with you, you respect their fundamental right to view tabs at a size of their choice.
>>
>>58934808
Precisely.
http://man.openbsd.org/OpenBSD-current/man9/style.9
>>
Spaces that act like tabs
>>
Spaces because it's just a bit more consistent, triggers neckbeard fags and I edit my structured documents describing computations in tools advanced enough to format the code without effort on my part anyways.
>>
>>58934322
>Spaces vs Tabs
I have a job so I don't care. If the project style guide specifies whether to use spaces or tabs I'll use that, otherwise I don't give a fuck and will just use Emacs default.

Don't you have anything to do more intellectually interesting than arguing about spaces vs tabs?
>>
>>58934900
Chill man I trying to get a sense of what the community prefers. The knowledge of many can be greater than the knowledge of one.
>>
>>58934322
dots
>>
set tabstop=2
set shiftwidth=2
set softtabstop=2
set expandtab
>>
File: 1458344442068.gif (208KB, 500x476px) Image search: [Google]
1458344442068.gif
208KB, 500x476px
>>58934322
Spaces, as their width is always the same and well-defined for all other editors.
If we are talking about the tab KEY, of course. I'd say using tab to type a fucking ^I is a complete waste of a good key in any editor worth it's salt.
Only exception is consistency, of course.
>>
Tabs that are converted to the standard 4 spaces. best of both worlds
>>
Tabs. If you disagree, then you've never been force to work on an 2 or 8 space project.
Tabs allows everyone to set their own tab size.
In the rare case you want to align code, tab to indent, space to alignment.
>>
>>58934322
1. Use the styling the codebase is using
2. Check the language/organization style guide
3. Use 4 spaces
4. Use whatever your shit taste is
>>
File: 1*Aaqc9L1Hc62hBg_dpNgBKg.png (19KB, 592x389px) Image search: [Google]
1*Aaqc9L1Hc62hBg_dpNgBKg.png
19KB, 592x389px
>pike fucked up
>>
>>58937961
I'm sitting here working on an 8-space project and it's killing my soul.

Fucking legacy code is probably busted anyway.
>>
>>58934808
It's baffling to me that people would do anything else. It's also the number one thing I hate about python.
>>
>>58936924
>2
wew
Thread posts: 21
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.