4 ms·
You sound like me, but ten years ago. :) I used to have a similarly negative and narrow-minded perspective about PHP, but my colleagues and their outstanding wo
by gmfawcett 5y ago
You sound like me, but ten years ago. :) I used to have a similarly negative and narrow-minded perspective about PHP, but my colleagues and their outstanding work have enlightened me.
- mst 5y agoI am entirely unfond of PHP as a language but Laravel - and competently written apps that use it - are damn impressive nonetheless.
- mekster 5y agoIf you can't like the current PHP, there's probably no language that will make you feel too well. What exactly is so bad about it?
- mst 5y agoThe point I wanted to make was that Laravel is objectively impressive even to somebody who dislikes PHP, so going into details as to exactly why I dislike the language would distract from what I was trying to get across.
- astrange 5y agoPHP itself is perfectly designed to run CGI scripts and the correct architecture for web performance (shared-nothing). It's the third party developers that have second-system effect enterprise dreams. Though maybe some of them have found simplicity again.
- slim 5y agoyou're right. it was obvious when we started seeing templating engines for php while php is itself a templating engine
- tored 5y agoOnly thing missing from PHP now is to programmatically detect tainted strings, i.e. strings that are dangerous like user input, if we had that we could continue with the built in templating and still be sure to escape output at the correct moment. Tainted strings should be built into PHP (there was an RFC for it but it didn't pass). Another solution could be using operator overloading instead (that RFC didn't pass either).
- krapp 5y agoOr do what Hack did with XHP and make XML/HTML a part of the language, and escape everything else by default. That was the one Hack feature PHP should have taken, but didn't.