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

2005-06-08 Thread Alan G
You've certainly given me a mouthful to chew on :~) I was thinking more in terms of OOP is about code reuse Thats not a good approach to OOP. Code reuse is often as easy to achieve using modules and functions. As Javier said OOP is aboiut things - objects. You need to build your whole design

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

2005-06-08 Thread Lee Cullens
Javier, Allen, Kent, Liam Hmm, I think I understand what you all are saying. Basically, my familiar take on code reuse (the function model) as used in the utility is essentially not rewriting any more of a block than what is different, as opposed to do all blocks with convoluted switching.

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

2005-06-08 Thread Liam Clarke
Hey Lee, I can empathise with your learning of OO. Once you get past the buzz, it's just a way of designing programmes that's good for certain situations. Very useful for things like writing text validators for GUIs as an abstract class and subclassing all windows from that to inherit the