in reply to Re^2: To <=80 char code line length or not
in thread To <=80 char code line length or not

> that you cannot cite one authoritative reference for that piece of pseudo-science.

Well please define "authoritative reference", psychologists will normally argue from study to study about methodology and sample. (for instance I'm dyslexic and color blind, did they cover my group in their sample?)

Anyway ...

I was referring from memory (I earned my first money hacking for a DTP product) about what I read about typographical Line_length which is at least normatively set to between 45 and 75 characters.

Normative means we got used to it, like we got used to a decimal system, which is not necessarily the objective best of all parallel universes.

Additionally there are subjective preferences:

60% of respondents indicated a preference for either the shortest (35 CPL) or longest (95 CPL) lines used in the study. At the same time, 100% of respondents selected either one of these quantities as being the least desirable *

Which seems to indicate that around middle you'll have the least discussions with annoyed users.

Anyway all these studies deal - like I said - with prose in paragraphs, not intended code, and I said I'm not dogmatic here.

Code is actually two column text, because comments are best aligned

Regarding your question: So the above WP article lists some studies, do I need to copy&paste them and are they "authoritative" enough? ²

Question: what is the blind text in different sizes supposed to tell us???

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

*) Hmm ... wondering what dyslexic guys prefer...

²) NB: the German WP article highlights the importance of line spacing while the English strangely doesn't seem to mention it.

  • Comment on Re^3: To <=80 char code line length or not

Replies are listed 'Best First'.
Re^4: To <=80 char code line length or not
by Your Mother (Archbishop) on Jun 08, 2018 at 13:24 UTC

    Re 2, “10/12” is a best practices idiom/shorthand among English typographers.

      yeah, but it's paradox if coding style guides talk about CPL but leave line space to the individual editor setting.

      It's a combination of both which counts.

      Cheers Rolf
      (addicted to the Perl Programming Language :)
      Wikisyntax for the Monastery

        I agree the combination is the final answer but there is never a case where 10/10 is reasonable; well, unless you're dealing with a typeface with an unusual M-square like some decorative faces have.

        Update: and with a face like that 10/10 would be illegibly tiny anyway so more like 24/24.

Re^4: To <=80 char code line length or not
by BrowserUk (Patriarch) on Jun 08, 2018 at 14:36 UTC

    In short: Source code is not prose; and typographical rules applied to prose on paper make no sense on screens. (Tell me you find this readable.)

    Question: what is the blind text in different sizes supposed to tell us???

    It simply demonstrates that blindly saying "the console width is near the optimal width for eye movement" makes no sense, as it doesn't take font size, proportionality, kerning, or the particular users optimal eye-to-screen distance into account.


    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 short: Source code is not prose;

      Well, I said this already ...

      (many times!)

      Cheers Rolf
      (addicted to the Perl Programming Language :)
      Wikisyntax for the Monastery

        Maybe, but still you push:

        I was referring from memory (I earned my first money hacking for a DTP product) about what I read about typographical Line_length which is at least normatively set to between 45 and 75 characters.

        Illogical to keep one foot in both camps.


        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