home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.edu:1594 comp.lang.fortran:3489
- Newsgroups: comp.edu,comp.lang.fortran
- Path: sparky!uunet!sun-barr!ames!elroy.jpl.nasa.gov!nntp-server.caltech.edu!seqvax.caltech.edu!mathog
- From: mathog@seqvax.caltech.edu (David Mathog)
- Subject: Re: Case Sensitivity (was Re: Small Language Wanted)
- Message-ID: <9SEP199210424176@seqvax.caltech.edu>
- News-Software: VAX/VMS VNEWS 1.41
- Sender: news@cco.caltech.edu
- Nntp-Posting-Host: seqvax.bio.caltech.edu
- Organization: Division of Biolgy, CALTECH
- 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>
- Distribution: usa
- Date: Wed, 9 Sep 1992 18:42:00 GMT
- Lines: 29
-
- In article <999@engcon.marshall.ltv.com>, rodgers@engcon.UUCP (KMRODGERS) writes...
-
- >I hate contributing to this particular religious warfare (hence the changed
- >Subject: line), but I think that case sensitivity, WHEN PROPERLY USED, is
- >(IMHO) a Good Thing. The simple case cited above shows the bad features of
- >case sensitivity, but sometimes case is relevant to the problem domain.
- >Example: most of my work involves air vehicle stability and control
- >(Advertisement!), and I find myself constantly having to write equations of
- >motion routines for various analysis tools. For s&c, several quantities
- >known as aerodynamic stability derivatives are used. These are represented
- >in handwritten or typeset form as as capital "C" followed by various upper
- >and lowercase subscripts. The case of the subscript is important! E.g.,
- >cap "C" sub "L" is lift coefficient, while cap "C" sub "l" is rolling moment
- >coefficient -- two drastically different quantities. It is most convenient
- >and readable (at least to an s&c engineer, and nobody else could/would have
- >an interest in these particular codes) to directly translate these in my
- >code(s) as CL and Cl, respectively.
-
- Sure, but it's a recipe for maintenance problems should one of the 99.999%
- of C programmers who aren't s&c engineers ever be called upon to modify the
- code. That said, Fortran code with variables named I12, I21, I13, I31 (and
- so forth) is just about as difficult to maintain.
-
- There must be some studies on the rate at which programmers misread code as
- a function of variable length and format - anybody out there know the
- results?
-
- David Mathog
- mathog@seqvax.caltech.edu
-