3 ms·
I've written a few thousand lines of PHP code, and can confirm that, on the whole, it's developer-unfriendly. It's junior-developer-friendly, but if you want t
by SomeCallMeTim 11y ago
I've written a few thousand lines of PHP code, and can confirm that, on the whole, it's developer-unfriendly.
It's junior-developer-friendly, but if you want to do something serious, there are better options.
- caleblloyd 11y agoI write PHP daily with a team if 6. It's Object Oriented support makes it very developer friendly for medium-sized projects if they are architected well. Using a modern framework like Yii2 makes it just as good as any other modern franework in any other dynamic language (rails, django, entity, etc). Yii2 performance also doubles from PHP5.6 to PHP7 for those interested: https://caleblloyd.com/software/yii2-php-7-performance/ https://caleblloyd.com/software/yii2-php-7-performance/
- subsection1h 11y ago> Using a modern framework like Yii2 makes it just as good as any other modern franework Please demonstrate that Yii 2 is as feature-rich as Rails 5. Thanks.
- mikegioia 11y agoYou guys need to relax. This is cringey for the Ruby community.
- ftxrc 11y ago> Yii2 > Modern Pick one.
- SomeCallMeTim 11y agoI've seen the performance improvements in PHP 7, which look awesome, and it's good to know that there are modern frameworks available now, so it's entirely possible the PHP universe has improved markedly since I was there last. But what kills PHP for me (and Rails and Django, for that matter) is the lack of native support for asynchronous operation and poll/epoll. If you're stuck with one thread per user, then you can't scale beyond a couple thousand concurrent users on one system without latency getting terrible. You can just do so much more on one server with Node it's not even funny. 70k queries per second with low latency are not uncommon; add in some work and that goes down, of course, but a well written app can have 20k+ queries per second of throughput. Even PHP 7 with WordPress in cached mode only brags of ~5k queries per second. You could likely do 4x that in Node without trying -- and possibly even without caching.