Personally, I use 3 spaces for block indentation. The majority of Perl code I've seen has used either 4 spaces or some aweful combination of varying indentation. I just prefer 3 spaces because it shows the level of indentation just as well as 4 spaces, but requires that one less keystroke per indentation. I honestly don't see how people can stand using 8 spaces (not to be confused with an 8 space tabstop). I could not see myself banging in an additional 8 spacebar presses every time I enter a new block, as by the time you're in a 4th level block, you're punching in 32 spaces for each line of code and taking up 40% of the screen width (assuming 80 character width terminal) just for the whitespace. I have to wonder if there aren't code samples out there that use 8-space indentation that contain more whitespace characters than non-whitespace ones. Talk about a waste of bandwidth and storage space.

As for using tabs rather than spaces, I despise that all to hell. Tabs are even worse than 8 space indentation because of cross-editor type behaviour. Ugh! Who invented the damn tab key anyhow? It should be deprecated, except for tabbing between window elements :)


In reply to Re: The classical TAB issue by Anonymous Monk
in thread 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.