home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.software-eng
- Path: sparky!uunet!spool.mu.edu!agate!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!csn!raven!rcd
- From: rcd@raven.eklektix.com (Dick Dunn)
- Subject: Re: average identifier length (was Comments: Code...)
- Message-ID: <1992Dec16.080001@eklektix.com>
- Organization: eklektix - Boulder, Colorado
- References: <12ea/11dbc@jspc.wimsey.bc.ca> <craigh.723767103@cserver> <1992Dec15.131302.22615@b30.ingr.com>
- Date: Wed, 16 Dec 1992 08:00:01 GMT
- Lines: 37
-
- 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.
- --
- Dick Dunn rcd@eklektix.com -or- raven!rcd Boulder, Colorado USA
- ...Mr. Natural says, "Use the right tool for the job."
-