Article View: alt.folklore.computers
Article #620763Re: Nostalgia
From: Scott Lurndal
Date: Tue, 27 Feb 2018 19:30
Date: Tue, 27 Feb 2018 19:30
38 lines
3084 bytes
3084 bytes
Charlie Gibbs <cgibbs@kltpzyxm.invalid> writes: >On 2018-02-27, Scott Lurndal <scott@slp53.sl.home> wrote: > >> J. Clarke <jclarke...@gmail.com> writes: >> >>> On 26 Feb 2018 11:32:49 GMT, Jorgen Grahn <grahn...@snipabacken.se> >>> >>>> It depends on the context. For very local variables I tend to favor >>>> one-letter names like i (for iteration), p, q (pointers), n and m >>>> (quantities and sizes). >>> >>> I used to do that but realized that it's a bad habit for a variety of >>> reasons. (Working in insurance and using APL has a lot to do with it >>> I think). First, single letter variable names are hard to search on. > >That's always been a problem for me too. > >> /\<i\> >> >> will find the variable i (and not get a hit on the letter i when >> part of a word) in vi. > ><tappity, tappity, tappity...> Omigod, you're right! Thanks. >Gotta put that one in my toolbox right beside grep -w. > >>> So are variable names that form parts of common words. >> >> You need a better editor. > >A bit of searching took me to http://vim.wikia.com/wiki/Search_patterns, >which in addition to the above describes the asterisk trick. Wow. >There's a lot more to vi[m] than meets the eye. I especially like the sequence that reverses a set of lines. Useful when defining bitfields that need to be interpreted as big-endian on some hosts and little-endian on others. http://vim.wikia.com/wiki/Reverse_all_lines
Technical Details
Message-ID:
<_kilC.67879$Cy2.65123@fx44.iad>Path:
mbox-mo1.pugleaf.net!m4ni18qte.0!nntp.google.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!post02.iad!fx44.iad.POSTED!not-for-mailReferences:
<p67o2727bv@news1.newsguy.com> <ffga3cFrifbU1@mid.individual.net> <ffgu5uF5nalU15@mid.individual.net> <1313349967.541300884.430961.peter_flass-yahoo.com@news.eternal-september.org> <p6vrnc$ue5$1@dont-email.me> <slrnp97b4c.eu5.grahn+nntp@frailea.sa.invalid> <0lq79dpae03ai000r0690fja58qcud4udu@4ax.com> <slrnp97s31.eu5.grahn+nntp@frailea.sa.invalid> <3ve99dtbi7vu0jda6ut1kcbemr6j4ta28v@4ax.com> <eodlC.106384$NZ2.25177@fx40.iad> <p747tu11ijb@news2.newsguy.com>Show Full Headers
Complete Article Headers
X-Received: by 10.55.161.88 with SMTP id k85mr11052769qke.61.1519759804873; Tue, 27 Feb 2018 11:30:04 -0800 (PST) X-BeenThere: alt.folklore.computers@googlegroups.com Received: by 10.200.19.68 with SMTP id f4ls1256563qtj.2.gmail; Tue, 27 Feb 2018 11:30:03 -0800 (PST) X-Received: by 10.200.19.71 with SMTP id f7mr11455080qtj.23.1519759803127; Tue, 27 Feb 2018 11:30:03 -0800 (PST) MIME-Version: 1.0 Path: mbox-mo1.pugleaf.net!m4ni18qte.0!nntp.google.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!post02.iad!fx44.iad.POSTED!not-for-mail X-newsreader: xrn 9.03-beta-14-64bit Sender: scott@dragon.sl.home (Scott Lurndal) From: scott@slp53.sl.home (Scott Lurndal) Reply-To: sl...@pacbell.net Subject: Re: Nostalgia Newsgroups: alt.folklore.computers References: <p67o2727bv@news1.newsguy.com> <ffga3cFrifbU1@mid.individual.net> <ffgu5uF5nalU15@mid.individual.net> <1313349967.541300884.430961.peter_flass-yahoo.com@news.eternal-september.org> <p6vrnc$ue5$1@dont-email.me> <slrnp97b4c.eu5.grahn+nntp@frailea.sa.invalid> <0lq79dpae03ai000r0690fja58qcud4udu@4ax.com> <slrnp97s31.eu5.grahn+nntp@frailea.sa.invalid> <3ve99dtbi7vu0jda6ut1kcbemr6j4ta28v@4ax.com> <eodlC.106384$NZ2.25177@fx40.iad> <p747tu11ijb@news2.newsguy.com> Lines: 38 Message-ID: <_kilC.67879$Cy2.65123@fx44.iad> X-Complaints-To: ab...@usenetserver.com NNTP-Posting-Date: Tue, 27 Feb 2018 19:30:02 UTC Organization: UsenetServer - www.usenetserver.com Bytes: 2390 Date: Tue, 27 Feb 2018 19:30:02 GMT X-Received-Bytes: 2452 X-Received-Body-CRC: 1756863961 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit