Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re: (OT) Editor-neutral code formatting

by greywolf (Priest)
on Feb 07, 2002 at 17:18 UTC ( #143931=note: print w/ replies, xml ) Need Help??

in reply to (OT) Editor-neutral code formatting

We have had the problem of nasty looking indenting rear its ugly head on projects before. I like to use tabs for the main indenting and spaces for indenting structures like hashes etc. It seems to avoid nasty looking code.

I don't think that forcing people to align/not align curly is a good idea braces since it really is just a personal preference. The important thing is to be consistant within a given piece of code/module. Anyone who can't figure out what's going on shouldn't be maintaining the code anyway.

You have some good ideas here but I wouldn't go overboard enforcing standards that have no real impact on functionality or productivity.

mr greywolf

Comment on Re: (OT) Editor-neutral code formatting

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2015-11-28 19:08 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (743 votes), past polls