• can't think of any more stupid names (unregistered)

    i/p i/p array!

  • Industrial Automation Engineer (unregistered)

    Awrhh! That's an awrticle gone awry!

  • Debra (unregistered)

    The only thing that I can think of is the author having a Perl background, since it's common to use (my $foo, my $bar) = @_ as the first line in functions to give the parameters actual names. However, this WTF is doing exactly the opposite ... eh, I'm out of ideas.

  • Tobias Olofsson (unregistered)

    So this function assumes everyone is male (Mr. )...

  • (nodebb)

    It doesn't matter that $fullName assignment doesn't work as intended, because the result is never used anyway.

    Two articles in a row where, no matter who you are, you get "Mr" added to their name and then taken away again. I guess we shouldn't be surprised at a positive correlation between being a bad developer, and acting as if the world is populated entirely by English-speaking men.

  • (nodebb) in reply to Paddles

    It all came together. The code from this article drove the developer in the previous article to get rid of the "Mr". It's like a prequel, the Better Call Saul to the Breaking Bad.

  • Sauron (unregistered)

    @Remy Porter Yes, you are an array of biological cells (unless you've been an AI telling us stories all this time, but that I don't want to know).

  • Aitkiar (unregistered)

    Wellcome to the new paradigm: Array Oriented Programing.

  • Randal L. Schwartz (google) in reply to Debra

    (my $foo, my $bar) = @_

    More idiomatically written as my($foo, $bar) = @_;

  • Erich (unregistered) in reply to Aitkiar

    "Meet the new boss/" (J at jsoftware.com) "Same as the old boss" (APL with ASCII and adverbs)

  • Yikes (unregistered) in reply to Tobias Olofsson

    Correct, but there's not enough information to judge that.

    Thinking of us all as arrays makes me think that it would be a really cool product to have a 3D voxel plot of your body as from an MRI.

  • Local (unregistered) in reply to Tobias Olofsson

    Tobais, it was written for a monastery.

  • Olivier (unregistered)

    It will not work anyway, as there is a typo in the array name for the second parameter. $fullName = 'Mr.' . $names[1] . ' ' . $name[2];

    => name vs names.

  • Duston (unregistered)
    Comment held for moderation.

Leave a comment on “List All Your Arguments”

Log In or post as a guest

Replying to comment #:

« Return to Article