4 ms·
A Reddit post from a few years ago explains pretty well why PHP has such a terrible reputation: https://www.reddit.com/r/webdev/comments/5tqoqa/web_devs_whats_y
by 734129837261 5y ago
A Reddit post from a few years ago explains pretty well why PHP has such a terrible reputation: https://www.reddit.com/r/webdev/comments/5tqoqa/web_devs_whats_your_beef_with_php/ddodpuh/?utm_source=reddit&utm_medium=web2x&context=3 https://www.reddit.com/r/webdev/comments/5tqoqa/web_devs_wha...
PHP should have chosen to undergo a rebranding a few years ago, if you ask me. The stigma it has to deal with is probably unsurmountable and will be forever. If you think PHP, you think WordPress and Joomla, and that means "hacks and vulnerabilities"...
It's a good language nowadays, with quirks like any other language, but I still have one big problem with it: There are too many "PHP developers" out there, and most of them are very bad, and many of the good ones are from poor regions in the world and you can find them on Fiverr doing kick-ass work for a grand total of $50.
- rexreed 5y agoHow do you find those kickass ones on Fiverr among a sea of bad ones?
- nunodonato 5y agothe good ones are not on fiverr ;)
- rexreed 5y agoThe above comment says: "many of the good ones are from poor regions in the world and you can find them on Fiverr doing kick-ass work for a grand total of $50. " That's what I'm replying to.
- tyingq 5y agoMy personal favorite PHP wtf is this one: if (md5('240610708') == md5('QNKCDZO')) { echo "true\n"; } Though I do use php, and love many things about it.
- foldor 5y agoHaving been out of PHP for several years now, I assume that needs a === instead of ==? It's unfortunate that we have the need for a ===, but it's no different that JS in that regard.
- tyingq 5y agoThe underlying issue is that while md5() thinks it is returning a hex number, if the hex number starts with 0e, php thinks it's 0^<whatever>.
- deleted 5y ago[deleted]
- cyberbanjo 5y agoDo you know why that is? php > echo md5('240610708'); 0e462097431906509019562988736854 php > echo md5('QNKCDZO'); 0e830400451993494058024219903391
- dangson 5y agoHere is the explanation: https://www.php.net/manual/en/function.md5.php#123392 https://www.php.net/manual/en/function.md5.php#123392
- deleted 5y ago[deleted]
- wildrhythms 5y agoWould this be avoided by using a string comparison function? https://www.php.net/manual/en/function.strcmp.php https://www.php.net/manual/en/function.strcmp.php
- cyberbanjo 5y agoYes. php > echo strcmp(md5('240610708'), md5('QNKCDZO')); -4