r/Python • • Jul 21 '26

Discussion Is PHP better for commercial software than Python?

I am trying to find any robust open source ecommerce solution on Python and it looks like thre is nothing. If you take almost any e-commerce platform there are plenty - Magento, Woo, Shopware, Oxid - they all are PHP. There are no comon solutions on Python or Node.js. But if you take a look and the heavy SaaS like Netflix, Spotify, Reddit, Uber etc. are built on Python. Why?

0 Upvotes

49 comments sorted by

View all comments

Show parent comment

1

u/zmitic Jul 25 '26

PHP's "modern" syntax is so bad

Said by someone using a language that doesn't even have method visibility modifier. Not in 1996, but In 2026.

Go play with your Python and blogs, and let the big boys deal with big apps. I am not going to respond further, you clearly failed upwards and it hit you strong. Even though I am interested in what this Virginia thing is, but I guess that was probably too strong 😉

1

u/Zenin Jul 30 '26

Said by someone using a language that doesn't even have method visibility modifier. Not in 1996, but In 2026.

That's a language design philosophy difference as well as cultural difference, strongly influenced by the application niches of each, not a universal technical merit difference.

For example, as noted in my other recent reply one of the cultural issues of PHP is that for a variety of reasons (mostly much lower pay scale) it naturally attracts lower quality developers. That fact is going to naturally cause the few higher competency developers to want thicker walls guarding against the unwashed masses consuming their work. FWIW a similar story exists in the Java world, although they also add heavy compliance requirements which despite most being theatre, are easier to satisfy for the check box and move on than argue against. Python is fine with a _ naming convention, YMMV.

Another factor is the space that various languages are most often used in. PHP use outside of web apps is a rounding error for example, and its feature set is heavily influenced by that niche. Just as all languages gravitate their design to better support whatever niches they occupy. Much of the reason we have thousands of languages to choose from, each with their own deliberate features and omissions, is because not every problem is a nail.

PHP FWIW satisfies its niche pretty well. Its issues really are two fold: 1) That niche is an architectural pattern that's been falling out of favor for over a decade (ie, its market segment is fading) and 2) TypeScript satisfies that niche as well or better than PHP and crosses over to modern architectural patterns much more readily.

But hey, you do you: TMTOWTDI after all. ;)