4 ms·
I remember someone here on HN said most if not all of the problems in this post have since been fixed. Is that actually true?
by matheusmoreira 3y ago
I remember someone here on HN said most if not all of the problems in this post have since been fixed. Is that actually true?
- db48x 3y agoA few things are better, but the core design decisions were all bad, and they can't really be changed over time. No matter how many surface problems they clean up, you will always be better off using any other language.
- gjsman-1000 3y agoAbsolutely false and a misinformed statement. Every language has design mistakes (like what does “this” mean in JavaScript?). The only question is - how bad is it? PHP’s pretty average now, but gets more Java-like every release. I could make a very long list of quirks in JavaScript you’ve learned to ignore. Performance is also no longer a significant issue. Facebook, PornHub, Wikipedia, Etsy, Slack, and more are still happily ticking on PHP codebases.
- kyriakos 3y agoThese conversations have become so predictable it's funny. Someone will now bring up that Facebook wrote its own language called hack. Someone else will mention laravel. Another one will say he stepped using php xx years ago and never looked back so the language is still bad for him etc
- db48x 3y agoI admit that my most recent experience with PHP was from two whole years ago. If they’ve made any improvements since then they didn’t tell me. Still, I stand by my statement that anyone would be better off with almost any other language.
- xigoi 3y ago> gets more Java-like every release …and you consider that a good thing???
- gjsman-1000 3y agoWell, when this article was written, it had almost no sense of types and was purely dynamic. You could only do things like: public $string = “Hello” Now you can do things like: public ?string $string = null; public function appendToString (?string $append) : string {
- NateEag 3y ago"Fixed" might be strong, since PHP rightly values backwards compatibility highly, but it is true that most of these issues aren't anything you need to think about when developing in recent PHP versions with recent frameworks. "Recent" here means roughly "from within the last eight years". That said, there are many, many ancient PHP codebase out there that depend on all the worst features of ancient versions and are not going to get fixed any time soon. The fact that things can be done sanely now doesn't really fix the decades where they couldn't.
- noAnswer 3y agoPHP doesn't suck (anymore) https://www.youtube.com/watch?v=ZRV3pBuPxEQ https://www.youtube.com/watch?v=ZRV3pBuPxEQ