home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / edu / 1358 < prev    next >
Encoding:
Internet Message Format  |  1992-08-26  |  2.0 KB

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