7 ms·
Ah yes PHP, the language known for its strong security...
by Zagitta 10mo ago
Ah yes PHP, the language known for its strong security...
- zwnow 10mo agoModern PHP is leagues above Javascript
- friendzis 10mo agoThat's not a high bar to clear
- root_axis 10mo agoHow so?
- zwnow 10mo ago7.0 added scalar type declarations and a mechanism for strong typing. PHP 8.0 added union types and mixed types. PHP enforces types at runtime, Javascript/Typescript do not. PHP typesystem is built into the language, with Js u either need jsdoc or Typescript both of which wont enforce runtime type checks, Typescript even adds a buildstep. php-fpm allows u to not care about concurrency too much because of an isolated process execution model, with js based apps you need to be extremely careful about concurrency because of how easy you can create and access global stuff. PHP also added a lot of syntax sugar over the time especially with 8.5 my beloved pipe operator. And the ecosystem is not as fragile as Javascripts.
- reconnecting 10mo agoOh yes, let's remember PHP 4.3 and all the nostalgic baggage from that era.