home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / edu / 1594 < prev    next >
Encoding:
Internet Message Format  |  1992-09-09  |  2.3 KB

  1. Xref: sparky comp.edu:1594 comp.lang.fortran:3489
  2. Newsgroups: comp.edu,comp.lang.fortran
  3. Path: sparky!uunet!sun-barr!ames!elroy.jpl.nasa.gov!nntp-server.caltech.edu!seqvax.caltech.edu!mathog
  4. From: mathog@seqvax.caltech.edu (David Mathog)
  5. Subject: Re: Case Sensitivity (was Re: Small Language Wanted)
  6. Message-ID: <9SEP199210424176@seqvax.caltech.edu>
  7. News-Software: VAX/VMS VNEWS 1.41    
  8. Sender: news@cco.caltech.edu
  9. Nntp-Posting-Host: seqvax.bio.caltech.edu
  10. Organization: Division of Biolgy, CALTECH
  11. References: <DAVIS.92Aug23010605@pacific.mps.ohio-state.edu> <1992Aug25.034553.2990@linus.mitre.org> <1992Aug25.104211.1@vxdesy.desy.de> <999@engcon.marshall.ltv.com>
  12. Distribution: usa
  13. Date: Wed, 9 Sep 1992 18:42:00 GMT
  14. Lines: 29
  15.  
  16. In article <999@engcon.marshall.ltv.com>, rodgers@engcon.UUCP (KMRODGERS) writes...
  17.  
  18. >I hate contributing to this particular religious warfare (hence the changed
  19. >Subject: line), but I think that case sensitivity, WHEN PROPERLY USED, is
  20. >(IMHO) a Good Thing.  The simple case cited above shows the bad features of
  21. >case sensitivity, but sometimes case is relevant to the problem domain.
  22. >Example: most of my work involves air vehicle stability and control
  23. >(Advertisement!), and I find myself constantly having to write equations of
  24. >motion routines for various analysis tools.  For s&c, several quantities
  25. >known as aerodynamic stability derivatives are used.  These are represented
  26. >in handwritten or typeset form as as capital "C" followed by various upper
  27. >and lowercase subscripts. The case of the subscript is important!  E.g.,
  28. >cap "C" sub "L" is lift coefficient, while cap "C" sub "l" is rolling moment
  29. >coefficient -- two drastically different quantities.  It is most convenient
  30. >and readable (at least to an s&c engineer, and nobody else could/would have
  31. >an interest in these particular codes) to directly translate these in my
  32. >code(s) as CL and Cl, respectively.
  33.  
  34. Sure, but it's a recipe for maintenance problems should one of the 99.999%
  35. of C programmers who aren't s&c engineers ever be called upon to modify the
  36. code.  That said, Fortran code with variables named I12, I21, I13, I31 (and 
  37. so forth) is just about as difficult to maintain.
  38.  
  39. There must be some studies on the rate at which programmers misread code as
  40. a function of variable length and format - anybody out there know the
  41. results? 
  42.  
  43. David Mathog
  44. mathog@seqvax.caltech.edu
  45.