Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Fear Of Wide Monitors

Fear Of Wide Monitors

Scheduled Pinned Locked Moved The Lounge
csharpvisual-studiotoolshelpquestion
36 Posts 22 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S snorkie

    Is it just me, or are developers becoming afraid of wide monitors? The more source code I look at, the shorter the lines seem to get. Tools like ReSharper only seem to exacerbate the issue. Code that would easily fit on one line now takes up two or three. How do those developers deal with paperback books? Is this common outside of the Visual Studio world? Hogan

    K Offline
    K Offline
    KLPounds
    wrote on last edited by
    #27

    Its an optimizing cash cow for those who get paid per line of code.:thumbsup:

    1 Reply Last reply
    0
    • S snorkie

      Is it just me, or are developers becoming afraid of wide monitors? The more source code I look at, the shorter the lines seem to get. Tools like ReSharper only seem to exacerbate the issue. Code that would easily fit on one line now takes up two or three. How do those developers deal with paperback books? Is this common outside of the Visual Studio world? Hogan

      P Offline
      P Offline
      patbob
      wrote on last edited by
      #28

      The resolution of monitors has dropped in recent years -- there was a huge backward reset when HD TVs came out and all the manufacturers retooled for producing flat panel TVs.

      We can program with only 1's, but if all you've got are zeros, you've got nothing.

      1 Reply Last reply
      0
      • S snorkie

        Is it just me, or are developers becoming afraid of wide monitors? The more source code I look at, the shorter the lines seem to get. Tools like ReSharper only seem to exacerbate the issue. Code that would easily fit on one line now takes up two or three. How do those developers deal with paperback books? Is this common outside of the Visual Studio world? Hogan

        V Offline
        V Offline
        vtokar
        wrote on last edited by
        #29

        There exists an optimum ratio between the linewidth and the interline spacing. I do not know its exact value but it is defined by the ease of following with the eyes the line and then switching to the next one. This is why the newspapers are printed in narrow columns instead of across the page.

        S 1 Reply Last reply
        0
        • V vtokar

          There exists an optimum ratio between the linewidth and the interline spacing. I do not know its exact value but it is defined by the ease of following with the eyes the line and then switching to the next one. This is why the newspapers are printed in narrow columns instead of across the page.

          S Offline
          S Offline
          snorkie
          wrote on last edited by
          #30

          Several people have mentioned the newspaper example. Its interesting, but code isn't a newspaper article. Rarely do I have several long lines in a row that require wrapping. Most code I see has tons of white space around lines of code for formatting/readability. Hogan

          1 Reply Last reply
          0
          • S snorkie

            Is it just me, or are developers becoming afraid of wide monitors? The more source code I look at, the shorter the lines seem to get. Tools like ReSharper only seem to exacerbate the issue. Code that would easily fit on one line now takes up two or three. How do those developers deal with paperback books? Is this common outside of the Visual Studio world? Hogan

            R Offline
            R Offline
            RASPeter
            wrote on last edited by
            #31

            At my company our coding standard strongly discourages formatting code that way. We frequently deal with XAML and Win32, so that means we sometimes have really long lines, but that's just how it goes. It's really rare that anyone needs to actually see the entire line at once. Normally there are just a few items that actually matter, so we try to put those near the beginning of the line when possible (things like Name and Grid.Row/Column in XAML, for example). Generally, we find it much more useful to be able to get a sense of the structure of the code at a glance, and that gets broken when function calls are split into multiple lines. There are some rare cases where it makes sense to do that, of course, but that's stuff like building an xml file using stringstream.

            1 Reply Last reply
            0
            • S snorkie

              Is it just me, or are developers becoming afraid of wide monitors? The more source code I look at, the shorter the lines seem to get. Tools like ReSharper only seem to exacerbate the issue. Code that would easily fit on one line now takes up two or three. How do those developers deal with paperback books? Is this common outside of the Visual Studio world? Hogan

              R Offline
              R Offline
              rtpHarry
              wrote on last edited by
              #32

              I guess the new limit is that it can fit on a GitHub page :)

              1 Reply Last reply
              0
              • S snorkie

                Is it just me, or are developers becoming afraid of wide monitors? The more source code I look at, the shorter the lines seem to get. Tools like ReSharper only seem to exacerbate the issue. Code that would easily fit on one line now takes up two or three. How do those developers deal with paperback books? Is this common outside of the Visual Studio world? Hogan

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #33

                I gave up Visual Studio this year for vi. 80 column lines means I can get six terminal windows open on my 30" monitor and never need to scroll horizontally

                1 Reply Last reply
                0
                • M MKJCP

                  I believe the point was if you can comprehend many characters per line in other media, why not in code. Paperback was a bad example but much written text has 100+ characters per line. Put another way, inability to read long code lines does not seem like the cause of short code lines.

                  J Offline
                  J Offline
                  jschell
                  wrote on last edited by
                  #34

                  MKJCP wrote:

                  I believe the point was if you can comprehend many characters per line in other media, why not in code

                  As in the written word? One difference is that a spelling error or a syntax error is unlikely to make a sentence unreadable. And certainly will not make the book self destruct. That of course isn't true for code. That difference would seem like a substantial one.

                  MKJCP wrote:

                  Paperback was a bad example but much written text has 100+ characters per line

                  Examples please. Fiction books do not. Non-fiction including text books do not. Magazines do not.

                  M 1 Reply Last reply
                  0
                  • S snorkie

                    My comment about books is related to word-wrap. Most developers I work with can't seem to code with word-wrap turned on. It seems as simple as reading a book. Since I read a fair amount, I have no issue coding with word wrap turned on, it just feels natural. Hogan

                    J Offline
                    J Offline
                    jschell
                    wrote on last edited by
                    #35

                    snorkie wrote:

                    Most developers I work with can't seem to code with word-wrap turned on. It seems as simple as reading a book.

                    Not sure I follow that. Creating code is not the same as reading code. In terms of literature wrapping (of any sort) is often based on word breaks and that works for text. But even in text that isn't true. For example if one has a bulleted section then letting the last bullet flow onto the next page, thus hanging out all by itself, is something that editors seldom do. And code has more reasonable ways it which one can wrap than just breaks between tokens. For example which of the following is more reasonable.

                        Something var = ({long expression) 
                                       + (1+2)
                        Something var = ({long expression) + (1+2
                                        )
                    
                    1 Reply Last reply
                    0
                    • J jschell

                      MKJCP wrote:

                      I believe the point was if you can comprehend many characters per line in other media, why not in code

                      As in the written word? One difference is that a spelling error or a syntax error is unlikely to make a sentence unreadable. And certainly will not make the book self destruct. That of course isn't true for code. That difference would seem like a substantial one.

                      MKJCP wrote:

                      Paperback was a bad example but much written text has 100+ characters per line

                      Examples please. Fiction books do not. Non-fiction including text books do not. Magazines do not.

                      M Offline
                      M Offline
                      MKJCP
                      wrote on last edited by
                      #36

                      You're right. It sure seemed like 100+. More like 90 based on the text books I just looked at.

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups