Re: Strategy Design Pattern

2006-04-21 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, Daniel Santa Cruz wrote: > In the specific case of the Strategy pattern, I think the goal is to > abstract out of the class an algorithm that can then be reused by some > of the inherited classes. This way we don't repeat ourselves. Maybe I > got this all wrong... IMHO

Re: Strategy Design Pattern

2006-04-21 Thread bruno at modulix
Daniel Santa Cruz wrote: > Hello all, > > I've been trying to go over my OO Patterns book, and I decided to try > to implement them in Python this time around. I figured this would > help me learn the language better. > > Well, I've gotten stuck with my first go at OO patterns with Python. I >

Re: Strategy Design Pattern

2006-04-21 Thread Gerard Flanagan
Daniel Santa Cruz wrote: > Hello all, > > I've been trying to go over my OO Patterns book, and I decided to try > to implement them in Python this time around. I figured this would > help me learn the language better. > > Well, I've gotten stuck with my first go at OO patterns with Python. I > g

Re: Strategy Design Pattern

2006-04-21 Thread Ben Sizer
Daniel Santa Cruz wrote: > Well, I've gotten stuck with my first go at OO patterns with Python. I > guess it goes without say that some of the stuff that are taken for > granted in most of the books (ie. Interfaces, Abstract classes) don't > really apply to Python per say, but the idea behind the

Re: Strategy Design Pattern

2006-04-21 Thread Kay Schluehr
Daniel Santa Cruz wrote: > Hello all, > > I've been trying to go over my OO Patterns book, and I decided to try > to implement them in Python this time around. I figured this would > help me learn the language better. I guess it might help clarifying what OO is about since you see what happens w

Re: Strategy Design Pattern

2006-04-20 Thread Alex Martelli
Daniel Santa Cruz <[EMAIL PROTECTED]> wrote: ... > I'm at a loss at how I can do this with Python, any pointers would be > more than welcomed! Check out my homepage, www.aleax.it, you'll find several PDFs for my various presentations over the years: many have to do with DPs and Python, and I s

Strategy Design Pattern

2006-04-20 Thread Daniel Santa Cruz
Hello all, I've been trying to go over my OO Patterns book, and I decided to try to implement them in Python this time around. I figured this would help me learn the language better. Well, I've gotten stuck with my first go at OO patterns with Python. I guess it goes without say that some of th