home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gistdev!flint
- From: flint@gistdev.gist.com (Flint Pellett)
- Newsgroups: comp.software-eng
- Subject: Re: average identifier length (was Comments: Code...)
- Message-ID: <1520@gistdev.gist.com>
- Date: 5 Jan 93 19:59:28 GMT
- References: <12ea/11dbc@jspc.wimsey.bc.ca> <craigh.723767103@cserver> <1992Dec15.131302.22615@b30.ingr.com> <1992Dec16.080001@eklektix.com>
- Organization: Global Information Systems Technology Inc., Savoy, IL
- Lines: 45
-
- 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.
-
- Ok, I mostly agree, but there is a limit at which you do have to pay
- some attention to what tools you have, and to times when the world's
- standards conflict with one another. Two examples: 1. I would never
- name a variable "a". Maybe I can search for \<a\>, but there are
- few tools available that are smart enough to skip over all the occurances
- that appear in comments. 2. A good number of years ago I worked in a
- language where the convention "the rest of the world used" was that
- a particular variable began with the two letters "nl" followed by digits.
- (The n denoted integers, the letter l denoted "local".) Unfortunately,
- all the printed output went thru machines where the 1 and l used the
- same character, which meant that an n11 (the eleventh global
- integer) was indistinguishable from nl1: both printed as nll. The
- whole world was using typewriters like that, so I could not just
- blithely say I needed a better printer.
- --
- Flint Pellett, Global Information Systems Technology, Inc.
- 100 Trade Centre Drive, Suite 301, Champaign, IL 61820 (217) 352-1165
- uunet!gistdev!flint or flint@gistdev.gist.com
-