Hacker News
points by phplovesong 2 days ago | 0 comments
PHP just sucks so bad.
[–] smolder 2 days ago
It is an old, bad language and interpreter, so it's widely used and lacks an investment of money, effort and talent. Perfect target for exploitation.
[–] lenerdenator 2 days ago
Php is still under active development, and has seen a lot of architectural changes at the language level over the last decade that have seen real benefits.

Now, imho, it still isn't a good language, but I wouldn't call it "old". It's not COBOL or FORTRAN where the people who wrote a lot of the mission-critical stuff that banks, research labs, hospitals, and government rely on died 20+ years ago.

A lot of it not receiving investment doesn't come at the language project level, but the individual project level. Accounting likes to pretend that the maintenance portion of the SDLC doesn't exist past a certain point because "what about the shareholders!?" and there are, to date, very few incentives for them to look at the problem in any other way. Let's say you run a Php application that's got Php2Shell vulns and you want to patch it but the only way to do that is to shift major versions, meaning a rewrite of some or all of the code. The code "works fine" according to the bean counters, and there's nothing saying they'll get fined or jailed if a breach occurs as a result, so your project doesn't get funded.

[–] smolder 3 hours ago
Php was at the forefront of dynamic websites. Early versions also harbored a lot of security vulnerabilities. Php catered to shit browsers in the early 00s. Every single company I have worked with that depended on PHP has been focused on non-technical excellence. It's a bad language. Getting good at using it is a waste, in any state it's been in for 20+ years. Making it work is about appeasing your business overlords and leaving better things off the table.