http://qs321.pair.com?node_id=153288


in reply to Computers and Programming

Unfortunately, sometimes, your understanding and the computer's understanding of the same action take different paths.
When I say
my $string = 'I am a "Perl programmer", you are a "piece of rust"'; $string =~ /"(.*)"/; print "$1\n";
I expect the stupid machine to spit out 'Perl Programmer'. Instead, I get 'Perl programmer", you are a "piece of rust'

The machine has converted some understanding into action. But it wasn't my understanding. :(

Therefore, programming is to translate my understanding into the machine's understanding. :)
$string =~ /"([^"]*)"/; # 'Perl programmer'
_ _ _ _ (_|| | |(_|>< _|

Replies are listed 'Best First'.
Re: Re: Computers and Programming
by tmiklas (Hermit) on Mar 22, 2002 at 00:26 UTC
    Well - what to say?

    Maybe you use a language dialect that the interpreter doesn't understand ;-)
    IMHO each part of the (working) code is an instance of specific art - coding styles differ. I think that mine is ugly (becouse it's mine ;->) and the code i can find here is great (in most cases it's much shorter and faster and still does the same thing)...

    But as i said - it's just my humble oppinion ;-)

    Greetz, Tom.
Re: Re: Computers and Programming
by clemburg (Curate) on Mar 21, 2002 at 10:36 UTC

    You have expressed your stated understanding incorrectly. That's all.

    Christian Lemburg
    Brainbench MVP for Perl
    http://www.brainbench.com