3 ms·
PHP being awful annoys me so much more than javascript being awful. At least for the latter the use became mostly unintentional. For PHP, the problem is that i
by VHRanger 6y ago
PHP being awful annoys me so much more than javascript being awful.
At least for the latter the use became mostly unintentional. For PHP, the problem is that it came about at just the right time to be picked up by WordPress and Facebook, hence encrusting itself in most of the web we see.
I dislike WordPress the same way I came to dislike Visual Studio or any other monstrosity. It's a slow, massive, lumbering mess but it's also by the most mature tool for the job it does.
There's no reason to pick up PHP for a new project. Except, I guess if you're just doing simple CRUD and PHP is what you know.
Languages don't matter that much for simple CRUD apps and PHP is a sub par, annoying, inconsistent language that will get the job done.
- robotron 6y agoI'm currently on a project building A CQRS system in PHP (not the first time) . I have no idea what you are basing this on.
- d1str0 6y agohe's basing it on PHP 10-20 years ago, just like the article explains. :P
- teen 6y agoPHP via HHVM + Laravel is a still top choice for new projects imo.
- johnnyfaehell 6y agoWhy with HHVM? PHP7 is pretty fast, I believe the fasted non-compiled language there is.
- teen 6y agogood to know, i hadn't fully dug in yet.
- thinkindie 6y agowordpress would be a slow, massive, lumbering mess in any language. It happens to be in PHP but you would get same result if it was built in python or javascript. Any dynamic language in the wrong hands can lead to that same result, at least PHP managed to introduce stricter typing and so on while other languages have arrived way later (Javascript must use TypeScript and Python is going through a slow and painful migration out of Python2)
- luckylion 6y ago> For PHP, the problem is that it came about at just the right time to be picked up by WordPress and Facebook, hence encrusting itself in most of the web we see. That's backwards in my opinion. PHP was successful among non-CS-people, and those people started building things they were interested in. That gave PHP the initial success (especially on the web, were plenty of people didn't have a CS background unlike in enterprise software), which lead to people like Larry Sanger and Jimbo Wales using PHP to build their first version of Wikipedia. And it also lead to PHP being the go to thing for websites, pushing aside Perl, which meant that when Zuckerberg wanted to build a site for fun to rate coeds, PHP was a natural choice. Quick to build, easy to deploy, not a lot to worry about. I'd be surprised if somebody back then planned to invest a huge sum of money and create some giant system and chose PHP. But PHP just being there, highly available, and people using it for all kinds of random stuff and then some of those things taking off and PHP just remaining at their core because of inertia, that's not surprising imho.
- cityzen 6y agoWhat was the point in this comment? You basically just complained about a bunch of random stuff. I can assure you that you're way more bent up about this than any PHP dev would be from reading this comment.