Tell me more ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

I am a website developer, and I am proficient in PHP, but I want to shift into game and software development using Python.

Is such a transition easy? What are the common pitfalls one should look out for when making the switch from website development to game development using Python?

share|improve this question

closed as not a real question by MichaelT, gnat, Giorgio, Glenn Nelson, thorsten müller Mar 7 at 12:49

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, see the FAQ.

3 Answers

I've done what you are saying, after several years of high end PHP development. But it was not exactly a simple switch. We develop enterprise-grade software, so it was worthwhile to make the switch.

I suggest you spend a good deal of time working with some python frameworks. Much will depend on your skill as a web-programmer and general-programmer.

PHP is a web-programming language that just kind of works out of the box. Python is a general purpose programming language (which works out of the box for general programming), but in order to use it for web-development, you must have several different components working together.

I suggest you get Apache + mod_wsgi working first. DO NOT try to compile them -- get an operating system (Fedora, ubuntu) that has packages out of the box.

Put together a couple of simple WSGI scripts in python to see how it works.

Then start with a really simple framework (like bottle or flask) to take it to the next level.

Go from there. Good luck!

share|improve this answer

If i understand your question correctly, "you want to know how easy it is to learn the python language considering you have roots in PHP". Well, i'm someone who believes that once you learn one programming language, it most time pretty easy to learn other languages (though dependent on the ideologies behind their design). As concerns Python, it's a beautiful language which i was opportuned to learn before coming into PHP. Start with learning the basics of the language with a very good book, i recommend A byte of python , to learn the basic workings of the language, then you can continue from there with more detailed books. Conclusion, the switch should not be a sweat, though you might want to begin to get used to identation and "lack of braces" Regards :)

share|improve this answer

Swithing from one scripting language to other is not difficult! And since Python is the best-designed scripting language, I think that really worth to try. And unless python is faster than php, but still that's not much good for game programming. If you want to focus on game programming, go to C++.

share|improve this answer
The folks that built EVE Online using stackless Python may disagree – canadiancreed May 9 '12 at 23:48

Not the answer you're looking for? Browse other questions tagged or ask your own question.