Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Computers and Programming

by clemburg (Curate)
on Mar 21, 2002 at 09:48 UTC ( #153283=perlmeditation: print w/replies, xml ) Need Help??

Computers are tools for converting understanding into action.
Programming is to achieve and express an understanding that is detailed enough for this to work.

Replies are listed 'Best First'.
Re: Computers and Programming
by gmax (Abbot) on Mar 21, 2002 at 10:21 UTC
    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'
    _ _ _ _ (_|| | |(_|>< _|
      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.

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

      Christian Lemburg
      Brainbench MVP for Perl

Re: Computers and Programming
by Biker (Priest) on Mar 21, 2002 at 10:25 UTC

    Computers always do what you tell them to do. Which is not necessarily what you want them to do.

    Everything went worng, just as foreseen.

      > fortune -m 'damned machine' %% (fortunes) I really hate this damned machine I wish that they would sell it. It never does quite what I want But only what I tell it.

      Christian Lemburg
      Brainbench MVP for Perl

        Heh, I wasn't aware of that. I've heard and repeated that statement for more than twenty years. I guess someone was the first to state it, but I've never heard anyone claim to be the origin of the saying.

        Not even 'fortune' has a reference to the originator?

        Everything went worng, just as foreseen.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlmeditation [id://153283]
Approved by root
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (1)
As of 2021-12-02 01:26 GMT
Find Nodes?
    Voting Booth?
    R or B?

    Results (16 votes). Check out past polls.