ThePythonGameBook

learn Python. Create Games

User Tools

Site Tools


en:secret:why_python

Why Python

Why does this book focus on the programming language Python ?

Of course, there exist many other programming languages. People will tell you that you need some variant of the programming language C (like C#, C++) because everything else is too slow for a computer game, or that you should learn Java so that your games will run inside a web browser.

This is all true and in fact the book will hopefully encourage you to learn as many computer programming languages as you can.

Python is good for several reasons:

  • Python is free, open source and exist on every platform. No company can go bust and end Python's support or existence.
  • Python is easy to learn
  • Python is beautiful to look at (and easy to read)
  • Python is modern (full Object_orientation)
  • Python is fast1) if you measure the time it takes from the idea in your head to a working prototype on the screen. For that category, it's one of the fastest languages around.
  • Python is fast enough to work as a scripting language inside faster 3d-engines2).
  • Python is used in the industry and not a learning-only programming language.
  • Python is fun to code and has a humorous community. Enjoy antigravity3) or references to Monty_python sketches.

Antigravity by XKCD
source: http://xkcd.com/353/

1)
a compiled language like C will always be faster than a interpreted language like Python
2)
The 3d-engine itself should better be programmed in a compiled language like C and not in a interpreded language like python.
3)
in python 3.0 and above, you can type
import antigravity
/var/www/horst/thepythongamebook.com/data/pages/en/secret/why_python.txt · Last modified: 2014/01/09 11:07 (external edit)