File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Jython/Python and the fly likes Think Python - I see the author has written learning books for other languages, so why Python? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Languages » Jython/Python
Bookmark "Think Python - I see the author has written learning books for other languages, so why Python?" Watch "Think Python - I see the author has written learning books for other languages, so why Python?" New topic
Author

Think Python - I see the author has written learning books for other languages, so why Python?

Michael Swierczek
Ranch Hand

Joined: Oct 07, 2005
Posts: 107
    
    1
Allen Downey,

Thank you for participating in the book giveaway. My first question is simple - which version of Python is your book written for? 2.x? 3.x?

I see at Amazon that you have written books for C++, Java, R, and Perl and an earlier book on Python. What made you decide to tackle Python again? I presume for someone new to computer science Python is an easier choice than C++, Java, or R. But introductory work with Perl, for example, is in my opinion not appreciably more complex than introductory work in Python. I think there is a lot of obfuscated Perl code out in the web, but starting with print "Hello World!\n" in Perl is not much worse than starting out in Python.

Also, I'm curious what made you pick Python as an introductory language instead of, for example, Javascript, Ruby, or Scheme.

Thanks for your time.
Allen Downey
Author
Greenhorn

Joined: Sep 07, 2012
Posts: 25

Hi Michael,

Lots of good questions, so thanks!

I have taught intro programming classes in C, Java, and Python --- and Python wins hands down. Students had less frustration with syntax, more of them were able to master basic programming skills, and they were able to take on more ambitious and more interesting projects.

You are right that Perl is also beginner-friendly. But in my opinion Python code is easier to read, which makes it easier to debug. And for beginners debuggability might be the most important feature.

You asked about which version of Python the book is for. It is primarily Python 2.x, but there are only a few differences in Python 3 that come up, and I note them in the text. The accompanying software suite, Swampy, is in Python 2.x.

Thanks again!
Allen

All of my books are available from http://greenteapress.com
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Think Python - I see the author has written learning books for other languages, so why Python?