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

Re^2: The complicated problem

by assemble (Friar)
on Apr 02, 2008 at 17:23 UTC ( #678010=note: print w/ replies, xml ) Need Help??


in reply to Re: The complicated problem
in thread The complicated problem

What's really sad about that site is that some of the translations are wrong. He treats PHP arrays like normal arrays--but they aren't: every array in PHP is an associative array. Then I saw this gem:

Perl: $a = keys(%h); $b = values(%h); PHP: $a = array_keys($h); $b = array_values($h);
The Perl will give you the counts, the PHP returns the actual values...

And that's just the beginning of what this guy says you should do... I'm pretty sure that he doesn't know Perl, but at least it gave me something laugh about :)


Comment on Re^2: The complicated problem
Download Code
Re^3: The complicated problem
by CountZero (Bishop) on Apr 02, 2008 at 19:54 UTC
    Ah, you know what they say in Italian:
    Traduttore traditore

    Translator, traitor

    CountZero

    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

      Um... Did you translate that from Italian to English? ;-)

        ++ LOL

        Actually I first translated it to Dutch and then to English. So I must be a double-agent! ;-)

        CountZero

        A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (11)
As of 2014-09-17 08:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (67 votes), past polls