Hacker News new | ask | show | jobs
by ckdot 1295 days ago
In the last years, PHP has been refactored in a lot of places. It‘s way faster and cleaner now. There are still some quirks, like the inconsistent function naming. But - like the article says - your IDE is helping. Also, PHP has a great doc. Just open php.net/{{function name}}. You can write really clean code at enterprise level in PHP now. PHP is not just WordPress. Still a lot of PHP developers don’t tend to write clean code. It’s often a mess even if the language would not prevent them to write clean, S.O.L.I.D. and performant code. I don’t know if this is the case for other programming languages, too, or if Bad code is just more often tolerated in the PHP world.
2 comments

I've worked with teams writing PHP, Python, C++, Java and Go. Every engineer complained that all the code they didn't write was shit. In all other languages, the engineers are blamed. But in PHP, for some reason, it's the the language's fault.
That documentation bit is one of favorite parts of php. I'm sure modern IDEs have it all built in nowadays but when I was writing everything in notepad 20 years ago it was great!