Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: The One True Style of indentation:

by coreolyn (Parson)
on Apr 16, 2002 at 19:30 UTC ( #159601=note: print w/ replies, xml ) Need Help??


in reply to The One True Style of indentation:

I've got a couple of problems with tabs. Primarily it is with our source control which never seems to read the tabs from MSDOS files the same when pushed out to our Solaris boxes. Additionally every editor needs to have the tab set to the same value in order to have the same 'look' and organization.

coreolyn


Comment on Re: The One True Style of indentation:
Re: Re: The One True Style of indentation:
by Anonymous Monk on Apr 16, 2002 at 22:46 UTC
    every editor needs to have the tab set to the same value in order to have the same 'look' and organization

    Why is that? Can you give an example of when having tab as indention makes things look bad?
      Can you give an example of when having tab as indention makes things look bad?

      When an editor has replaced some spaces with tabs, and some not, then you read it on another editor, the result looks very bad.

        But that's doesn't make tabs evil. It just means an evil editor was used.
        I think tabs are most readable, hence, i use tabs

      If I use a tab in vi on a unix box then (after submitting to source control which xlates the return characters for OS's) and then check it out to my 2000 box, I have to set whatever editor I use to the same 4 space tab character, otherwise my code can have a tab of sometimes 8 characters. Possibly this has something to do with the checkin/checkout process. Bottom line - I've had to adjust to using spaces for my indentation in order to have the code look the way I want it to on a consistent basis.

      coreolyn

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (9)
As of 2014-09-19 07:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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











    Results (132 votes), past polls