Re: [Tutor] Help with Object Oriented Programming

2010-08-31 Thread Albert-Jan Roskam
I read Head First Design Patterns (http://oreilly.com/catalog/9780596007126). 
It 
focuses on Java and it's not only good because of the nice woman on the cover. 
;-)

 Cheers!!
Albert-Jan


~~
All right, but apart from the sanitation, the medicine, education, wine, public 
order, irrigation, roads, a fresh water system, and public health, what have 
the 
Romans ever done for us?
~~





From: Tino Dai 
To: Alan Gauld 
Cc: tutor@python.org
Sent: Tue, August 31, 2010 3:43:57 PM
Subject: Re: [Tutor] Help with Object Oriented Programming

On Mon, Aug 30, 2010 at 3:21 PM, Alan Gauld  wrote:
>
> "Tino Dai"  wrote
>
>>  I'm beefing up my Object-Oriented Analysis and Design - getting
>> the gaps in my
>> knowledge filled in through the Head First OOAD book
>
> I don't know it although I've seen a couple of others in the series.
>
> My recommendations for general OOAD books are:
>
> Timothy Budd - OOP. It's not Python but covers the basic principles well.
>
> Grady Booch - OOAD - The second edition is all in C++, The first edition, if
> you can find one,
> is in 5 different langiages and IMHO much better for it. It stops you
> focusing on the
> language and helps focus on the OO principles.
>
> Bruce Eckel - Thinking in Java - One of the very few books on Java that does
> a good
> job of teaching OO. He was going to do a Thinking in Python but I think it
> died :-(
>
> And finally the original Design Patterns book by the Gang of Four. Its a bit
> heavy
> but the information is excellent.
>

I have Design Patterns on my desk. And I will check out the Timothy Budd and
Grady Booch book. I think we might even have the first edition of that
book - a benefit
of working at a library. Thanks Alan!

-Tino
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor



  ___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Help with Object Oriented Programming

2010-08-31 Thread Tino Dai
On Mon, Aug 30, 2010 at 2:59 PM, Knacktus  wrote:
> You could google for
>
> 1) Alex Martelli, Design Patterns
> He's a Pyton guru and there're some online talks (at Google and some
> conferences) about DP; a bit difficult to understand, well, he's guru ;-)


>
> 2) http://www.suttoncourtenay.org.uk/duncan/accu/pythonpatterns.html
> I like that one.
>
> Also, there're some presentations about "the lack of design patterns in
> Python" on the web. Google should help or look at the PyCon archives. Very
> useful stuff there.

Will check those out. Especially the Alex Martelli information. I
think I have this
Python cookbook somewhere around here. Thanks Jan!

-Tino
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Help with Object Oriented Programming

2010-08-31 Thread Tino Dai
On Mon, Aug 30, 2010 at 3:21 PM, Alan Gauld  wrote:
>
> "Tino Dai"  wrote
>
>>      I'm beefing up my Object-Oriented Analysis and Design - getting
>> the gaps in my
>> knowledge filled in through the Head First OOAD book
>
> I don't know it although I've seen a couple of others in the series.
>
> My recommendations for general OOAD books are:
>
> Timothy Budd - OOP. It's not Python but covers the basic principles well.
>
> Grady Booch - OOAD - The second edition is all in C++, The first edition, if
> you can find one,
> is in 5 different langiages and IMHO much better for it. It stops you
> focusing on the
> language and helps focus on the OO principles.
>
> Bruce Eckel - Thinking in Java - One of the very few books on Java that does
> a good
> job of teaching OO. He was going to do a Thinking in Python but I think it
> died :-(
>
> And finally the original Design Patterns book by the Gang of Four. Its a bit
> heavy
> but the information is excellent.
>

I have Design Patterns on my desk. And I will check out the Timothy Budd and
Grady Booch book. I think we might even have the first edition of that
book - a benefit
of working at a library. Thanks Alan!

-Tino
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Help with Object Oriented Programming

2010-08-31 Thread Tino Dai
On Mon, Aug 30, 2010 at 2:26 PM, Serdar Tumgoren  wrote:
> I haven't read it yet myself, but the below book just came out:
>
> http://www.amazon.com/Python-3-Object-Oriented-Programming/dp/1849511268/ref=cm_cr_pr_sims_t
>
> I'm not aware of any other book that focuses exclusively on OO in Python,
> though you'll find good intros to the topic in a number of the "classics,"
> such as the newest Learning Python (4th Edition) and Core Python (2nd
> Edition).
>

I will check all of those out. Thanks Serdar!
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Help with Object Oriented Programming

2010-08-30 Thread Alan Gauld


"Tino Dai"  wrote

  I'm beefing up my Object-Oriented Analysis and Design - 
getting

the gaps in my
knowledge filled in through the Head First OOAD book


I don't know it although I've seen a couple of others in the series.

My recommendations for general OOAD books are:

Timothy Budd - OOP. It's not Python but covers the basic principles 
well.


Grady Booch - OOAD - The second edition is all in C++, The first 
edition, if you can find one,
is in 5 different langiages and IMHO much better for it. It stops you 
focusing on the

language and helps focus on the OO principles.

Bruce Eckel - Thinking in Java - One of the very few books on Java 
that does a good
job of teaching OO. He was going to do a Thinking in Python but I 
think it died :-(


And finally the original Design Patterns book by the Gang of Four. Its 
a bit heavy

but the information is excellent.

HTH,


--
Alan Gauld
Author of the Learn to Program web site
http://www.alan-g.me.uk/


___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Help with Object Oriented Programming

2010-08-30 Thread Knacktus

You could google for

1) Alex Martelli, Design Patterns
He's a Pyton guru and there're some online talks (at Google and some 
conferences) about DP; a bit difficult to understand, well, he's guru ;-)


2) http://www.suttoncourtenay.org.uk/duncan/accu/pythonpatterns.html
I like that one.

Also, there're some presentations about "the lack of design patterns in 
Python" on the web. Google should help or look at the PyCon archives. 
Very useful stuff there.


And finally, 1 gramm of practice weighs more than 1 ton of theory. I see 
it right now after some month absence from coding.


Cheers,

Jan
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Help with Object Oriented Programming

2010-08-30 Thread Knacktus

Am 30.08.2010 20:13, schrieb Tino Dai:

Hi Everybody,

I'm beefing up my Object-Oriented Analysis and Design - getting
the gaps in my
knowledge filled in through the Head First OOAD book
(http://headfirstlabs.com/books/hfooad/).
  That book focuses on Java - is there a comparable book for Python? I
have already read the
Alan Gauld's intro on classes, but I'm looking for more. My goal is to
be able to design
and code in Python in an OO fashion exploiting the OO paradigm as it related to
Python at the level of  Kent Johnston (hey, if I'm going to dream,
might as well dream big! :)  ).
Currently, some of the things such as inheritance and encapsulation
apply across OO languages
but interfaces (I know that Zope has this) and mixin's are language
specific constructs.
If anybody could point me in the right direction, that would be great!

TIA,
Tino
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Hi Tino,

I've started in a very simliar fashion. My first OO-app was a procedural 
Fortran-style Java application ;-)
Then I stumbled over Python but was aware that I had no clue about 
OO-Programming. I read the book Head First OOAD, too. And also stuff 
about design patterns.
At the beginning, it's a bit confusing. There's a lot of overhead 
involved due to Java's static typing. You have to use inheritance, 
interfaces, abstract classes etc. to achieve certain things, e.g. make 
code general ("develop for interface not implementation ...") With 
Python the same things can be achieved a loot easier and in the end 
clearer (at least to me). One example are the iterator and visitor 
patterns. Those can be done so smoothly in Python thanks to "everything 
is a first class object". It would be fatal to try to translate Java 
Code from the DP book to python.
Overall, Java OO and DP are helpful to know and understanding the ideas 
behind them will help you with Python. But things are done differently 
with Pyhton (don't try to mimick Java!) and you will be very very happy 
about that.

___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Help with Object Oriented Programming

2010-08-30 Thread Serdar Tumgoren
I haven't read it yet myself, but the below book just came out:

http://www.amazon.com/Python-3-Object-Oriented-Programming/dp/1849511268/ref=cm_cr_pr_sims_t

I'm not aware of any other book that focuses exclusively on OO in Python,
though you'll find good intros to the topic in a number of the "classics,"
such as the newest Learning Python (4th Edition) and Core Python (2nd
Edition).
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


[Tutor] Help with Object Oriented Programming

2010-08-30 Thread Tino Dai
Hi Everybody,

   I'm beefing up my Object-Oriented Analysis and Design - getting
the gaps in my
knowledge filled in through the Head First OOAD book
(http://headfirstlabs.com/books/hfooad/).
 That book focuses on Java - is there a comparable book for Python? I
have already read the
Alan Gauld's intro on classes, but I'm looking for more. My goal is to
be able to design
and code in Python in an OO fashion exploiting the OO paradigm as it related to
Python at the level of  Kent Johnston (hey, if I'm going to dream,
might as well dream big! :)  ).
Currently, some of the things such as inheritance and encapsulation
apply across OO languages
but interfaces (I know that Zope has this) and mixin's are language
specific constructs.
If anybody could point me in the right direction, that would be great!

TIA,
Tino
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor