And while Unix was initially developed on paper tape, neither Unix nor C were optimized for or developed on punch cards.

Yeah, it was even worse than punched cards! I didn't expect many folks to remember paper tape days. But yes, these more compact brace styles derive from those ancient days. And in ancient days \t was very common although its rare nowadays (thank goodness). Hard disc space was so expensive that \t got used a lot instead of multiple simple space characters. Now a blank, ' ' is so "cheap" that we should use them without regard to cost (number of bytes).

Yes, I do advocate lining up curly braces for major functions. I use McCracken style for logic expressions in any language. I don't know a name for the style I use for Perl "stacks" of list orientated functions.

I have become a disciple of the philosophy that says that the single most important comment that you can put into code is whitespace, be it a blank line or spaces to line things up nicely. Whitespace can separate "thought units" and and also "unite related thoughts into one unit".

There are a number of ways to indent and space out code. But I think that we would agree that it is important to be consistent in what you do. I suspect that we disagree on what that consistent thing should be. But that that it should be consistent and that "\n" is THE most important comment character is something that I hope we agree upon.


In reply to Re^3: how to join these interdependent codes??? by Marshall
in thread how to join these interdependent codes??? by perlprint

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.