home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.software-eng
- Path: sparky!uunet!europa.asd.contel.com!howland.reston.ans.net!usc!cs.utexas.edu!sun-barr!ames!george.arc.nasa.gov!lehman
- From: lehman@george.arc.nasa.gov (John Lehman -- GDP)
- Subject: Just how sophisticated should we assume progrr & her/his tools to be?
- Message-ID: <1992Dec16.004059.15927@news.arc.nasa.gov>
- Summary: i, ii, \<i\>, "_any_" editor can; simple method for simple purpose.
- Sender: usenet@news.arc.nasa.gov
- Organization: NASA Ames Research Center, Moffett Field, CA
- Date: Wed, 16 Dec 1992 00:40:59 GMT
- Lines: 51
-
-
- >Subject: Re: average identifier length (was Comments: Code...)
- >Message-ID: <1992Dec15.131302.22615@b30.ingr.com>
- >
- >>>> > "i" and "j" are bad loop indices
- >>>> No, they're not.
- >>>Yes, they are.
- >>> there is a second consideration: searching. When you
- >>>want to see where variable 'i' is used, you are going to get a number of
- >>>false hits. Recommendation: use 'ii', 'jj', etc.
- >>
- >>If you are using vi to look at your code then you can find all uses of
- >>any "word" by specifying your search as \<word\>.
- >
- >So you're going to force everyone to use vi?
- >AAAARRRRGGGGHHHH!!!!
-
-
- This topic was covered a few weeks ago, when _I_ recommended ii,
- and got a reply post to the effect that _any_ respectable editor
- can do a word search.
-
- So, IMO, the question is, just how sophisticated should we
- assume programmers and their tools to be?
-
- Should a person, who wants to find a string, have to know
- more than one string search command?
-
- Should anyone who calls herself a programmer
-
-
- Regarding the taste in editors: I chose vi when I found out
- that it is on all Unix systems. Because of that, I haven't
- had to learn a new editor in years, which is a relief. But
- I was using vi for years before I learned (a few weeks ago)
- how to do \<i\>. By the way, \<i\> looks reasonable, because
- at least some versions of grep or sed would use that syntax.
-
-
- >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>.
-
-
- So, there were at least 3 of us who were using "ii". I'm not
- quite sure how sophisticated -- e.g., \<i\> -- I want to be;
- but lately I've been using "i" because it looks elegant (the i of
- the beholder), being the shortest possible name -- one less keystroke,
- times # variables times # modules times # programmers. But I'm
- sentimental about "ii".
-
- lehman@ames.arc.nasa.gov
-