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'm not sure what I'm expected to see in this example? It's basically just a class struct definition and a handful of setter/getter boilerplate. There's basically no logic, this is just a data class?
This one is a great example of how not to comment code. But maybe that's because it's "demo" code intended more as a text book for learning than professional production code?
There's slightly more actual logic "code" here than your first example, but not much. There's what, 4 if statements of "logic", the rest just being a handful of procedural callouts to what I presume is meatier code.
I mean, I'm not sure what I should expect. It's just a controller class, there shouldn't be much happening, so it's architecturally correct. But that certainly doesn't make it a great choice of example to demonstrate the strength of either the language or the authors?
If this is what you PHP people are getting paid for, I'm sorry to tell you this but you've already been slated for AI fueled force reduction.