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

Re: Spaces vs Tabs

by SuicideJunkie (Vicar)
on Jun 16, 2017 at 15:01 UTC ( #1192947=note: print w/replies, xml ) Need Help??


in reply to Spaces vs Tabs

The idea that you can only choose one is the root of the problem, IMO.

Tabs are indentation, spaces are alignment. Then you can set your tab width to anything and it all works.

If tab stops could be globally set at PI spaces wide, then this would be obvious.

In the end, you just go with the flow and clone whatever style is already there to get money.

Replies are listed 'Best First'.
Re^2: Spaces vs Tabs
by shmem (Chancellor) on Jun 16, 2017 at 16:19 UTC
    The idea that you can only choose one is the root of the problem, IMO.

    I'd say that the root of the problem is unfamiliarity with old typewriters, and the fact that the convention of tab stops defaulting to 8 spaces can so easily be overridden in the wrong way, yielding disastrous results.

    Tabs are indentation, spaces are alignment.

    The other way round that is. On the old typewriters, you could set stops for alignment of data skipping thus a fixed amount of spaces, mainly for filling out tables; whereas the indentation in typesetting e.g. at the beginning of a paragraph was done with spaces.

    perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2021-03-07 12:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favorite kind of desktop background is:











    Results (121 votes). Check out past polls.

    Notices?