News for hackers. Stuff that matters.
Re:Ask HN: Why Did Python Win? by rcarmo on Tuesday August 29, 2023 @04:59PM (#37314005)
People like to hate on PHP (and to be honest I really never enjoyed it), but there was a time when if you wanted to build powerful, large scale websites (or hosting, or scalable web farm deployments) it was the most reliable and performant thing short of Java.

It also helped that the PHP ecosystem had some pretty solid and battle tested HTTP components and pretty productive frameworks--server-side rendering with Varnish was as fast as a CDN-backed site feels today.

Re:Ask HN: Why Did Python Win? by CuriouslyC on Tuesday August 29, 2023 @05:23PM (#37314322)
The things PHP had that made it win (for a while) was that it was easy to set up and configure for a hosting environment (Apache plus modphp worked out of the box consistently) and the HTML first design made it easy to add to static web pages, whereas forms and CGI was multiple steps and more confusing for less experienced devs.
Re:Ask HN: Why Did Python Win? by cutler on Tuesday August 29, 2023 @08:32PM (#37316093)
I'd qualify that. A lot of the hype around PHP being easy for cheap web hosting misses the point that a lot of that cheap hosting was configured with PHP as a CGI module, not mod_php. In that sense it was on a level playing field with Perl.
Re:Ask HN: Why Did Python Win? by KingMob on Thursday August 31, 2023 @02:04AM (#37333057)
Agreed. The one thing PHP demonstrably did better than other langs (other than be a simpler Perl) was be web-first.

Other langs assume you could be doing anything, and here's the extra steps necessary to make it serve pages. PHP assumes the reverse.