Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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 having an uproarious good time at the Monastery: (17)
As of 2015-07-01 21:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (22 votes), past polls