home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / software / 5222 < prev    next >
Encoding:
Internet Message Format  |  1993-01-06  |  2.6 KB

  1. Path: sparky!uunet!gistdev!flint
  2. From: flint@gistdev.gist.com (Flint Pellett)
  3. Newsgroups: comp.software-eng
  4. Subject: Re: average identifier length (was Comments: Code...)
  5. Message-ID: <1520@gistdev.gist.com>
  6. Date: 5 Jan 93 19:59:28 GMT
  7. References: <12ea/11dbc@jspc.wimsey.bc.ca> <craigh.723767103@cserver> <1992Dec15.131302.22615@b30.ingr.com> <1992Dec16.080001@eklektix.com>
  8. Organization: Global Information Systems Technology Inc., Savoy, IL
  9. Lines: 45
  10.  
  11. rcd@raven.eklektix.com (Dick Dunn) writes:
  12.  
  13. >mueller@b30news.b30.ingr.com ( Phil Mueller ) writes:
  14. >[argument that you should use ii instead of i, so that you can find it with
  15. >a text editor, followed by suggestion that vi can find isolated i as a
  16. >token]
  17. >>So you're going to force everyone to use vi?
  18. >>AAAARRRRGGGGHHHH!!!!
  19.  
  20. >No, nothing of the sort, and dammitall, we've already been over this:  The
  21. >idea is to use a decent tool.  vi was an example.  If you want to consider
  22. >vi a horrible, archaic editor, I won't argue.  (I've used it for a decade,
  23. >but I'm a horrible, archaic man.:-)
  24.  
  25. >Take it this way: If even stupid old vi can easily distinguish isolated "i"
  26. >from the letter embedded in other words, surely any decent editor can do so
  27. >at least as easily.
  28.  
  29. >THE TOOL IS THE SERVANT, NOT THE MASTER!!!
  30.  
  31. >(pardon that sticky caps-lock key...)
  32.  
  33. >If the tools you've got are an impediment to writing and manipulating code
  34. >the way the rest of the world writes it, you've got crappy tools.  Throw
  35. >them away and get better ones.  Do not construct in your code misshapen
  36. >monuments to bad tools.
  37.  
  38. Ok, I mostly agree, but there is a limit at which you do have to pay
  39. some attention to what tools you have, and to times when the world's
  40. standards conflict with one another.  Two examples:  1. I would never
  41. name a variable "a".  Maybe I can search for \<a\>, but there are
  42. few tools available that are smart enough to skip over all the occurances
  43. that appear in comments.  2. A good number of years ago I worked in a
  44. language where the convention "the rest of the world used" was that
  45. a particular variable began with the two letters "nl" followed by digits.
  46. (The n denoted integers, the letter l denoted "local".)  Unfortunately, 
  47. all the printed output went thru machines where the 1 and l used the
  48. same character, which meant that an n11 (the eleventh global
  49. integer) was indistinguishable from nl1: both printed as nll.  The
  50. whole world was using typewriters like that, so I could not just
  51. blithely say I needed a better printer.
  52. -- 
  53. Flint Pellett, Global Information Systems Technology, Inc.
  54. 100 Trade Centre Drive, Suite 301, Champaign, IL  61820     (217) 352-1165
  55. uunet!gistdev!flint or flint@gistdev.gist.com
  56.