[Tutor] OOP - have I done it right or could it be better?

Kent Johnson kent37 at tds.net
Wed Jan 24 11:58:43 CET 2007

Original Brownster wrote:
> --- Kent Johnson <kent37 at tds.net> wrote:
>> This all sounds good. You have a module, Streamrip, that implements
>> the 
>> core functionality you need. From your description, this module
>> doesn't 
>> know about the GUI so it could be reused by another kind of client, 
>> tested, etc. You also have a module that implements a GUI front-end
>> to 
>> Streamrip. All good. Just make sure the Streamrip module doesn't know
>> anything about the Windowapp module - keep the dependencies one-way.
> That's good then as that's how it works, it looks like I'll be adding a
> command line interface too as I am thinking this and cron will be a
> good way to schedule jobs. With the modular approach it means I'll
> pretty much not have to touch the core functionality routines.

Exactly the point. You might need to add or modify functionality for new 
requirements but the core should be easily reusable.


More information about the Tutor mailing list