15

is php the best language in the world?

Comments
  • 15
  • 7
    @Aitkotw let's stick to Boolean convention
    !true.
  • 5
    <?php
    echo "Yes.";
    ?>
  • 2
    due to the fact that php syntax actually is written in english, I'd also say !1. 👌😂 anyway this does mean, that I think en is the best language 😉 mine would be bavarian ♥️
  • 2
    $yes = true;
  • 0
    Sounds great but its not the best but best in web dev at least
    Also
    Welcome to devRant
  • 5
    There's no best language, otherwise all the other languages were superfluous
  • 2
  • 2
    Till you not try something better yes
  • 3
    The best language is assembly
  • 0
    If you want to build a website then php's great, if you want to build anything else... Then not so much.
  • 7
    Definitely.

    Wow that was a lot of sarcasm
  • 4
    @cafecortado I prefer binary
  • 3
    I like it for web dev. If possible PHP 7.1, nice PDO for DB access, composer for dependencies and static types for funtion arguments as well as returntypes.

    Plus Symfony framework on top.

    Other than for web related stuff, I'd use rust or for a quick and dirty solution python.
  • 3
    Ooooh boy you better start running.
  • 1
    Yup. it's tge cleaning most concise, convenient, performant & syntactically beautiful language. Period.

    Ruby can't even hold a self-igniting glycerin empowered candle to it.
  • 0
    @Jilano can be simplified to <? echo "Yes"; ?>
  • 0
    @RAZERZ It can, sometimes but not great to use it as far as I know

    More information: https://stackoverflow.com/questions...
  • 0
    @RAZERZ if shortform, why not `<?= "Yes" ?>`, depending on your php version/error settings you'll need the `;` like `<?= "Yes"; ?> and if it's the last/only thing in the file you don't even need the closing `?>` tag.
  • 2
    @Aitkotw ahahahahaha made me lol for real
  • 1
    @Aitkotw exactly buddy 😂😂😂
  • 1
    Yeah best language for developing vulnerable web applications 😂
  • 3
    @shekhar12345 I'm not a fan of php, but doesn't exist a vulnerable language, is up to developer
  • 1
    @dontbeevil If vulnerable language doesn't exist, and PHP can be vulnerable, does that mean PHP is not a language?
  • 2
    @mzeffect I think what he ment was, that there are a lot of vulnerable bad practices around. Specially outdated tutorials telling you to use `mysql_*` functions with directly stuff from get parameters, while for example ruby (good job there) states in there beginner tutorial that you should use prepared statements and gives you easy examples using them. And yeah sure you can set in your php settings to include (and execute) content from anywhere including some website, but you could do that with most languages.

    To turn the checks: php is nothing more than c. If php is vulnerable, does that imply c is vulnerable? And let's not forget that c got a few vulnerable things like fgets (in older versions) that didn't check bounds...
Add Comment