Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: The One True Style of indentation:

by Tardis (Pilgrim)
on Apr 14, 2002 at 12:41 UTC ( #158921=note: print w/ replies, xml ) Need Help??


in reply to Re: The One True Style of indentation:
in thread The One True Style of indentation:

It is almost as religious an issue as best editor or where to put the braces...
Brace placement - there is the right way, and then there are the other wrong ways.

:-)

Best editor is of course emacs, since I don't have to care about indenting, I just press tab and emacs moves the cursor to the right place, no matter where on the line the cursor is.


Comment on Re: The One True Style of indentation:
Re: Re: The One True Style of indentation:
by Zorn (Initiate) on Oct 27, 2002 at 05:56 UTC
    Absolutely. I use
    function(arguments) { if (condition) { ... } else { ... } }
    Brace placement is far more important to me than indentation, though I use tabs for that with four spaces as my second choice, if, for instance, the tab key breaks or starts printing Ős. That's never happened, but if it did I'd use four spaces and buy a new keyboard. But something like
    function(arguments) { if (condition) { ... } else { ... } }
    is unreadable.
      Absolutely. If you want to do it right, it would have to look like this:
      function(arguments) { if (condition) { ... } else { ... } }

      Makeshifts last the longest.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2014-09-21 16:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (172 votes), past polls