home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / ada / 2535 < prev    next >
Encoding:
Text File  |  1992-09-03  |  2.1 KB  |  51 lines

  1. Newsgroups: comp.lang.ada
  2. Path: sparky!uunet!stanford.edu!leland.Stanford.EDU!fanaraaken.Stanford.EDU!vera
  3. From: vera@fanaraaken.Stanford.EDU (James S. Vera)
  4. Subject: Re: Play 20K expressions again, Sam
  5. Message-ID: <vera.715572375@fanaraaken.Stanford.EDU>
  6. Sender: news@leland.Stanford.EDU (Mr News)
  7. Organization: Program Analysis and Verification Group, Stanford University
  8. References: <9208281536.AA01868@ajpo.sei.cmu.edu>
  9. Date:  4 Sep 92 02:06:15 GMT
  10. Lines: 39
  11.  
  12. byrley@NTSC-RD.NAVY.MIL ("Paul Byrley") writes:
  13.  
  14.  
  15. >My opinion is that if a person is hanging together large amounts of
  16. >code and will support it himself forever (promises not to quit or die
  17. >before his employer ceases to need the software), then 20K
  18. >expressions is ok. (Does one expression = one LOC or are we talking
  19. >one expression = LOC/4 to LOC/8?)  If a taxpayer (even a federal
  20. >research grant comes from taxpayers) is going to have to pay extra for
  21. >the indulgence of a 20K expression programmer, then I thank Verdix
  22. >for their choice. Actually I wish it were lower.  I remember, years ago,
  23. >learning that the reason my latest FORTRAN "gem" was not compiling
  24. >was that I had overrun the compiler tables- that program was about
  25. >1000 LOC and I was briefly indignant also.  Yeah Sam, that was half
  26. >a box of cards, red ones and blue ones and even green ones, with a
  27. >diagonal magic marker across the top so you could maybe recover
  28. >when someone dropped them.
  29.  
  30. Not to flame Mr. Byrley but the above seems to fit so well into the my
  31. sterotype of Ada ("please constrain me yet another way") I had to
  32. laugh.  Geez, were talking machine generated code here.  I probably
  33. shouldn't tell you about the extensive use of goto my parr of a
  34. transformer uses :-)
  35.  
  36. As for the relation of LOC and expression, I'm not sure, depends on
  37. the code, but keep in mind subexpression count as well, i.e., 
  38.  
  39.    i := j + k +l
  40.  
  41.  
  42. has 6 expressions.
  43.  
  44. Regardless, LOC limits are for style guides, not compilers.
  45.  
  46. James S. Vera      |         Internet           |Standard Disclaimers
  47. Stanford University|   vera@anna.stanford.edu   |Blah Blah Blah Blah
  48. +1.415.723.1089    |    FAX +1.415.725.7398     |
  49.  
  50.  
  51.