From Java to Python
Last year when I went on sabbatical. I also planned to learn something new. But then new language wasn't on my priority list. So I didn't :)
Sale of Sun to Oracle happened. That was the trigger and tipping point. I could somehow never associate myself with Oracle. All of a sudden this cool geek company was part of big business Oracle. Now I wanted a language which has its roots in FOSS and is developer oriented.
I started looking for a new language. The final list of languages were Ruby, Python and Scala.
I was in search of a language
- Rooted in Free and Open Source ideology
- Clean and easy to learn
- Lots of libraries
- OOP support
- Can be used both for system level programming and web development
- Preferably scripting language
- Cross platform
- Community support
Python satisfied everything. So it was Python.
End of Java?
Not really. Though I might use it only on Android platform!
The new beginning
Once I was sure of Python, the rest were easy. On my default platform Linux (Ubuntu), I use Scribes as my editor. On windows I use Notepad++.
Of course there was a confusion of learning Python 2.7 or 3. But then I was learning and not implementing so chose shiny new Python 3.
Books to begin
Didn't have to buy any books. Used A Byte of Python
and Dive into Python heavily. Also used Python wiki.
So here I am with a new language, exploring new world. Its been great until now and I expect the same in future.
Glad that you made the right choice ;)
I would also recommend that you check out Zed Shaw’s Learn Python The Hard Way, if you haven’t already.
I also suggest reading the django source code for appreciating some standard python idioms.
Thej, I want to learn Python but haven’t done so far. I remember sometime in 2003 in my first job, I had to define new skills that I would learn. I proposed Python and my manager said what is the use of it for you and for this company. I never attempted explaining.
Welcome to Python! :-)
/I was not interested in learning completely new language and its ecosystem. Also because there was no need. All my bread and butter work was done in Java./
I have the same friction towards learning a new language. Every time I decide to learn a language, I ask myself, “why?” – Java is more than sufficient and works..
Please share how you would be using Python for web development. :)
I guess “A Byte of Python” is one the best Python tutorials I have seen on web… Continue sharing your experience..
Welcome to Python.
btw, check this http://imgur.com/gallery/ZyeCO
@Arun thanks for the link
@Sanjay you should start
@Veera of course I will write
@Naveen yes it is. Thanks to Swaroop
Welcome to Python :)
Regarding editor/IDE you can use anything, I use Emacs, Geany and Netbeans. You can use Eclipse too.
You can choose version 3 if you are not going to use third party libraries. Some third party libraries are not available for version 3; I use 2.7. Read python documentation also.
@Veera “Every time I decide to learn a language, I ask myself, “why?”” I feel the same whenever I try to learn Java :P
For web programming there is Django and lots of frameworks. There is pyjamas.
@Joe Yes. for all practical purposes its v2.7.
For web I am planning to use web.py. It looks simple and easy. What do you think?
Of course web.py is simple and easy, where as Django is bit heavy weight framework. There is nothing wrong if you call Django as CMS. But Django has its own advantages. web.py is as good as django. It is a framework for people like me who don’t know ABC of web programming :)
I learned Python when I was in Infosys and had to work on automation scripts for build and deployment. The same thought that why to learn a new language when Java is already there came to my mind too. But I had to so I did. Looking back now, I think it was a good decision – at least I can boast that I know Python. I have not used Python extensively and have only used it for build and automation purpose not only because I was busy with work but also as I was busy reading Indian Constitution, Polity, Public Administration and History. Hope that I will soon be back in Technology stuff and this post of yours will be the initiator for me. Hope that everything goes well!!
All the best to you and hope the same from your side for me as well.
P.S.:- For last 3 years, I have not even used Java extensively. Have been working on Oracle Service Bus.
Finally started with Python again!!! ;)
@Palak Very cool
is there any streaming json parser for python(written in python purely)?