Re: preemptive OOP?
- From: John Salerno <johnjsal@xxxxxxxxxxxxxxx>
- Date: Thu, 28 Sep 2006 19:25:17 GMT
Erik Johnson wrote:
My feeling is that there is no good reason to add the complexity of your
own custom classes if they provide no additional data or behaviour. If you
know you have plans to add your own attributes and/or methods to MyNotebook
soon, there's no harm in doing this now, but why? You can always create your
own custom subclass at the point when you have something of value to add and
through the mircale of polymorphism, it will function everywhere a Notebook
would.
I think you're right. In fact, one thing I always loved about Python was that OOP is optional, and here I am trying to force it upon myself unnecessarily! :)
.
- Follow-Ups:
- Re: preemptive OOP?
- From: Steve Holden
- Re: preemptive OOP?
- References:
- preemptive OOP?
- From: John Salerno
- Re: preemptive OOP?
- From: Erik Johnson
- preemptive OOP?
- Prev by Date: Re: how do you know if open failed?
- Next by Date: Re: Help me use my Dual Core CPU!
- Previous by thread: Re: preemptive OOP?
- Next by thread: Re: preemptive OOP?
- Index(es):