I am a software engineer mainly working on enterprise systems with Java. One of my hobby is to write scripts for anything that I (might) have to repeat in near future. I usually prefer shell scripting for writing scripts. But for some particular tasks, like converting seconds to ISO8601 formatted date string, multi-threaded http request and response handling with file i/o; I needed something extra for these as shell script was becoming overly complicated.
From all the buzz about Python I said myself let me give it a shot and check it out. I have to admit that I was astounded, stupefied , awed at how simple and powerful it was to achieve all that I needed for my use case. It took me just about to 3 hours to get Python 2.5, IDLE installed and write my first 2 programs which the do the following tasks-
- Take seconds as input from command line argument and print its ISO8601 equivalent.
- Take URLs as input and take 'n' samples for their response-time and total duration while all URLs should perform these tasks in parallel.
From what I read later, I learnt that its equally simple to build UIs with Python and with some Googling I learnt of Google App Engine, which just makes developers life easy (at least thats what its there for).
I plan to do more work Python in near future and learn it and master it. If you have not yet tried Python, then I recommend to do ASAP and enjoy it.....
It is good to read your feedback about Python. It is really a powerfull language for all propouses. Welcome to Python!
ReplyDeleteThat's a question that is still in my mind. And I still didn't found the answer.
ReplyDeleteSome years ago I had a brief exposure to python but I didn't found compelling reasons to keep using it.
Some time ago I decided to give it another opportunity, and started developing a desktop application. At least for now, I didn't found any major advantage over Java. The code I'm writing ends being very similar to the one I would write in Java, except I don't have the benefit of using a powerfull code completion as the one provided by Eclipse. Maybe I'm using the wrong approach due to my Java background.
I'm especially annoyed with the need of using self to access instance attributes.
I agree that it's a language with some interesting features, but I still didn't found the need to use them.
Anyway I will keep using it for my application, hoping to be enlightened.
Welcome to the nice python world. Fantastic how you write you satisfaction about skype. 2 hours is really good. I required an afternoon to read the python tutorial and starting to program. After that I was infected. :-)
ReplyDeleteAhh.. sorry I mean python ... not skype..
ReplyDelete@Christiano, @kai
ReplyDeleteI am so in intrigued by it strength that I just discovered that this is the language I can integrate with my tools in order to allow user side scripting to add some dynamism. Hopefully will blog about it soon...
@joao
It depends on what we are trying to achieve with any language I guess. For my case I found Python to be extremely useful for quick development for staffs that I did not need to compile and place somewhere just to get it to run in trial and error way. Plus I got everything done. May be for your use case Java is the best option, why dont you try Python with Jython to code Swing? Then you will be able to have a better idea. I just bought "Beginning Python" it has a whole chapter dedicated to it :).
The book also goes about using python to code servlets :). Try the book it could be enlightening :). Hope you enjoy it too.
Hi!
ReplyDeleteAs a Python enthusiastic it's really nice to read your post :-)
@joao
For people with Java background a good post is "Python is not Java" http://dirtsimple.org/2004/12/python-is-not-java.html
As christiano said, welcome to Python :-)
nice post imran bhai,
ReplyDeleteso far i can remind i last tried python in 2002. i had the same impression.
but these days i really love ruby and i feel i can almost do anything (except unicoded text related stuffs). i write server related scripting in ruby.
if i didn't find ruby i suppose to look back to python again.
@Hasan bhai
ReplyDeleteRuby is fantastic, but I sort of prefer Python, no compelling reason yet, but I think its versatility to do anything is a deterministic feature.
Will have to try to Scala as well, but only once I am tired with Java, Python and Shell Scripting :).
I also tried Python but not explored it completely, I hope to go through more and understand its real strength as you did.
ReplyDelete