Python is easy to write, but I find setting it up for even local development is a headache! If it is such a headache to Just setup it, how can I practice?? For this one, I suggest PHP. PHP isn't difficult either though it is C++ish
evstevemd
Senior Poster
3,713 posts since Jun 2007
Reputation Points: 462
Solved Threads: 392
Under linux you have Python by default. If you need to experiment with libraries and don't want to mess the system, Python has virtualenv, installable as package. If you want to try the last version compiling Python from sources takes 10-20 minutes... maybe under Windows is another story, I don't know.
I meant to set it up for Web applications. I use windows.
I have Installation and works fine for desktop apps :)
evstevemd
Senior Poster
3,713 posts since Jun 2007
Reputation Points: 462
Solved Threads: 392
Usually the python frameworks have its web server so under Linux we install the available package for Apache and use it only as a proxy and only on production machines. mod_python and mod_wsgi are used from few people.
I tried to set up mod_python to work with WAMP so as to use PHP/Python side by side, and guess what? I ended giving up. The process is so convoluted that It was only headache to me. Not so fun!
evstevemd
Senior Poster
3,713 posts since Jun 2007
Reputation Points: 462
Solved Threads: 392
Python is an excellent choice for web programming (as it is for any other type of programming). There are myriads of web frameworks to choose from, some of which are really good.
But Python is not mainstream. PHP is. A random choice of project or company is likely to dictate PHP. Also, there are many mainstream apps (blogs, wikis) that are already built in PHP. More than there are in Python. If you have to work on top of those, you'll have to take PHP.
But while being mainstream is less risky in a way (there are much more mainstream jobs than "exotic" jobs - though "exotic" jobs may be more lucrative than mainstream jobs), it also makes you dispensable (there are much more mainstream developers than "exotic" developers).
It depends on your personality type which way is the best for you. If "mainstream" feels better to you, focus on PHP first. Otherwise, focus on Python first.
But even if you choose PHP for your daily job focus, I'd strongly recommend learning Python anyway. There is SOOOO much you can learn from Python about good programming idioms and patterns. Learning Python will improve ALL your programming skills, not only your Python programming skills.
pythopian
Junior Poster in Training
81 posts since Nov 2009
Reputation Points: 20
Solved Threads: 25