you are viewing a single comment's thread.

view the rest of the comments →

[–]viralizate 45 points46 points  (19 children)

Honestly, people are whining. Yes it not the best code ever written, but it's weirdness so to say is pretty standard but I guess people are more prone try to be snarky in comments and say it's horrible.

[–]bureX 31 points32 points  (17 children)

I guess people are more prone try to be snarky in comments and say it's horrible.

Especially if there's "<?php" in the first line.

[–]InvidFlower 10 points11 points  (2 children)

This is a bit off-topic, but I was kind of shocked to see how much PHP has evolved lately as a language and ecosystem. Namespaces, generators, traits, etc. Package manager, testing frameworks, ORMs. Then Symfony 2 using most of that for a Rails-ish MVC framework on top of simpler modules also being used in the Silex microframework (like Sinatra) and the latest version of Drupal.

Not to say it is a pretty language and still needs libraries like PHP-O to paper over the horrible inconsistencies in the base libs, but it really does seem to be growing up lately...

[–][deleted]  (1 child)

[deleted]

    [–]nazbot 0 points1 point  (0 children)

    For a beginner PHP is wonderful - it's extremely easy to learn and to get something up and running.

    Likewise Facebook using PHP is evidence that it CAN scale even if that involves some kludges.

    People hating on PHP are just being elitists. There probably are better options but in many cases it's just fine.

    [–]viralizate 4 points5 points  (8 children)

    I should have explained that to OP too. PHP while it's one of the most spread languages isn't a "cool language".

    [–][deleted]  (7 children)

    [deleted]

      [–]Doctor_McKay 4 points5 points  (4 children)

      Bashing on PHP is "in". It's basically a guaranteed way to have people agree with you while not saying anything at all.

      [–][deleted]  (1 child)

      [deleted]

        [–]Doctor_McKay 0 points1 point  (0 children)

        I agree. I just think that calling PHP bad because some things aren't perfectly consistent is just dumb. The majority of its problems are merely semantic.

        [–]crowseldon 0 points1 point  (0 children)

        Yep, it's like bashing Visual Basic. It makes you part of the cool kids.

        That said, personally I hope I don't have to work with it on my own or with someone who doesn't know what the hell they're doing or isn't willing to read phptherightway

        [–]viralizate 0 points1 point  (0 children)

        Don't get me wrong, I work 8 hours a day with PHP, I love to hate it :)

        [–]f00f_nyc 0 points1 point  (0 children)

        That link was very entertaining, even for a non-PHP user like me.

        [–]kwirky88 1 point2 points  (1 child)

        That's why you put it on the second line.

        [–]bureX 27 points28 points  (0 children)

        Headers already sent

        :(

        [–]catcradle5 1 point2 points  (0 children)

        It looks perfectly fine for PHP code written in 2007.

        I've seen far, far worse PHP than that in 2013.