MattJ said:

MattJ

PHP is Perl++

2 years, 1 month ago.

21 comments so far

  • zeen

    I thought you didn't like PHP :)

    2 years, 1 month ago by zeen

  • MattJ

    I don't like Perl either

    2 years, 1 month ago by MattJ

  • zeen

    How about LISP? :)

    2 years, 1 month ago by zeen

  • RickMeasham

    From what I can make out, you're saying perl is better (which in so many respects is true)

    However I don't think you mean to.

    Let's assign the arbitrary value of '10' to perl. And write your pseudocode in real code:

    $php = $perl++

    This says, assign the value of $perl (10) to $php, then increment $perl. So now $php == 10 and $perl == 11

    So I'm guessing you really meant $php = $perl + 1, which is incorrect :-D

    Cheers!

    The Code Pedant

    2 years, 1 month ago by RickMeasham

  • zeen

    Haha, good catch :P

    2 years, 1 month ago by zeen

  • MattJ

    Pedant is not the word... and tell that to the

    2 years, 1 month ago by MattJ

  • MattJ

    people who coined C++ :)

    2 years, 1 month ago by MattJ

  • RickMeasham

    But no, they incremented C. They weren't saying something else was better than C, but that they had incremented C itself

    2 years, 1 month ago by RickMeasham

  • MattJ

    Ok, you win. PHP is ++Perl. hands Rick a cookie

    2 years, 1 month ago by MattJ

  • zeen

    Even that would result in both being equal :)

    2 years, 1 month ago by zeen

  • zeen

    With Perl being incremented first :)

    2 years, 1 month ago by zeen

  • MattJ

    Perl can be as much Perl as it wants, it makes no difference to me :)

    2 years, 1 month ago by MattJ

  • welp

    I might make a Perl IRC bot :P

    2 years, 1 month ago by welp

  • zeen

    I have a PHP Jabber one :)

    2 years, 1 month ago by zeen

  • MattJ

    Just don't make it a Jabber one, or a PHP one. PHP was not designed for bots, and Jabber was not designed for Perl

    2 years, 1 month ago by MattJ

  • MattJ

    @zeen !!!

    2 years, 1 month ago by MattJ

  • zeen

    I don't think any of the mainstream languages were designed for making bots in particular.

    2 years, 1 month ago by zeen

  • MattJ

    Correct, Lua is not mainstream. Besides... Perl is as hacky as IRC, so I don't really mind what welp might do :)

    2 years, 1 month ago by MattJ

  • zeen

    Lol.

    2 years, 1 month ago by zeen

  • RickMeasham

    Perl IRC bots are simple .. we have the entirety of CPAN which includes the Bot::BasicBot. And perl wasn't designed for making bots, but it was designed to deal well with strings. And IRC, like most protocols, is a conversation of strings over a socket.

    PHP, on the other hand was formed (I can't say created because that would infer some intelligence in the forming) as a web-automation language. Trying to force it to do sockets and other non-web things is nuts

    2 years, 1 month ago by RickMeasham

  • MattJ

    I agree :) Perl + IRC go hand-in-hand, PHP is over-used and overrated

    2 years, 1 month ago by MattJ

Sign in to add a comment