6 ms·
Python will probably be easier to write and almost certainly be easier to maintain. It's possible to write good code with PHP, but a great deal of the example
by Zak 16y ago
Python will probably be easier to write and almost certainly be easier to maintain.
It's possible to write good code with PHP, but a great deal of the example code you'll find online is not good. On top of that, the language itself tends to encourage bad design (see "broken window theory").
Python has a strong culture of having one obvious and good way to do things. In some situations, that can feel restrictive, but it tends to make dealing with code other people wrote easier.
- zackattack 16y agoHow do you relate "broken window theory" with the grammar of PHP?
- Zak 16y agoBroken window theory, as it applies to code essentially says that sloppy code begets sloppy code. PHP itself has sloppy design, such as inconsistent argument order and naming conventions for built-in functions. Most of the complaints I can think of about PHP that are objectively demonstrable are outdated. The language now has namespaces, closures and the like. Most of the complaints I have left have to do with the feel of the language, and some remaining cultural elements; it feels like a ghetto, even though it seems to have modern infrastructure now.
- deleted 16y ago[deleted]
- keyle 16y agoThis list might help http://wiki.python.org/moin/PythonVsPhp http://wiki.python.org/moin/PythonVsPhp
- jedsmith 16y agoPython has a strong culture of having one obvious and good way to do things. This is, I think, where people new to Python stumble up. If they were Dutch, the obvious way would be easier to spot.