home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / software / 5000 < prev    next >
Encoding:
Text File  |  1992-12-16  |  2.1 KB  |  48 lines

  1. Newsgroups: comp.software-eng
  2. Path: sparky!uunet!spool.mu.edu!agate!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!csn!raven!rcd
  3. From: rcd@raven.eklektix.com (Dick Dunn)
  4. Subject: Re: average identifier length (was Comments: Code...)
  5. Message-ID: <1992Dec16.080001@eklektix.com>
  6. Organization: eklektix - Boulder, Colorado
  7. References: <12ea/11dbc@jspc.wimsey.bc.ca> <craigh.723767103@cserver> <1992Dec15.131302.22615@b30.ingr.com>
  8. Date: Wed, 16 Dec 1992 08:00:01 GMT
  9. Lines: 37
  10.  
  11. mueller@b30news.b30.ingr.com ( Phil Mueller ) writes:
  12. [argument that you should use ii instead of i, so that you can find it with
  13. a text editor, followed by suggestion that vi can find isolated i as a
  14. token]
  15. >So you're going to force everyone to use vi?
  16. >AAAARRRRGGGGHHHH!!!!
  17.  
  18. No, nothing of the sort, and dammitall, we've already been over this:  The
  19. idea is to use a decent tool.  vi was an example.  If you want to consider
  20. vi a horrible, archaic editor, I won't argue.  (I've used it for a decade,
  21. but I'm a horrible, archaic man.:-)
  22.  
  23. Take it this way: If even stupid old vi can easily distinguish isolated "i"
  24. from the letter embedded in other words, surely any decent editor can do so
  25. at least as easily.
  26.  
  27. THE TOOL IS THE SERVANT, NOT THE MASTER!!!
  28.  
  29. (pardon that sticky caps-lock key...)
  30.  
  31. If the tools you've got are an impediment to writing and manipulating code
  32. the way the rest of the world writes it, you've got crappy tools.  Throw
  33. them away and get better ones.  Do not construct in your code misshapen
  34. monuments to bad tools.
  35.  
  36. >I'm glad someone else uses the 'ii' technique.  Means that there's some
  37. >code I may have to maintain someday that doesn't use 'i' <gag>.
  38.  
  39. The use of a single 'i' as an index variable spreads across more languages
  40. than you've seen, and is backed up by centuries of mathematical usage.  It
  41. *is* well-understood convention, and 'ii' is not.  This is not to say that
  42. long-standing convention and historical precedent can't be wrong...but you
  43. will need more than "AAAARRRRGGGGHHHH!!!!" and "<gag>" to justify flouting
  44. so much tradition.
  45. -- 
  46. Dick Dunn    rcd@eklektix.com   -or-   raven!rcd    Boulder, Colorado USA
  47.    ...Mr. Natural says, "Use the right tool for the job."
  48.