+ 2
Which one is the best? Php vs python
3 Answers
+ 25
I think python
+ 2
Because.
1. Python has a philosophy that helps to write better for understanding code.
2. Language evolution planning using PEPs - you know what you get in a next few years. PHP development process looks chaotic: making OOP like a something in Java, then add some "static typing" collections, then include some lambdas and namespaces (almost after 15 years of development). What's next?
3. Python has more compact and clean syntax that helps developers,
4. In Python the same things can be done the same way.
There is no matter what iterable things you using (list, tuple, string or something else) you always can access by index, get a slice, iterate over it or get the length the same way. No strlen()/count(), substr() and a lot of other functions.
5. More predictable and strict.
No 1 == "1" and other strange things like in PHP.
6. Python has more unified and powerful standard library. It has some problems, but python's included library much better than PHP's.
+ 1
what you think. php or python??