2 ms·
PHP just released version 8.4.2 today, so if that's your ball of wax, and you're working on your own projects, have at it. I wrote some PHP earlier this year f
by fragmede 2y ago
PHP just released version 8.4.2 today, so if that's your ball of wax, and you're working on your own projects, have at it. I wrote some PHP earlier this year for this one project. React pulls together a bunch of language features so that writing full blown apps in html, css, and JavaScript is less of a multi-level, multi-language templated nightmare for the developer who's writing it. Facebook was built on PHP so it's possible to build a fully featured web app using PHP and JavaScript, but that's also that's where React came from. React isn't just change for changes sake. PHP and hand rolled JavaScript can take you where you want to go, but getting there with React is just a bit more comfortable because it isn't a pile of templates with two languages you have to keep in your head simultaneously, and you can more easily debug it. For the cost of learning new ways of doing things, there's inheritance and composability. it's far from perfect, but, imo, it got popular because of how much easier it is to wrap your head around a pile of react components than it is a pile of php templates and its attached pile of JavaScript.