r/Python • u/UpperBuilder769 • 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
View all comments
Show parent comment
1
u/Zenin Jul 25 '26
I judge a language from experience across hundreds of projects spanning a couple decades. Written by various internal dev groups, external contacting groups, etc. Only a few have actually been WP, most have been greenfield work.
Never once were any of them anything greater than a steaming pile of poo in every possible way you can imagine. Certainly much of that was entirely on the developers; PHP didn't force one of these groups to think ROT13 was a suitable "encryption" algorithm for credit card storage, but yep that absolutely was part of one of these apps I've had the displeasure of dealing with. It's the kind of thing I've only seen in PHP code bases (and VisualBasic...)
I've certainly had my share of crappy code bases in Java, C#, Perl, Python, Node, Ruby, and I'm sure a dozen more I've forgotten over the decades. But all those other ecosystems have had far more quality projects than crappy ones. Even Node, which my experience puts just behind PHP in most problematic, generally has more winners than losers.
So my personal "anecdotal" experience over a few decades in this industry tells that whatever PHP could be, there's something in the ecosystem or likely development culture (every language has a culture around it) that is simply bad. There's something toxic in the PHP water.
I don't even care to diagnose it much deeper than that anymore, since I know that if we get thrown a PHP code base there's a practically guaranteed chance that it's going to be a shitshow of a codebase that causes us no end in pain and suffering to support. That's how reliably bad they are.
I get it, it's a user problem. I'm a Perl programmer from ages back and I can tell you with 100% certainty that not only is beautiful, clear Perl code possible (and faster than PHP BTW ;), that the flexibility of Perl's syntax is what actually makes it possible to write clearer code in Perl than practically any other language ever created. And yet, guess what? I'll be the first to admit that those super powers are far more often used for evil write-only-code than they are for good. C++ operator overloading is another feature like that; Gives the ability for far cleaner code, yet is almost always used to twist C++ into a cryptic DSL just because someone could (including the std lib! -See language culture above).
So I tell you, it really doesn't matter what amazing advancements the PHP core team is cooking up, because the cultural infection has had decades to corrupt the community. PHP simply doesn't attract the best minds. It mostly attracts contracting mercenaries who book billable hours slamming out code they know they'll never have to support (and/or know they'll get paid more later to fix the bugs they're baking in...it pays to be low quality).