Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: The One True Style of indentation:

by Rex(Wrecks) (Curate)
on Apr 16, 2002 at 18:02 UTC ( [id://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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (9)
As of 2024-03-28 10:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found