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!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://159579]
help
Chatterbox?
[stevieb]: it's a long day when you want to make changes to a project and the entire test suite takes 2 hours to fully run :)
choroba knows the situation. At work, unit tests run for 30 minutes, and integration and end-to-end tests take almost one hour.

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2017-03-26 22:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (315 votes). Check out past polls.