One of the most important debates has now been settled.

IronWing

No Lifer
Jul 20, 2001
69,543
27,849
136
After composing an email in gmail this morning I once again desire to reach through the internet and pummel with a pomelo the person who decided that the tab key aught to be used to move to the next field instead of, say, oh, I don't know, maybe inserting a tab.

I also want to ram a banana into the gmail developer who designed gmail to break vertical alignment in messages every f'in time. It doesn't matter if one uses spaces or tabs, every time the alignment gets f'ed up.
 

ultimatebob

Lifer
Jul 1, 2001
25,135
2,445
126
I guess that Bill doesn't do a lot of YAML scripting, which has to be most "tab hostile" scripting language I've ever seen because of it's spacing restrictions.
 

IronWing

No Lifer
Jul 20, 2001
69,543
27,849
136
i dont program i have no idea what this is even in reference to
Code:
This
     here
vs
that
    there
except that this here forum changed that there tab to spaces anyway.

Code is easier to read if one indents the innards of loops, if-then statements, routines, and objects.

Code:
foreach my $p ('ArcGIS', 'Google Earth', 'Google Maps', 'Topo USA') {
    $radframe->Radiobutton(
        -text     => "$p",
        -variable => \$outtype,
        -relief   => 'flat',
        -value    => $p,
        -command => \&DoNothing
    )->pack(@pl);
}
 
Last edited:

brianmanahan

Lifer
Sep 2, 2006
24,302
5,731
136
nope, tabs converted to spaces is correct

microsofts coding standards have been a joke ever since they made c# use allman style brace indents instead of K&R
 

purbeast0

No Lifer
Sep 13, 2001
52,931
5,803
126
I don't understand why anyone would prefer spaces over tabs. When I'm typing and coding I want to get shit done as fast as I can. Pressing 1 button vs. pressing 4 buttons is simply more efficient, especially over a period of time.
 

brianmanahan

Lifer
Sep 2, 2006
24,302
5,731
136
I don't understand why anyone would prefer spaces over tabs. When I'm typing and coding I want to get shit done as fast as I can. Pressing 1 button vs. pressing 4 buttons is simply more efficient, especially over a period of time.

i prefer hitting tab, but i want it to get saved as spaces. luckily intellij does that by default and git can be configured to do the conversion in case someone actually tries to save tabs.
 
Reactions: Ken g6

purbeast0

No Lifer
Sep 13, 2001
52,931
5,803
126
i prefer hitting tab, but i want it to get saved as spaces. luckily intellij does that by default and git can be configured to do the conversion in case someone actually tries to save tabs.
Then it takes more time to delete 4 spaces than it does to delete 1 tab. Or more time to use arrow keys to navigate. So you're back to wasting time. No thanks.
 

Chaotic42

Lifer
Jun 15, 2001
33,929
1,098
126
I'd like to use tabs, but virtually every coding style I come across demands four spaces, so that's what I use. The fact that Guido Van Rossum is against tabs is another argument in their favor
 

Red Squirrel

No Lifer
May 24, 2003
67,924
12,379
126
www.anyf.ca
I don't understand why anyone would prefer spaces over tabs. When I'm typing and coding I want to get shit done as fast as I can. Pressing 1 button vs. pressing 4 buttons is simply more efficient, especially over a period of time.

Yep, and while you CAN have editors insert say, 4 spaces at a time when you hit tab, when you later go to edit that document, with say, a different editor, it's going to be all messed up, or if you are on another machine and the setting might be 5 instead of 4 because you or someone else did not remember to make it match, or if you have multiple people working and they all have different settings. Tab is just a single character.

In most editors you can also select a block of code and hit tab to make it all indent at once, or shift tab to de-indent. I use that feature all the time when shifting code around.
 

DietDrThunder

Platinum Member
Apr 6, 2001
2,262
326
126
I don't understand why anyone would prefer spaces over tabs. When I'm typing and coding I want to get shit done as fast as I can. Pressing 1 button vs. pressing 4 buttons is simply more efficient, especially over a period of time.

Just set whatever editor you use to replace tab with spaces so that anytime you press the tab button, it will type 4 spaces for you.
 

rh71

No Lifer
Aug 28, 2001
52,856
1,048
126
WhyTF would anyone hit a key more than once when once will do the same thing?

And whyTF would you prefer K&R starting bracket toward the end of the line when it's so much easier/cleaner to read at the beginning of the next line?
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |