Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: (OT) Editor-neutral code formatting

by lachoy (Parson)
on Feb 07, 2002 at 05:52 UTC ( #143799=note: print w/replies, xml ) Need Help??


in reply to (OT) Editor-neutral code formatting

All MO, 2c, grain of salt, etc.:

- The scoping issues you mention here could be solved with any editor worth its salt. Relying on indenting to solve it for you is a bad idea because...

- Indenting styles can change. Personally, I hate this indenting style. Anything that wastes this much vertical space makes me cringe. And tabs are such a PITA that I never use them. (ObHref to JWZ's writeup on this.)

That said: keeping code readable by everyone who uses it on a daily basis is extremely important. When I code in Java at work I use a different style than I do Perl (and Java) at home. (But still no tabs :-) And for all the differences between the two different styles, it takes me at most 30 seconds to context switch, and that's when I haven't used one or the other for a few days.

Also, I've found that getting all the coders talking about style issues rather than dictating what thou shalt do is generally more effective at getting people to stick to it. (Not saying you were doing that, just another reference point.)

Chris
M-x auto-bs-mode

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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (1)
As of 2022-01-17 05:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (51 votes). Check out past polls.

    Notices?