Raised This Month: $51 Target: $400
 12% 

View Poll Results: Tabs or spaces
Tabs for indent and alignment 45 67.16%
Tabs for indent, spaces for alignment 19 28.36%
Spaces for indent and alignment 7 10.45%
Multiple Choice Poll. Voters: 67. You may not vote on this poll

Do you use SPACES or TAB ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 06-12-2017 , 02:48   Do you use SPACES or TAB ?
Reply With Quote #1

Just a simple pool to know how much the infection has spread.

EDIT:
Since you can't do pools anymore, Just write down What you use.

EDIT2:
Maybe it should be moved to General.
__________________
Want to check my plugins ?

Last edited by Arkarr; 06-12-2017 at 02:52. Reason: God Damn phone
Arkarr is offline
B3none
AlliedModders Donor
Join Date: Oct 2016
Location: United Kingdom
Old 06-13-2017 , 16:39   Re: Do you use SPACES or TAB ?
Reply With Quote #2

I prefer tabs for no other reason that in Silicon Valley there is a whole scene about it... LOL
https://www.youtube.com/watch?v=SsoOG6ZeyUI
__________________

Last edited by B3none; 06-13-2017 at 16:40.
B3none is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 06-13-2017 , 16:52   Re: Do you use SPACES or TAB ?
Reply With Quote #3

As long as you follow the same coding convention as your project and don't mix it'll be good. My work device is setup for spaces for indents and my home PC is setup as the default tab for indents.
However you're scum if you use single, double or triple spaces to indent, shame on anybody who does this as it makes code harder to read and most advanced text editors will add guidelines for only tabs and 4 spaces.
Mitchell is offline
boomix
Senior Member
Join Date: May 2015
Location: Latvia
Old 06-13-2017 , 16:58   Re: Do you use SPACES or TAB ?
Reply With Quote #4

Tabs for life
__________________
boomix is offline
Impact123
Veteran Member
Join Date: Oct 2011
Location: Germany
Old 06-13-2017 , 18:48   Re: Do you use SPACES or TAB ?
Reply With Quote #5

If you want to know what other people might see if you use tabs for alignment then take a look at this part of the sdkhooks include file.
__________________
Impact123 is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 06-13-2017 , 18:58   Re: Do you use SPACES or TAB ?
Reply With Quote #6

I love Visual Studio Code's way of doing it. It detects how many spaces for indentation are already being used in the opened file, and converts tabs to that many spaces. Spaces are better overall, but I prefer pressing the TAB key because of fewer keystrokes. So I'm kind of in between.

Last edited by klippy; 06-13-2017 at 18:58.
klippy is offline
Miu
Veteran Member
Join Date: Nov 2013
Old 06-13-2017 , 19:32   Re: Do you use SPACES or TAB ?
Reply With Quote #7

Quote:
Originally Posted by KliPPy View Post
I love Visual Studio Code's way of doing it. It detects how many spaces for indentation are already being used in the opened file, and converts tabs to that many spaces. Spaces are better overall, but I prefer pressing the TAB key because of fewer keystrokes. So I'm kind of in between.
I don't think that's "in between," that's just the sane way to do spaces.
Miu is offline
Maxximou5
AlliedModders Donor
Join Date: Feb 2013
Old 06-13-2017 , 20:06   Re: Do you use SPACES or TAB ?
Reply With Quote #8

Doesn't matter which one you use as long as you use only that throughout your code.
If it's a project I will contribute to, I keep the same format and most programs recognize a standard.
I prefer tabs. I just dislike people who use 3 spaces, use 2 or 4 you insane degenerates.
Maxximou5 is offline
shanapu
Veteran Member
Join Date: Apr 2015
Location: .de
Old 06-13-2017 , 20:42   Re: Do you use SPACES or TAB ?
Reply With Quote #9

I like...

tabs.

edit: here my favorit.
__________________
coding & free software

Last edited by shanapu; 06-13-2017 at 20:47.
shanapu is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 06-13-2017 , 23:57   Re: Do you use SPACES or TAB ?
Reply With Quote #10

Quote:
Originally Posted by shanapu View Post
I like...
I would probably murder you if you attempt to do any pull requests to my project that has this monstrosity.
Mitchell is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:22.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode