Hi Monks!

Most of you, more advanced in programming than myself, have probably already adopted a <TAB> usage style already, but I still haven't found mine, didn't have the epiphany that would show me the way... I would very much like to hear the opinions of many Perl programmers about the two issues involved in this problem:

I tend to adopt the conversion startegy, and I really think that if I use the same editor (which is Vim) over time, I shouldn't have any problems. But what about that maintenance programmer that the authors of Learning Perl are talking so much about? I think if he uses a good enough editor, he could convert spaces back to <TAB>s if that is what he likes and uses regularly. Opinions? Other pros and cons?

The tabstop value is another interesting problem, since Rithie and Kernighan argued very stongly for the 8 character length, long enough in their opinion for three indentations and saying that anyone needing more should reconsider the structure of his program. Others say, that code written with a value of 4 is more aesthetical and more readable... I'd go for a tabstop of 4... Arguments? Counter-arguments?

Lori


In reply to The classical TAB issue by Lorand

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.