Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Computers and Programming

by gmax (Abbot)
on Mar 21, 2002 at 10:21 UTC ( [id://153288]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://153288]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2024-04-19 16:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found