3 ms·
Kinda. I can agree that for example Laravel is better than what we had in the past, but it's still worse than lots of non-php alternatives we had available for
by viraptor 3y ago
Kinda. I can agree that for example Laravel is better than what we had in the past, but it's still worse than lots of non-php alternatives we had available for years. It's still playing catch-up, and that's assuming you get to work with new frameworks rather than writing a WP plugin or something similar. And it's hard to talk about modern php when probably most of the code out therei s still written like it's year 2000.
- codersfocus 3y agoWhat do you think it's playing catch up to? To only competitor I see is Rails. No other framework has such a rich and powerful ecosystem for web development.
- martinald 3y agoasp.net core?
- viraptor 3y agoEcosystem: Django/Rails Language features and non-web usage: basically everything Handling concurrency/streaming: Phoenix Simplicity while providing batteries: Flask Backend/front-end integration: Blazor
- pindab0ter 3y agoCan you give examples of how Laravel is playing catch-up in these regards? Backend/front-end integration is very well done with Livewire/Inertia. Simplicity while providing batteries is a given, but even more so with some of the starter kits. And honestly, I’ve been quite impressed with all the high quality, Laravel-specific packages out there (looking at you, Spatie). I’ll definitely give you non-web usage and most of language features (even though PHP nowadays has first class type support, which can’t be said of Rails, unfortunately). And yes, concurrency is all but absent. Apart from RoR, I haven’t used much else in the full stack framework space, so I’d love to hear!
- codersfocus 3y agoI think even your knowledge is lacking in how awesome PHP is for web dev. Instead of Inertia, we have Livewire now Filament for amazingly quick and super powerful admin panels (like Avo for Rails) Not including everything else available for auth, payments, basically any non unique SaaS feature has a good package available. There is definitely concurrency with Swole (and implemented in Laravel with Optane, giving a 2x speed boost by default.)
- tracker1 3y agoYou might want to look into the JS/Node ecosystem sometime... there are a LOT of powerful frameworks with everything to highly flexible mix/match to batteries included (next/nuxt) options. Not to mention modules for anything and everything under the sun you might want to do, with adaptors for module development bringing in about every option under the sun. This is just an example, not a strict advocation... I've been more fond of batteries not included options myself, and in particular been admiring rust options a lot.
- Legion 3y ago"Modern PHP" basically boils down to "backporting features from the languages/ecosystems that have since replaced PHP". Which is a great and smart way to improve PHP for the people who still have to work in PHP. But none of it is original to PHP, or provides a compelling reason to use PHP instead of the options where all these things originally were copied from.
- asddubs 3y agophp is faster
- devmor 3y agoNot that I agree with the person you're replying to, but while PHP is faster than almost everything else, that rarely actually matters in any application you'd be using PHP for. I/O is almost always the blocker.
- mgkimsal 3y agoSo should I use lang X for one feature, then shuttle that over to lang Y for another language feature, then marshall those results to a third language for its one original feature, then keep going? Or would it be OK to recognize that most ecosystems adapt good ideas from each other?
- tracker1 3y agoI think the point of GP is more that, if you're starting something new, you're probably better off with something that isn't PHP, despite the improvements that have been brought into PHP. And yeah, many different ecosystems adopt ideas from one another. And it's often a good thing, though it can be hard for people with a lot of experience in something to see new syntax/ideas sometimes. It's also sometimes hard for people to invert/twist their thinking in different ways. I see this a lot when OO devs try to work with FP concepts. Another example is getting used to Rust's pattern matching and enum values.
- johnny22 3y ago