Plenty of writing has gone on the web trying to compare Python with other competitive programming languages and vice versa. However, not much has been put into a wholistic perspective. This article should help you decide whether to adopt Python as a primary programming language in an enterprise setup. In doing so, there are few parameters considered and the article revolves around the factors that would perhaps be critical in making the decision.
Code complexity / learning:
Python might have an upper hand because of its sheer simplicity, therefore maintainability is quite good. The percentage of backend code is not more than 40% in general (in most of our applications). Therefore, it does not matter much as to what technology we choose for backend (‘non Flex’) code. Python or Java or C# – result is same.
Python is better in terms of simplicity and maintainability
Python is known to consume a lot of CPU in comparison with other technologies like Java or Microsoft (Article here explains more http://blog.dhananjaynene.com/2008/07/performance-comparison-c-java-python-ruby-jython-jruby-groovy/
). One interesting aspect is multi-threading – Python does support multithreading (but comes with certain limitations, that are perhaps the same with other languages as well: http://www.devshed.com/c/a/Python/Basic-Threading-in-Python/
With the kind of hardware we have today, it does not matter if a particular technology forces extra CPU/RAM usage. The ideas on which we are working at the moment might not bother on this aspect at all as most of the performance issues we see are in Flex / Flash. Hence, Python or Java or .NET – performance is equally bad / good.
Overall, quite poor support for debugging. Few community members have explored the option of enabling debugging within Eclipse IDE for Python, but we have not gone into great detail there.
Looks like it is possible to debug Python code using Eclipse. We need to be sure it is possible with our pile of various technologies.
Java or C# might be more “strongly typed” than Python per se. The usage of generics (both in Java and C#) have emphasized this aspect (totally missing in Python). Also static variables / constructors are quite tricky (more of workarounds) in Python.
Developers might take a while to adopt to this “overtly-simple” approach of Python (might even require some training). Traditionally, guys have strong orientation towards high level languages like C# or Java and would tend to miss many a tricks in Python. I would be bold enough to state that initial productivity / accuracy will perhaps be quite poor, that certainly can be overcome with dedicated training.
Documentation / Help:
Since Python is a very popular language in the open source community, documentation / online help is widely available. In fact the Python website (http://docs.python.org/
) offers tutorials, online help, discussions etc. There are fair amount of online forums that have addressed typical hiccups quite successfully.
There is plenty of online stuff if one wants to learn Python (as well as master it). In fact, the support for Python is equally good when compared to Java or C#.
Overall, Python seems to be a good choice for rapid development. There are few catches though, which could be tackled with some training. My good friend mentioned “Personally I don’t feel very comfortable with a language which is not strongly typed since lot of errors which can be caught at compile time in Java will be caught at run time in Python”, which highlights the key difference between “statically typed” and “dynamically typed” languages. But as they say, “The water always feels cold until you jump into it”.