home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / software / 5028 < prev    next >
Encoding:
Text File  |  1992-12-17  |  3.9 KB  |  75 lines

  1. Newsgroups: comp.software-eng
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!sun-barr!ames!ncar!csn!raven!rcd
  3. From: rcd@raven.eklektix.com (Dick Dunn)
  4. Subject: Re: C code Layout
  5. Message-ID: <1992Dec17.081451@eklektix.com>
  6. Organization: eklektix - Boulder, Colorado
  7. References: <KANZE.92Dec15171105@slsvdnt.us-es.sel.de> <1992Dec16.083733@eklektix.com> <MARTINC.92Dec16111734@hatteras.cs.unc.edu>
  8. Date: Thu, 17 Dec 1992 08:14:51 GMT
  9. Lines: 64
  10.  
  11. Charlie is pretty good at finding the vulnerable spots in my arguments!
  12. But I enjoy the spirit of the discussion...
  13.  
  14. martinc@hatteras.cs.unc.edu (Charles R. Martin) writes:
  15. >rcd@raven.eklektix.com (Dick Dunn) writes:
  16. >   >lfd@cbnewsm.cb.att.com (Lee Derbenwick) writes:
  17. >   >|> One reason that I personally dislike very large comments embedded in
  18. >   >|> the code is that they greatly reduce the amount of code within my
  19. >   >|> visual field (whether on a screen or on paper):...
  20. ...
  21. >   [ref another discussion] ...But it's a good point in any case...
  22.  
  23. >But then ... it was just one news item ago that you were enjoining us to
  24. >get tools that suit the job rather than perverting the work to suit the
  25. >tool.  Doesn't that apply to 25-character screens as well?
  26.  
  27. Yes, I still say "get better tools", and that certainly applies to screen
  28. size.  But who's talking about 25-line screens?  I'm writing this on a
  29. 25x80 right now, but I don't do serious code here (nor after this much
  30. brandy:-).  At work I've normally got a 64x80 and a 54x80 side-by-side
  31. (which is what fits with some elbow room for a couple of status-related
  32. things plus enough room to find other windows and yank on them).
  33.  
  34. Responding to an earlier example, I had noted a seven-line comment+code
  35. item as taking up 10% of the screen space...there, I was thinking of a
  36. page-sized screen window (~ 70 lines, not 25).
  37.  
  38. Take a second look at what Lee Derbenwick said--it's the amount of code
  39. within the visual field.  Beyond some point, increasing the amount of
  40. "stuff" on the screen doesn't increase what you can take in.  Once you get
  41. a certain amount, it's not the physical screen limit so much as the eye/
  42. brain limit.  Back to Scott McGregor's notes on chunking.
  43.  
  44. >I'm actually serious -- an acquaintance seriously noted that getting
  45. >full-page screens for their terminals improve productivity substantially
  46. >on a big project, just because it allowed holding a whole function in
  47. >one screenful.
  48.  
  49. I believe it!  I've had displays with about the equivalent of a full page
  50. of text for several years, and I'm convinced it's made me not only more
  51. productive but less likely to make mistakes.  Given how little it costs
  52. (compared to the burdened cost of programmer time), it's foolish not to buy
  53. into it.
  54.  
  55. Seems to me there's more than passing significance to the average size of a
  56. page of text.  The amount of text on one printed page, for common books,
  57. fits within a surprisingly narrow range.  (Newspapers deviate by a lot, but
  58. (a) they're constrained by lack of binding and (b) one page contains
  59. multiple items; you don't expect to find a story covering an entire page.
  60. If you look at the size of a story, or the fraction before continuation on
  61. another page, you come up with an amount in the same range as a book page.)
  62. I think we can push our displays up to the equivalent of a large page of
  63. text, with continuing improvement in the understanding it gives us, but the
  64. returns will start to drop off rapidly after that.  I've played with large
  65. listings, by using an 11x17 printer and relatively small type...other
  66. things really get in the way before you can use the length of the page.
  67.  
  68. The point of that long ramble is that if you've got code with lots of
  69. detailed comments, you can push past a hardware barrier to displaying it,
  70. but you'll still run into eye/brain limits.  THOSE limits--our mental and
  71. physiological limits--we have to take into account when writing code.
  72. -- 
  73. Dick Dunn    rcd@eklektix.com   -or-   raven!rcd    Boulder, Colorado USA
  74.    ...Mr. Natural says, "Use the right tool for the job."
  75.