I was a typographer

And I was a fireman. What of it? Because that occupation is equally (ir)relevant to this discussion.

Source code is not prose, or poetry or a novel. No one needs to (nor should!) speed-read source code. Even with prose, a 45/50 character wide column is painful to read. (Tell me you find it comfortable to read this.)

Source code is an entirely different kettle of fish: tokens + structure. And formating source code according to typographical (paper) rules -- which have been comprehensively demonstrated to make little sense when applied to a VDU (by Northern Telecom amongst others as far back as the early to mid-80s) -- is as inane as white on black themes because there seen as retro and thus 'cool'.

For the most part, code only gets wide when indented and the part of the lines you read are only 50-60 chars anyway; but scrunching those 50-60 characters across three 20 character lines, because the current indent level takes you half way across to the arbitrary limit makes the code less readable, not more so.

And no, moving the nested levels out to a separate, called-once sub does not always make sense, especially if it obscures the structure of the algorithm -- which such artificial re-structuring invariably does.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority". The enemy of (IT) success is complexity.
In the absence of evidence, opinion is indistinguishable from prejudice. Suck that fhit

In reply to Re^4: To <=80 char code line length or not by BrowserUk
in thread To <=80 char code line length or not by stevieb

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.