[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.python

Anything like "Effective Java" for Python?

kj

3/10/2010 3:19:00 PM




Subject line pretty much says it all: is there a book like "Effective
Java" for Python. I.e. a book that assumes that readers are
experienced programmers that already know the basics of the language,
and want to focus on more advanced programming issues?

~K
12 Answers

Simon Brunning

3/10/2010 3:30:00 PM

0

On 10 March 2010 15:19, kj <no.email@please.post> wrote:
> Subject line pretty much says it all: is there a book like "Effective
> Java" for Python.  I.e. a book that assumes that readers are
> experienced programmers that already know the basics of the language,
> and want to focus on more advanced programming issues?

<http://www.packtpub.com/expert-python-programmin... is good.

--
Cheers,
Simon B.

Chris Withers

3/10/2010 4:46:00 PM

0

kj wrote:
>
>
> Subject line pretty much says it all: is there a book like "Effective
> Java"

oxymoronic, no?

Sorry, couldn't resist ;-)

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simpli...

Stefan Behnel

3/11/2010 7:54:00 AM

0

Chris Withers, 10.03.2010 17:46:
> kj wrote:
>> Subject line pretty much says it all: is there a book like "Effective
>> Java"
>
> oxymoronic, no?
>
> Sorry, couldn't resist ;-)

Nothing to excuse for. I thought exactly the same thing.

Stefan

James Harris

3/11/2010 8:30:00 AM

0

On 10 Mar, 15:19, kj <no.em...@please.post> wrote:
> Subject line pretty much says it all: is there a book like "Effective
> Java" for Python.  I.e. a book that assumes that readers are
> experienced programmers that already know the basics of the language,
> and want to focus on more advanced programming issues?

I don't know about the Java book you mention but I find Python in a
Nutshell published by O'Reilly to be a good reference.

James

Stefan Behnel

3/11/2010 2:24:00 PM

0

James Harris, 11.03.2010 09:30:
> On 10 Mar, 15:19, kj<no.em...@please.post> wrote:
>> Subject line pretty much says it all: is there a book like "Effective
>> Java" for Python. I.e. a book that assumes that readers are
>> experienced programmers that already know the basics of the language,
>> and want to focus on more advanced programming issues?
>
> I don't know about the Java book you mention but I find Python in a
> Nutshell published by O'Reilly to be a good reference.

There's also the Python Cookbook that has a couple of useful recipes that
can become handy at times.

http://code.activestate.com/recipes/lan...

Stefan

kj

3/11/2010 3:06:00 PM

0

In <mailman.561.1268239578.23598.python-list@python.org> Chris Withers <chris@simplistix.co.uk> writes:

>kj wrote:
>>
>>
>> Subject line pretty much says it all: is there a book like "Effective
>> Java"

>oxymoronic, no?

>Sorry, couldn't resist ;-)

I hear you, but still: read "Effective Java" some day; it will make
you a better programmer, whatever your language preference. I'm
certainly no fan of Java, but I still rank Effective Java as one
of my best reads on programming ever. I felt that my maturity as
a programmer went up a notch or two after digesting this book.

Cheers,

~K

Steve Howell

3/11/2010 3:16:00 PM

0

On Mar 11, 7:05 am, kj <no.em...@please.post> wrote:
> In <mailman.561.1268239578.23598.python-l...@python.org> Chris Withers <ch...@simplistix.co.uk> writes:
>
> >kj wrote:
>
> >> Subject line pretty much says it all: is there a book like "Effective
> >> Java"
> >oxymoronic, no?
> >Sorry, couldn't resist ;-)
>
> I hear you, but still: read "Effective Java" some day; it will make
> you a better programmer, whatever your language preference.  I'm
> certainly no fan of Java, but I still rank Effective Java as one
> of my best reads on programming ever.  I felt that my maturity as
> a programmer went up a notch or two after digesting this book.
>

I'll second that. I much prefer Python to Java, but Effective Java is
an excellent book.

Many of its topics would be applicable to Python, although the
solutions in Python would obviously be different.

Eliminate obsolete object references (use None to break reference
counts)
Avoid finalizers (use the "with" statement)
Favor immutability
Design method signatures carefully (including the x=[] gotcha)
Optimize judiciously
Don't ignore exceptions
Avoid excessive synchronization

There are also some topics in Effective Java where the advice is
almost the opposite of Python tradition.



Kevin Walzer

3/11/2010 3:44:00 PM

0

On 3/10/10 10:19 AM, kj wrote:
> Subject line pretty much says it all: is there a book like "Effective
> Java" for Python. I.e. a book that assumes that readers are
> experienced programmers that already know the basics of the language,
> and want to focus on more advanced programming issues?
>
> ~K
I haven't read "Effective Java," but I have found Lutz's "Programming
Python" to be a very useful guide to solving various programming issues
with the language. It's a big, big book, so there's lots to look at.

--
Kevin Walzer
Code by Kevin
http://www.codeb...

mk

3/11/2010 5:28:00 PM

0

kj wrote:
>
>
> Subject line pretty much says it all: is there a book like "Effective
> Java" for Python. I.e. a book that assumes that readers are
> experienced programmers that already know the basics of the language,
> and want to focus on more advanced programming issues?

I'm surprised nobody mentioned Dive Into Python:

http://diveintop...

Available for free online. Most Python books contain a lot of 'hello
world' material which for someone who knows at least one programming
language is boring, this one doesn't, it cuts straight to the point. I
found it very readable.

Regards,
mk



Steve Holden

3/12/2010 1:07:00 PM

0

Neo wrote:
> I have learned java for half a year and now I want to learn Python,
> should I learn python 3k or the traditional version?
>
That depends on whether you need to use specific libraries that haven't
yet been ported to Python 3. If so then start with Python 2. If not,
start with 3 - the differences are small enough that you can relatively
easily fall back to 2 if you need to get access to non-ported libraries.

regards
Steve

> On Wed, Mar 10, 2010 at 7:19 AM, kj <no.email@please.post> wrote:
>
>
>
>
> Subject line pretty much says it all: is there a book like "Effective
> Java" for Python. I.e. a book that assumes that readers are
> experienced programmers that already know the basics of the language,
> and want to focus on more advanced programming issues?
>
> ~K
> --
> http://mail.python.org/mailman/listinfo/p...
>
>


--
Steve Holden +1 571 484 6266 +1 800 494 3119
See PyCon Talks from Atlanta 2010 http://pyco...
Holden Web LLC http://www.hold...
UPCOMING EVENTS: http://holdenweb.event...