Re: [Tutor] OO re-factoring (was Pythonese/Efficiency/Generalese critique)

2005-06-08 Thread Liam Clarke
Path looks good. Cheers Kent. On 6/8/05, Kent Johnson <[EMAIL PROTECTED]> wrote: Lee Cullens wrote:> I was thinking of extending the learning exercise by re-factoring it> as an OO approach, since it would contain a minimum altered method.> Being new to OOP also though, I'm confusing myself with how

Re: [Tutor] OO re-factoring (was Pythonese/Efficiency/Generalese critique)

2005-06-08 Thread Kent Johnson
Lee Cullens wrote: > I was thinking of extending the learning exercise by re-factoring it > as an OO approach, since it would contain a minimum altered method. > Being new to OOP also though, I'm confusing myself with how that > would be best accomplished. My thinking is that class/subclass

Re: [Tutor] OO re-factoring (was Pythonese/Efficiency/Generalese critique)

2005-06-07 Thread Lee Cullens
Thanks again for your thoughts Javier. You've certainly given me a mouthful to chew on :~) I was thinking more in terms of "OOP is about code reuse" and trying to equate the function approach to such with the class methods approach in a similar way. Obviously I have got my mind wrapped aro

Re: [Tutor] OO re-factoring (was Pythonese/Efficiency/Generalese critique)

2005-06-07 Thread Javier Ruere
Lee Cullens wrote: > I was thinking of extending the learning exercise by re-factoring it > as an OO approach, since it would contain a minimum altered method. > Being new to OOP also though, I'm confusing myself with how that > would be best accomplished. My thinking is that class/subclass

[Tutor] OO re-factoring (was Pythonese/Efficiency/Generalese critique)

2005-06-07 Thread Lee Cullens
In my original post I noted my recent exposure to Python and put up a little utility to my iDisk asking for a Pythonese/Efficiency/ Generalese critique. Javier, Kent and Liam were gracious enough to offer comments, which were greatly appreciated. To follow through with the learning exercis