Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

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!


Comment on Re: The One True Style of indentation:
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2014-12-26 03:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (164 votes), past polls