Saturday, July 02, 2011

Python is great!

Recently, I learnt Python mainly in the course of doing some web programming, not wanting to jump into the jargon laden Java technology stack. Also, I wanted to learn a language for quickly coding out things, yet be able to manage and organize code as well as in Java. Quite a lot of people have taken to Python for these reasons, and it surely doesn't disappoint. Coding feels like a breeze, yet I can write well organized and structured code. The language is powerful and expressive and the list manipulation facilities are a breeze. There is a hint of functional programming too with 'map', 'reduce', 'filter' functions. It has a good collection of libraries too, and almost every functionality has Python APIs. So there is little reason to be stuck with Java because of non-availability of libraries. The only odd thing is that the language has no braces, and relies on indentation for defining scopes. Enjoying Python for now, hope to use it heavily in times to come !

3 comments:

Mankutimma said...

I came across a book on Python by an avid blogger on tech stuff http://www.swaroopch.com/notes/Python
I haven't read the book but it might be interesting.

arindam said...

can you name a book or a web resource from which to learn python quickly and efficiently

Anoop Kunchukuttan said...

If you are familiar with Java or any other programming language, then the Python tutorials are good enough.

What is important is to learn list manipulation very well, since most data structures have lists at their heart, and Python provides many constructs for last manipulation.

An introduction to the functional style of programming is also useful - so read up and use features like list comprehensions, map, reduce, filter, lambda functions frequently in your code. In course of time, learning iterators, generators, higher order functions will also be very productive.