News for hackers. Stuff that matters.
Re:PHP in 2023 by shashashasha___ on Tuesday January 17, 2023 @07:27AM (#34411665)
we should show this comment to facebook that uses hack (php originated lang) in millions of files to run their little website and infrastructure.

php isn't bad. just got a bad rep. many langs got quirks. some more than others. but php has more web production success story and usage than most.

Re:PHP in 2023 by jsjohnst on Tuesday January 17, 2023 @07:56AM (#34411865)
PHP had design flaws (many of which have been addressed since the 5.x days), but what language doesn’t?

A significant cause of it’s bad rap is touched on briefly in this article, Wordpress.

Even back in 5.3 days, you could write elegant and scaleable code, it just took work to do. At a former employer using PHP 5.3 on 2005 era hardware, we could do 500+ req/sec per machine with an average response time under 100ms and a P99 response time of under 250ms, with a zero downtime SLA and hundreds of millions of requests per day. Yeah, it wasn’t easy, but it worked.

As a dear friend used to say, PHP is a ball of nails. You throw it and it sticks. Just exercise care when picking it up and all is well.

Re:PHP in 2023 by oblio on Tuesday January 17, 2023 @08:54AM (#34412352)
> we should show this comment to facebook that uses hack (php originated lang) in millions of files to run their little website and infrastructure.

Appeal to authority isn't a valid strategy.

Facebook used PHP because they wanted to build something really quickly and afterwards it became too costly to switch, as it always does, so they built an entire engineering department to work around PHP issues.

Your average PHP dev team can't do that.

Plus, what are you comparing it to? Reasonable people don't compare it to Vlang, they compare it to Python, Ruby, Java, C#/.NET, Javascript/Typescript, Golang, and PHP ranks at best averagely against those regarding language, standard library and ecosystem consistency.

Re:PHP in 2023 by shashashasha___ on Tuesday January 17, 2023 @11:34PM (#34423473)
appealing to authority? lol. no. read my comment again. it shows real production example of a juge, complex, website that serves billions. average php devs can't do that? maybe. but the php lang doesn't block them.
Re:PHP in 2023 by xigoi on Tuesday January 17, 2023 @10:44AM (#34413836)
You mean the slow, bloated website that rarely adds features useful for users?
Re:PHP in 2023 by shashashasha___ on Tuesday January 17, 2023 @11:31PM (#34423455)
nope, i mean a website that serves billions