Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

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&&&'

Replies are listed 'Best First'.
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.   :-)


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://158941]
and the radiator hisses contentedly...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2018-05-21 05:43 GMT
Find Nodes?
    Voting Booth?