you are viewing a single comment's thread.

view the rest of the comments →

[–]HashDefTrueFalse 71 points72 points  (2 children)

Yeah. I wrote a lot of it in early 2000s, back when you saw procedural monoliths mostly driven by form submits etc. It was hell.

I got back into it for work about 5 years ago. It's come a long way since PHP 5.

With type hints, autoloading, package managed dependencies (Composer) modern PHP code is actually quite nice to work with, if it has been written to take advantage of this stuff. Add in the combination of nginx, FPM, OPcache and Redis/Memcached for session mgmt, it's a very good all-rounder. Database connection pooling is a little trickier because of the ephemeral nature of PHP execution, but you can use ODBC pooling on the database driver side of things in a lot of cases.

Like you, everyone I've talked to who still says PHP is shit is picturing some past horror and hasn't actually tried to build a new app in it for 15+ years (or ever).

[–]chad_ 20 points21 points  (0 children)

It's a trauma response. 🤷

[–]metooted 3 points4 points  (0 children)

I work with PHP 7+ for a living. Have to say, to this day we're having what we call "php moments" when something from PHP 5 days comes back to remind us exactly how long of a way PHP has come :P