Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

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.

Comment on Computers and Programming
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'
    _ _ _ _ (_|| | |(_|>< _|

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

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

      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: 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
      http://www.brainbench.com

        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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (8)
As of 2014-12-26 11:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (171 votes), past polls