3 ms·
If you need to clarify that something isn’t something else, because it isn’t obviously different, maybe the two are more alike than you’d like to admit. On tha
by gjsman-1000 2y ago
If you need to clarify that something isn’t something else, because it isn’t obviously different, maybe the two are more alike than you’d like to admit.
On that note, I’m a happy PHP developer, PHP doesn’t suck anymore (https://youtube.com/watch?v=ZRV3pBuPxEQ https://youtube.com/watch?v=ZRV3pBuPxEQ), and there is no way to say JavaScript doesn’t have at least as many footguns now. (Personally, I think JavaScript’s footguns - like the ludicrous dependency trees and framework churn - are actually worse.)
- colecut 2y agoI agree on all points but unfortunately php can't do things Javascript can do, as in manipulate the DOM, and run natively in the browser client side... So I am a mostly happy php developer that still has problems
- gjsman-1000 2y agoThat’s a mostly solved problem. If you’re in the Laravel ecosystem: https://livewire.laravel.com/ https://livewire.laravel.com/ https://alpinejs.dev/ https://alpinejs.dev/ AlpineJS is for your menus and simple client-side interactivity. Livewire lets you render components server-side while handling routing, interactivity, updates, morphing, everything you need all in one. Even complex things, like cross-page persistent components, are possible. Combine the two, you’ll be counting the lines of JavaScript you write in the dozens, on one hand. Later, you can throw in Laravel Volt if you like your components single-file with a functional syntax; Laravel Folio if you like your routes defined by your folder structure like classic PHP; or throw in Filament for an entire UI library, form builder, table builder, and notifications delivery system.