| Store | Cart

Suggestions for a Java programmer

From: Kent Johnson <ken...@tds.net>
Thu, 24 Mar 2005 13:26:42 -0500
Ray wrote:
> Ville Vainio wrote:> >>Regarding a Java programmer moving to Python, a lot of the mindset>>change is about the abundant use of built in data types of Python. So>>a Java programmer, when confronted with a problem, should think "how>>can I solve this using lists, dicts and tuples?" (and perhaps also my>>new favourite, sets). Class-based solution should be chosen only> > after> >>seeing that the problem can't be trivially solved with built-in> > types.> > Hmmm, but isn't it the same as a Java programmer who's familiar with> the Collection Framework? (Which has list, dict (map), and set)?

Python collections are vastly easier to work with. In particular for creating, iterating and nesting 
collections there is really no comparison between Python and Java. As a result, my Python programs 
use collections much more than Java programs.

To respond to the OP, I recommend the book "Python Cookbook" as a way to learn the Pythonic view. It 
doesn't contrast Python with Java, but it gives many examples of idiomatic Python


Recent Messages in this Thread
Ray Mar 24, 2005 08:22 am
Christos TZOTZIOY Georgiou Mar 24, 2005 09:50 am
Ray Mar 24, 2005 02:01 pm
bruno modulix Mar 24, 2005 10:18 am
Ville Vainio Mar 24, 2005 10:36 am
Ray Mar 24, 2005 02:07 pm
Kent Johnson Mar 24, 2005 06:26 pm
Ray Mar 24, 2005 02:02 pm
Jeremy Bowers Mar 24, 2005 03:47 pm
Messages in this thread

Next post: Python IDE