3 ms·
I've recently moved back to PHP; stuck on a php 5 version, but I was surprised at how fast I was back into it. It has a heap of problems due to mistakes made i
by Cthulhu_ 7y ago
I've recently moved back to PHP; stuck on a php 5 version, but I was surprised at how fast I was back into it.
It has a heap of problems due to mistakes made in the past and - perhaps more worrying - a LOT of misinformation posted on the internet. Then there's the trope of PHP developers always building their own frameworks and CMSes and the like.
And I'm dealing with a big legacy codebase where the original author did not understand separation of concerns (or sql injection for that matter), with constructs like a switch returning a different SQL query depending on a string value, globals to store the result in (which is concatenated XML transformed to JSON at the bottom of the 5000 line file, which in turn includes thousands of lines of additional code). And the project was started in 2012, when modern PHP and frameworks were already a thing.
I'm doing new work in more neatly organized classes at least.