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