• 516052 (unregistered)

    "Hello", said the stranger speaking to the others alerting them to his presence. Not that he needed to. But it was what little courtesy he could offer given what was to happen next. Email and password had always been thick. They were each others ride or die. Unfortunately for them fate had chosen die. And Bobby... Bobby was here to deliver.

  • Jaroslav (unregistered)

    Y'know what they say: "Live and let die"

  • Rob (unregistered)

    Looks like PHP to me...

  • Yazeran (unregistered) in reply to Rob

    Yes, it is definitely not Perl a Perl does not have the public keyword (unless they managed to make something really funky with overloading).

  • (nodebb)

    I suspect they wanted to disable the route.

    Then why didn't they just, well, you know, disable the route?

  • (nodebb) in reply to Rob

    Looks like PHP to me...

    That's because PHP looks like Perl.

  • SumYungGai (unregistered)

    echo 'Hello, my name is Inigo Montoya. You killed my father. Prepare to'; die;

  • (nodebb) in reply to Rob

    The code is neither Perl and also not quite PHP either. For one, there's no signals on the variables.

  • (nodebb) in reply to gordonfish

    SIgnals? Do you mean dollar signs? There aren't any variables at all.

  • 516052 (unregistered) in reply to gordonfish

    The code is neither Perl and also not quite PHP either. For one, there's no signals on the variables.

    It's murder, is what it was, clear as day.

    Two stiffs in a motel room in the shady side of town. The sort of place you went to when you wanted no witnesses. And sure enough, the locals weren't talking. Those that hadn't split when they heard the gunshots were all either too drunk, too high or too stupid to have noticed anything. And the caretaker was more concerned with the stain in the carpet than the poor saps that bought it in one of her rooms.

    Cases like this made me wonder why I joined the force. A week ago these two were a bunch of nobodies scraping by on the underside of society. A week from now they'll be just another cold case filed away with the rest of them.

    A younger me might have hoped this time would be different. That just this once someone would care. But I knew better. Yet I had to try all the same.

  • (nodebb)

    die if Perl;

    There ^^^ I fixed it!

  • Tinkle (unregistered)

    It's murder in the func store

  • zradradradcek (unregistered)

    Hengist: [sedated and laughing, as Kirk carries him out] You'll die. Die, die, die, everybody die. Kill, kill, kill you all.

  • MRAB (unregistered) in reply to gordonfish

    I think you meant "sigil".

  • Brett Thwaites (unregistered)

    Isn't "die" in Perl just "throw" or "raise" in other languages?

  • COBOL Dilettante (unregistered)

    I called the function

    echo
    , just to watch it
    die
    ....

  • codedr (unregistered)

    This doesn't look like any perl i've ever written. The seach engine says thus:

    This code is written in PHP, specifically using the Laravel framework (likely version 4.x or 5.x based on the specific syntax like Input::only and Redirect::back()).

    Key Identifiers:

    • public function store(): This is standard PHP object-oriented syntax for declaring a public method, commonly used inside Laravel controllers for handling HTTP POST requests.
    • $ variables: PHP denotes variables using a dollar sign (though none are explicitly instantiated here, the structure aligns with PHP).
    • Auth::attempt(...), Input::only(...), Redirect::back(): These are Laravel Facades, a structural pattern unique to the Laravel framework that provides static-like interfaces to classes in the service container.
    • echo 'Hello'; die;: The die or exit; statement coupled with echo is a classic debugging technique in PHP to halt script execution immediately.
  • (nodebb) in reply to Brett Thwaites

    Isn't "die" in Perl just "throw" or "raise" in other languages?

    No. It is the equivalent of exit(something_not_EXIT_SUCCESS); in C/C++. I wouldn't have described that as either "throw" or "raise".

  • MangusPI (unregistered) in reply to Brett Thwaites

    Yes die() can be used that way, though it also has try, catch/, andfinally` which is much more modern.

  • MangusPI (unregistered) in reply to Steve_The_Cynic

    In an eval context, it was the old way to throw an exception, though try, catch have been around and are the preferred, modern way to handler that. Also the code in the article is not Perl code.

  • Officer Johnny Holzkopf (unregistered)

    The error message "Oops! Fails" is also top notch and fully consistent with today's trend to be funny about program errors. Ohaha! Oopsie, huh... something happened! Hehe! Your PC is broken. :) Try again later.

  • (nodebb) in reply to SumYungGai

    Beautifully put.

  • (nodebb)

    Auth::attempt(Input::only(... and the ->with_input() at the end makes me think it's old Laravel-framework PHP?

  • 516052 (unregistered)

    Hm.... I'll wait for more messages. Maybe one of them will inspire me to continue the story.

  • (nodebb) in reply to MRAB

    I think you meant "sigil".

    Yes, thank you. Autocorrect really got me there.

  • Brett Thwaites (unregistered) in reply to MangusPI

    Maybe you're right, but which other language has "die" as a keyword (other than the "once Perl6" Raku)?

  • (nodebb) in reply to Brett Thwaites

    but which other language has "die"

    PHP has a die() built-in function, an alias for exit().

Leave a comment on “Death of the Auth-Er”

Log In or post as a guest

Replying to comment #:

« Return to Article