4 ms·
It's incredibly easy to learn & use - what I've always liked about it is that I spend very little time thinking about how to accomplish a task in Python. In ad
by rit 18y ago
It's incredibly easy to learn & use - what I've always liked about it is that I spend very little time thinking about how to accomplish a task in Python.
In addition, Python has solid support for object oriented programming which I can't really say for PHP (PHP's object 'support' is slowly improving but it's still a crappy patch). This is represented at it's core by the fact that EVERYTHING is an object - if you say:
foo = 5
foo is an object of type int. It's still loosely typed, in that you don't have to declare that foo is an int, but the contents being objects gives you a lot of power for dealing with them.
There are a lot of great tools for Python as well - Pylons (which Reddit is based upon), Django and TurboGears are pretty well entrenched and established. They are easy to learn and work with (Django has an incredibly low barrier to entry/learning curve) and powerful.
Mark Pilgrim wrote a great book called "Dive into Python" which is available for free on his website: http://diveintopython.org/ http://diveintopython.org/
It gets things moving pretty quickly if you're looking to get a taste of what Python offers.
- rit 18y agoThe other point of course is that if you learn PHP, you've only learned a tool to build websites. Python is a pretty multipurpose tool that happens to have the ability to build web applications. (And Ruby as well)