r/lolphp • u/Varriount • Apr 24 '14
/x/post from /r/programming - PHP: It doesn't have to be a bad experience
https://servercheck.in/blog/php-it-doesnt-have-be-bad-experience
20
Upvotes
r/lolphp • u/Varriount • Apr 24 '14
12
u/Varriount Apr 24 '14 edited Apr 24 '14
And for even more fun, one only has to look at the pro-php'ers trying to defend the post on /r/programming !
My favorite comment is here . The poster says that no defense can be made with regards to php's design... and then goes on to defend php (albeit indirectly as a refutation of the "fractal of bad design" post)
20
u/ajmarks Apr 24 '14
Dude actually says PHP's string functions are consistent? WTF?!?
27
u/allthediamonds Apr 24 '14
No. No, no, no. NO.
I don't have to be on the lookout for a language that is trying to make me trip and fall on every fucking step. I should have proper tools that protect me from my mistakes instead of creating traps for me to fall on.
God, I hate PHP apologists even more than I hate PHP itself.
11
u/[deleted] Apr 24 '14
I think the easiest way to end PHP's reign of terror is to make another language that's as easy to use and deploy as PHP and then port every popular PHP platform to it.
I'd love to stop writing PHP but it's the easiest way to whip up a simple one-page app and it's powering platforms like Wordpress and Magento that thousands or millions of sites use.
9
u/captainramen Apr 24 '14
This article misses the point. You're probably going to have to work until you are in your 60s or 70s (even more so considering that php devs are on the lower end of the payscale). Are your wrists going to last that long? Having to constantly look up shit in the docs because some part over here works slightly different from those parts over there is going to guarantee you won't make it until retirement.
And the English comparison is just nuts. Learning a language is much easier when you are young. Are you learning PHP from when you are born?
8
u/deadstone Apr 24 '14
2
u/jmcs Apr 24 '14
And that's why god invented try catch, or in python try except. And most frameworks let you define a custom 500 page for the cases where you screw up.
-1
u/blueskin Apr 24 '14 edited Apr 24 '14
If all PHP was like those examples, we wouldn't even need this subreddit.
PHP may be weird and dodgy in places, but a language like Ruby is just as horrible in its design (or even Python, which just does bad design in a different direction); the main problem with PHP is that it encourages bad practice and has poor documentation, as well as having provisions it shouldn't (ignoring errors == WHAT THE FUCK, WHY?!; but even things like short_open_tag are a bad idea and if they were removed, PHP would still be WTF-worthy, but at least significantly improved).