Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: The One True Style of indentation:

by qslack (Scribe)
on Apr 14, 2002 at 15:45 UTC ( #158941=note: print w/ replies, xml ) Need Help??


in reply to The One True Style of indentation:

I personally use 4-space tabs. I actually hit the <TAB> button to indent, not the space bar.

When Petruchio originally made this poll, I figured that it was asking for your tabstop preference. It just didn't make any sense to me that people would indent with spaces, when tab takes many fewer keystrokes. I know that I wasn't alone in voting for "Four spaces" when my tabstop is 4. A bunch of other people in the IRC channel did the same thing.

For those of you confused, here is a quick VOTING-HOWTO on this poll

1. Are tabs syntactically-important in your language? If so, vote for Python.
2. No indentation? Vote for none.
3. To indent, do you hit the TAB key? If so, vote for Tabs.
4. If you use the space bar (bad choice!), vote for the appropiate number of spaces.

Quinn Slack
perl -e 's ssfhjok qupyrqs&&tr sfjkohpyuqrspitnrapj"hs&&eval&&s&&&'


Comment on Re: The One True Style of indentation:
Re: Re: The One True Style of indentation:
by jlongino (Parson) on Apr 14, 2002 at 17:36 UTC
    I don't personally know what Petruchio intended, but in my opinion (FWIW) it should depend on how your editor saves the resulting file. If it preserves the TAB character, vote TAB. If it converts the TAB to spaces, vote the number of spaces.

    I configure TextPad so that it converts new and existing tabs to 3 spaces, thus I voted 3 spaces. That way it doesn't look crappy if it's printed using some other editor than I used to create it. Unless, that is, it looked crappy to begin with or some formatting issue other than the default tab size comes into play.

    A related followup poll suggestion: The one true line length.   :-)

    --Jim

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://158941]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2014-08-30 03:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (291 votes), past polls