Updated: 10/5/2002; 9:47:38 AM.

A QA Guy's Radio Weblog
Thoughts from Dave Liebreich


daily link  Thursday, May 02, 2002


About George Orwell
In Orwell's own mind there was an inextricable connection between language and truth, a conviction that by using plain and unambiguous terminology one could forbid oneself the comfort of certain falsehoods and delusions. Every time you hear a piece of psychobabble or propaganda -- "People's princess," say, or "collateral damage," or "peace initiative" -- it is good to have a well-thumbed collection of his essays nearby. His main enemy in discourse was euphemism, just as his main enemy in practice was the abuse of power, and (more important) the slavish willingness of people to submit to it. [LA Weekly, via Arts and Letters Daily]   11:10:20 PM  permalink  

TMTOWTDI

I love Perl. Here's one solution to an interview question I was just asked to solve:

Create a subroutine, in the language of your choice, that "compresses" the string "aaaabcccdd" to "4ab3c2d". The goal is an abstraction that could take any input of ascii characters.

So I wrote:

$string_to_be_converted =~ s/((.)\2+)/length($1) . $2/egs;

:-)

Then I wrote the (relatively) long, drawn-out algorithm of checking each character against the previous one while walking through the string. But the one-liner still makes me grin.  2:26:21 PM  permalink  


Tom Stoppard. "It is better to be quotable than to be honest." [Quotes of the Day]  10:28:29 AM  permalink  

 
May 2002
Sun Mon Tue Wed Thu Fri Sat
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  
Apr   Jun
Subscribe to "A QA Guy's Radio Weblog" in Radio UserLand.

Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.
Click here to visit the Radio UserLand website.

jenett.radio.simplicity.1.3R



Copyright 2002 © Dave Liebreich.
Last update: 10/5/2002; 9:47:38 AM.