Tabs vs Spaces
-
I know that this is quite a heated debate and I was always on the "Tabs forever" side of the argument but recently I've switched to spaces instead of tabs (due to factors outside of my control) and to be honest, I'm LOVING it. Now I can align all my code the way I like it and not have to worry about the tabs lining up with the parenthesis. What do you guys mostly use? Do your companies have a convention on this?
People who use tabs should be shot!!!
Software is everything. It also sucks. Charles Fishman [^] Awasu 1.0.4 (beta)[^]: A free RSS reader with support for Code Project.
-
I know that this is quite a heated debate and I was always on the "Tabs forever" side of the argument but recently I've switched to spaces instead of tabs (due to factors outside of my control) and to be honest, I'm LOVING it. Now I can align all my code the way I like it and not have to worry about the tabs lining up with the parenthesis. What do you guys mostly use? Do your companies have a convention on this?
I'm definitely a "spaces" guy! We don't have an official rule here at my employer, but as we do print code out often (for code reviews) we all pretty much use spaces now and strongly nag those who do not. This is the 2K years.....size is not an issue. Your source code files are never going to be so big they aren't manageable.
There are only 10 types of people in this world....those that understand binary, and those that do not.
-
People who use tabs should be shot!!!
Software is everything. It also sucks. Charles Fishman [^] Awasu 1.0.4 (beta)[^]: A free RSS reader with support for Code Project.
Taka Muraoka wrote: People who use tabs should be shot!!! I do get a last request, right? Marc Help! I'm an AI running around in someone's f*cked up universe simulator.
Sensitivity and ethnic diversity means celebrating difference, not hiding from it. - Christian Graus
Every line of code is a liability - Taka Muraoka
Microsoft deliberately adds arbitrary layers of complexity to make it difficult to deliver Windows features on non-Windows platforms--Microsoft's "Halloween files" -
Taka Muraoka wrote: People who use tabs should be shot!!! I do get a last request, right? Marc Help! I'm an AI running around in someone's f*cked up universe simulator.
Sensitivity and ethnic diversity means celebrating difference, not hiding from it. - Christian Graus
Every line of code is a liability - Taka Muraoka
Microsoft deliberately adds arbitrary layers of complexity to make it difficult to deliver Windows features on non-Windows platforms--Microsoft's "Halloween files"Marc Clifton wrote: I do get a last request, right? Not a bloody chance.
Software is everything. It also sucks. Charles Fishman [^] Awasu 1.0.4 (beta)[^]: A free RSS reader with support for Code Project.
-
People who use tabs should be shot!!!
Software is everything. It also sucks. Charles Fishman [^] Awasu 1.0.4 (beta)[^]: A free RSS reader with support for Code Project.
-
*ducks* ;P
"Blessed are the peacemakers, for they shall be called sons of God." - Jesus
"You must be the change you wish to see in the world." - Mahatma Gandhijdunlap wrote: *ducks* I was going to say that this should've been posted in the Soapbox :-D
Software is everything. It also sucks. Charles Fishman [^] Awasu 1.0.4 (beta)[^]: A free RSS reader with support for Code Project.
-
jdunlap wrote: *ducks* I was going to say that this should've been posted in the Soapbox :-D
Software is everything. It also sucks. Charles Fishman [^] Awasu 1.0.4 (beta)[^]: A free RSS reader with support for Code Project.
Maybe this should be a poll? ;) Do you use tabs or spaces in your code? :rose: Spaces! :rose: Tabs! :rose: Spaces :rose: Tabs :rose: Don't care :rose: Depends on what I'm doing
"Blessed are the peacemakers, for they shall be called sons of God." - Jesus
"You must be the change you wish to see in the world." - Mahatma Gandhi -
People who use tabs should be shot!!!
Software is everything. It also sucks. Charles Fishman [^] Awasu 1.0.4 (beta)[^]: A free RSS reader with support for Code Project.
-
*ducks* ;P
"Blessed are the peacemakers, for they shall be called sons of God." - Jesus
"You must be the change you wish to see in the world." - Mahatma Gandhi -
Maybe this should be a poll? ;) Do you use tabs or spaces in your code? :rose: Spaces! :rose: Tabs! :rose: Spaces :rose: Tabs :rose: Don't care :rose: Depends on what I'm doing
"Blessed are the peacemakers, for they shall be called sons of God." - Jesus
"You must be the change you wish to see in the world." - Mahatma GandhiWrong options. Do you: 1) use spaces in your code? 2) prefer to die now?
Software is everything. It also sucks. Charles Fishman [^] Awasu 1.0.4 (beta)[^]: A free RSS reader with support for Code Project.
-
l a u r e n wrote: i was thinking people who use spaces should be shot Then I'll meet you behind the church at dawn!
Software is everything. It also sucks. Charles Fishman [^] Awasu 1.0.4 (beta)[^]: A free RSS reader with support for Code Project.
-
Wrong options. Do you: 1) use spaces in your code? 2) prefer to die now?
Software is everything. It also sucks. Charles Fishman [^] Awasu 1.0.4 (beta)[^]: A free RSS reader with support for Code Project.
-
What happened to: Free speech? The pursuit of happiness? Life? Liberty? ;) ;P Ok, just teasing.
"Blessed are the peacemakers, for they shall be called sons of God." - Jesus
"You must be the change you wish to see in the world." - Mahatma GandhiDon't sweat the petty stuff. Spaces vs. tabs is much more important :-|
Software is everything. It also sucks. Charles Fishman [^] Awasu 1.0.4 (beta)[^]: A free RSS reader with support for Code Project.
-
Wrong options. Do you: 1) use spaces in your code? 2) prefer to die now?
Software is everything. It also sucks. Charles Fishman [^] Awasu 1.0.4 (beta)[^]: A free RSS reader with support for Code Project.
Being safely on the other side of the planet... So what's so bad about tabs??? Marc Help! I'm an AI running around in someone's f*cked up universe simulator.
Sensitivity and ethnic diversity means celebrating difference, not hiding from it. - Christian Graus
Every line of code is a liability - Taka Muraoka
Microsoft deliberately adds arbitrary layers of complexity to make it difficult to deliver Windows features on non-Windows platforms--Microsoft's "Halloween files" -
Being safely on the other side of the planet... So what's so bad about tabs??? Marc Help! I'm an AI running around in someone's f*cked up universe simulator.
Sensitivity and ethnic diversity means celebrating difference, not hiding from it. - Christian Graus
Every line of code is a liability - Taka Muraoka
Microsoft deliberately adds arbitrary layers of complexity to make it difficult to deliver Windows features on non-Windows platforms--Microsoft's "Halloween files"Marc Clifton wrote: So what's so bad about tabs??? Spot the guy who doesn't have to work with other developers :rolleyes: Sigh...
Software is everything. It also sucks. Charles Fishman [^] Awasu 1.0.4 (beta)[^]: A free RSS reader with support for Code Project.
-
l a u r e n wrote: people who use spaces should be shot I agree. I never use spaces. Or tabs. Or carriage returns, for that matter. Onelonglineofcodeafteranothershouldbeclearenoughforanyone;Thesemicolonsandcurlybracketsareeasyformachinestoreadanditdoesn'tmatterwhetherotherpeoplecanmakesenseofitwhenI'mdonebecauseit'salreadyperfectasitis.
"Ask not for whom the bell tolls;
It tolls for thee..." -
-
I know that this is quite a heated debate and I was always on the "Tabs forever" side of the argument but recently I've switched to spaces instead of tabs (due to factors outside of my control) and to be honest, I'm LOVING it. Now I can align all my code the way I like it and not have to worry about the tabs lining up with the parenthesis. What do you guys mostly use? Do your companies have a convention on this?
Tabs. I just find them easier, especially when arrowing through code (takes less time to go through tabs than it does spaces.) And now that's dictated in our team's coding standard. :-D Although with all the nifty souce formatting tools out there (including what's included in Visual), it doesn't matter as much as it used to... back in the days when taking out a block of code embedded deep in a loop and putting it into its own function meant a day's worth of work deleting all the extra spaces. "When a man sits with a pretty girl for an hour, it seems like a minute. But let him sit on a hot stove for a minute and it's longer than any hour. That's relativity." - Albert Einstein
-
Marc Clifton wrote: So what's so bad about tabs??? Spot the guy who doesn't have to work with other developers :rolleyes: Sigh...
Software is everything. It also sucks. Charles Fishman [^] Awasu 1.0.4 (beta)[^]: A free RSS reader with support for Code Project.
-
If you want us to see it your way, at least tell us why tabs are so bad.
"Blessed are the peacemakers, for they shall be called sons of God." - Jesus
"You must be the change you wish to see in the world." - Mahatma Gandhijdunlap wrote: tell us why tabs are so bad. Have you ever had to work on source code written by somebody who had their tab stops set differently to you?
Software is everything. It also sucks. Charles Fishman [^] Awasu 1.0.4 (beta)[^]: A free RSS reader with support for Code Project.