home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / software / 5052 < prev    next >
Encoding:
Internet Message Format  |  1992-12-18  |  2.3 KB

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