Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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

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
Node Status?
node history
Node Type: note [id://159601]
help
Chatterbox?
[Eily]: BTW LanX, you should try typing a few random chars at the beginning of each message. This will prevent expansion :P
[LanX]: qwiud you sthink so?
[LanX]: zxwqbd good idea! :)
LanX embraces his new habit spqopiwjdnq
[ambrus]: qQUkZTmHTuKxStGT- BzTIK9gdudif7TkTLI t3mnF144UaAZjkknXY 8nN-QM19wHBsTrp5vB lEYU_Kksa7X1RIBB4x EWLD5X7SW3jGX5ryfN OMn_yL5FTdQxzjhtyX mKN9sjUCzBNHK5Rrp0 S2WMUvIb1i9aZFgjtq VR0GH1bjPMvm1G16iz hBqc1U6toPd4FbJOFj VsOeT745AN1_pO88rD SRAYKtBZwCZedESZmN mvutrOTHiSNwflB- pRfn_k
[Eily]: so far it seems to work
Your Mother reminds the monks they should be grateful not to share an office, lest they be subjugated to constant inanities like, "Czech please!"
[LanX]: what's strange is that the "Cowboy you said this already" message is missing #dqiwd
[LanX]: YM: BTW learn to mute your humanity
[Your Mother]: Cumin? Now I want tacos...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (17)
As of 2017-03-27 16:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (320 votes). Check out past polls.