home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!haven.umd.edu!darwin.sura.net!zaphod.mps.ohio-state.edu!usc!news
- From: ajayshah@almaak.usc.edu (Ajay Shah)
- Newsgroups: comp.edu
- Subject: Re: Small Language Wanted
- Date: 26 Aug 1992 10:39:57 -0700
- Organization: University of Southern California, Los Angeles, CA
- Lines: 33
- Sender: ajayshah@almaak.usc.edu (Ajay Shah)
- Message-ID: <l9ngfdINNgj5@almaak.usc.edu>
- References: <DAVIS.92Aug23010605@pacific.mps.ohio-state.edu> <WVENABLE.92Aug26154731@algona.stats.adelaide.edu.au> <1992Aug26.151818.1@vxdesy.desy.de>
- NNTP-Posting-Host: almaak.usc.edu
-
- pawlak@vxdesy.desy.de writes:
-
- >In article <WVENABLE.92Aug26154731@algona.stats.adelaide.edu.au>, wvenable@algona.stats.adelaide.edu.au (Bill Venables) writes:
- >> I'll accept all the other points, but NOT this one. The concept of "case"
- >> is a printing artefact and makes no sense in this context. What's wrong
- >> with using all 52 letters in the character set? What could be more natural
- >> than using "x" for a singly indexed array and "X" for a doubly indexed one?
-
- >Did you ever try to DISCUSS your code with someone? How do you pronounce
- >capital letters then? Some people have 'verbal' memory (me for instance)
- >- I remember the word, not its graphical representation (therefore I also
- >have a lot of trouble if 'unnatural' identifiers are used). What to do
- >with such people? They will guaranteed mix such symbols... MixeD cASe
- >inPUT? YES! cASe seSitIviTy? NO!
-
- Case is a valuable tool for revealing the structure of the
- code on screen. You will quickly evolve rules of thumb for
- when uppercase is used. Different people choose different
- rules, but the point is: combined with good rules of thumb,
- case sensitivity is an excellent policy for making code more
- readable on screen.
-
- The rules I use, for example are:
- - all caps only (and always) for #defines
- - all typedefs start with first capital letter (like K&R)
- - otherwise almost never use uppercase anywhere.
-
- With these rules in hand, my code is easier to take in with
- case sensitivity than without.
-
- -ans.
- --
- Ajay Shah, (213)749-8133, ajayshah@usc.edu
-