Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re: The One True Style of indentation:

by Rex(Wrecks) (Curate)
on Apr 16, 2002 at 18:02 UTC ( #159579=note: print w/replies, xml ) Need Help??

in reply to The One True Style of indentation:

Hmmm, personally I use 3 space indent via mapped tab key (no hard tabs, they are bad IMHO becuase I write a lot of cross platform stuff and they never turn out the same in any different editors).

I also like the Allman style of indenting and bracing
if { #Stuff } else { #more stuff }
However readability is the key to any of it. I'm not religious about it and I find 2 space or 4 space just as easy to read as long as it is CONSISTANT throughout the code block.

"Nothing is sure but death and taxes" I say combine the two and its death to all taxes!

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://159579]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (8)
As of 2018-03-22 10:28 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (273 votes). Check out past polls.