Re: [RndTbl] Roundtable Digest, Vol 113, Issue 2
On 14-05-13 12:00 PM, roundtable-request@muug.mb.ca wrote:
Send Roundtable mailing list submissions to roundtable@muug.mb.ca
To subscribe or unsubscribe via the World Wide Web, visit http://www.muug.mb.ca/mailman/listinfo/roundtable or, via email, send a message with subject or body 'help' to roundtable-request@muug.mb.ca
You can reach the person managing the list at roundtable-owner@muug.mb.ca
When replying, please edit your Subject line so it is more specific than "Re: Contents of Roundtable digest..."
Today's Topics:
1. The Oldest Rivalry in Computing (John Lange)
----------------------------------------------------------------------
Message: 1 Date: Mon, 12 May 2014 15:42:28 -0500 From: John Lange <john@johnlange.ca> To: "Roundtable, MUUG" <Roundtable@muug.mb.ca> Subject: [RndTbl] The Oldest Rivalry in Computing Message-ID: <CAPfXosj4MbcxL_X40Ef4jk31jyYuDpdrjwCR1mJJbP=ewNNiwA@mail.gmail.com> Content-Type: text/plain; charset="utf-8"
This mailing list is the only place I can think of where I could possibly share this article:
"Emacs and Vi have been battling for text-editor supremacy among programmers for 40 years."
http://www.slate.com/articles/technology/bitwise/2014/05/oldest_software_riv...
John
On 13/05/2014 2:08 PM, Michael Doob wrote:
Date: Mon, 12 May 2014 15:42:28 -0500 From: John Lange <john@johnlange.ca> To: "Roundtable, MUUG" <Roundtable@muug.mb.ca> Subject: [RndTbl] The Oldest Rivalry in Computing
This mailing list is the only place I can think of where I could possibly share this article:
"Emacs and Vi have been battling for text-editor supremacy among programmers for 40 years."
http://www.slate.com/articles/technology/bitwise/2014/05/oldest_software_riv...
John ... Note that the author's vi example to put quotes around lines:
%s/\(^\|$\)/\"/g
only works if ^ .ne. $, that is, the line is nonempty.
(Sorry, mathematicians just love to point out things like this).
Maybe this would work better... %s/.*/"&"/ It's a lot briefer, and IMHO, more obvious. Computer Scientists (and old-time vi aficionados) love to optimize things like this... :) -- Gilbert E. Detillieux E-mail: <gedetil@muug.mb.ca> Manitoba UNIX User Group Web: http://www.muug.mb.ca/ PO Box 130 St-Boniface Phone: (204)474-8161 Winnipeg MB CANADA R2H 3B4 Fax: (204)474-7609
Computer Scientists (and old-time vi aficionados) love to optimize things like this... :)
Even if it doesn't produce more obfuscated code? :) Hartmut Sager On 13 May 2014 14:39, Gilbert E. Detillieux <gedetil@cs.umanitoba.ca> wrote:
On 13/05/2014 2:08 PM, Michael Doob wrote:
Date: Mon, 12 May 2014 15:42:28 -0500
From: John Lange <john@johnlange.ca> To: "Roundtable, MUUG" <Roundtable@muug.mb.ca> Subject: [RndTbl] The Oldest Rivalry in Computing
This mailing list is the only place I can think of where I could possibly share this article:
"Emacs and Vi have been battling for text-editor supremacy among programmers for 40 years."
http://www.slate.com/articles/technology/bitwise/2014/05/ oldest_software_rivalry_emacs_and_vi_two_text_editors_used_ by_programmers.html
John
...
Note that the author's vi example to put quotes around lines:
%s/\(^\|$\)/\"/g
only works if ^ .ne. $, that is, the line is nonempty.
(Sorry, mathematicians just love to point out things like this).
Maybe this would work better...
%s/.*/"&"/
It's a lot briefer, and IMHO, more obvious.
Computer Scientists (and old-time vi aficionados) love to optimize things like this... :)
-- Gilbert E. Detillieux E-mail: <gedetil@muug.mb.ca> Manitoba UNIX User Group Web: http://www.muug.mb.ca/ PO Box 130 St-Boniface Phone: (204)474-8161 Winnipeg MB CANADA R2H 3B4 Fax: (204)474-7609 _______________________________________________ Roundtable mailing list Roundtable@muug.mb.ca http://www.muug.mb.ca/mailman/listinfo/roundtable
Note that the author's vi example to put quotes around lines: %s/\(^\|$\)/\"/g only works if ^ .ne. $, that is, the line is nonempty. (Sorry, mathematicians just love to point out things like this).
In other words, the author ignored "boundary conditions" - touché! Or is this more like a "degenerate case"? Hartmut Sager On 13 May 2014 14:08, Michael Doob <mdoob@ad.umanitoba.ca> wrote:
On 14-05-13 12:00 PM, roundtable-request@muug.mb.ca wrote:
Send Roundtable mailing list submissions to roundtable@muug.mb.ca
To subscribe or unsubscribe via the World Wide Web, visit http://www.muug.mb.ca/mailman/listinfo/roundtable or, via email, send a message with subject or body 'help' to roundtable-request@muug.mb.ca
You can reach the person managing the list at roundtable-owner@muug.mb.ca
When replying, please edit your Subject line so it is more specific than "Re: Contents of Roundtable digest..."
Today's Topics:
1. The Oldest Rivalry in Computing (John Lange)
----------------------------------------------------------------------
Message: 1 Date: Mon, 12 May 2014 15:42:28 -0500 From: John Lange <john@johnlange.ca> To: "Roundtable, MUUG" <Roundtable@muug.mb.ca> Subject: [RndTbl] The Oldest Rivalry in Computing Message-ID: <CAPfXosj4MbcxL_X40Ef4jk31jyYuDpdrjwCR1mJJbP=e wNNiwA@mail.gmail.com> Content-Type: text/plain; charset="utf-8"
This mailing list is the only place I can think of where I could possibly share this article:
"Emacs and Vi have been battling for text-editor supremacy among programmers for 40 years."
http://www.slate.com/articles/technology/bitwise/2014/05/ oldest_software_rivalry_emacs_and_vi_two_text_editors_used_ by_programmers.html
John
participants (3)
-
Gilbert E. Detillieux -
Hartmut W Sager -
Michael Doob