Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: The One True Style of indentation:

by coreolyn (Parson)
on Apr 16, 2002 at 19:30 UTC ( [id://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

Replies are listed 'Best First'.
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?

      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
      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.

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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2024-04-18 19:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found