The day has finally arrived. The blog post which nobody thought will happen, has happened. I had planned to work in theoretical computer science even before entering computer science department. As an ardent believer in the sanctity of mathematics, I avoided programming at all cost. As a wannabe cool dude, never showed any traits of a geek. But today I will shed all the inhibitions and write about a programming language, called "Python".
Few days back, my friend "Bandar-hair" convinced me to learn Python. His name is being changed because of the privacy issues (I like to believe that many people read my blog, in spite of the evidence for the contrary). Many thanks to him, for the wonderful advice.
The reason why it is awesome is because of the intelligence in the structure and design. To start with there are NO DECLARATIONS. Sometimes I also don't know whether the variable is integer, double or single; but the language knows:). The amazing thing is it has almost all operations for every data type. So a string can be added or multiplied, all with the usual symbols. So just name a variable and let the program take care of data type. Another brilliant thing, You don't need to put semicolon or dot after every sentence. In effect, saves at least 1 compilation error every 5 lines you write.
Lets come to more substantial points. It has extensive libraries which cover Matlab, Maple and Mathematica. So you get all the functionality without the rigid and painful syntax. And like scheme, you can pass functions as arguments. That give the programmer immense power, which I don't know how to use :P. A small point, if you write "if i=10", the interpreter shows you an error, and does not assume it to be always true. See, a very intelligent language.
This fills up my quota of talking about a programming language intelligently (or in a partially intelligent way). I knew this entry was going to be short, but still I underestimated my coolness (or overestimated my geekiness). It all started with a small tutorial "Learn Python the hard way", available on net, and finished before the tutorial was not over.
Given that I have finished the blog entry before the tutorial, probably should look into alternate career path :P. On this thought, let me say good bye and leave you wondering about your career path.
This post is a true cure for insomnia :p
ReplyDelete