PC Review


Reply
Thread Tools Rate Thread

Design Pattern?

 
 
pitachu@gmail.com
Guest
Posts: n/a
 
      31st Jan 2006
Hi,
I'm not an expect in .NET, so would anyone know an answer a design
pattern for the following?


There are many customers that require minor customizations to the
program I will be developing. I would like to reuse the majority of the

functionality of this program since each customer is only requiring
certain changes to this program.


Is there a way to design this so that the main base, skeleton of the
program is seperate from the customization and the different
customizations can be loaded like a snap on module? Sort of like a SNES

game system, and each cartridge makes the console provide a differnt
type of service? Is there a design pattern for this?


Thanks!

 
Reply With Quote
 
 
 
 
Kent Boogaart
Guest
Posts: n/a
 
      31st Jan 2006
Google for plugins and automation models.

HTH,
Kent

<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
> I'm not an expect in .NET, so would anyone know an answer a design
> pattern for the following?
>
>
> There are many customers that require minor customizations to the
> program I will be developing. I would like to reuse the majority of the
>
> functionality of this program since each customer is only requiring
> certain changes to this program.
>
>
> Is there a way to design this so that the main base, skeleton of the
> program is seperate from the customization and the different
> customizations can be loaded like a snap on module? Sort of like a SNES
>
> game system, and each cartridge makes the console provide a differnt
> type of service? Is there a design pattern for this?
>
>
> Thanks!
>



 
Reply With Quote
 
Ignacio Machin \( .NET/ C# MVP \)
Guest
Posts: n/a
 
      31st Jan 2006
Hi,


> There are many customers that require minor customizations to the
> program I will be developing. I would like to reuse the majority of the
>
> functionality of this program since each customer is only requiring
> certain changes to this program.


Are you primarely talking about a on/off situation, where a customer either
have one module or not.
Or it's more like this customer has this process and the other have another
for the same action?


If you case is the first then a plugin pattern solve it.
In the latter case a strategic pattern could be more useful.



--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation


 
Reply With Quote
 
pitachu@gmail.com
Guest
Posts: n/a
 
      31st Jan 2006
Hi Ignacio,

Basically, the STANDARD version of this program should provide X number
of functionalities.

Customer A might like the standard version and would have all of X
number of functionalties, while Customer B will only need (X - N)
number of functionalities. But what happens in the case when Customer C
don't like just 1 or 2 of these functionalties and want us to replace
it with a modified version of functionalites? How could I just update
these "pluggable" modules so that it everything else stays the same,
except those 2 functionalities? Or what if I want to add 3 NEW
functionalities in addition to this X number of standard
functionalities? Is there a design pattern for that?

 
Reply With Quote
 
Leslie Sanford
Guest
Posts: n/a
 
      31st Jan 2006

<(E-Mail Removed)> wrote in message:
> Hi,
> I'm not an expect in .NET, so would anyone know an answer a design
> pattern for the following?
>
>
> There are many customers that require minor customizations to the
> program I will be developing. I would like to reuse the majority of
> the functionality of this program since each customer is only
> requiring certain changes to this program.
>
>
> Is there a way to design this so that the main base, skeleton of the
> program is seperate from the customization and the different
> customizations can be loaded like a snap on module? Sort of like a
> SNES game system, and each cartridge makes the console provide a
> differnt type of service? Is there a design pattern for this?


Polymorphism is the concept you'll use. Many, if not all, of the design
patterns in GoF use polymorphism.

Isolate the parts of your application that will change and represent
those parts as interfaces. Have the "main base" refer to these
interfaces instead of concreate implementations. This way, new
implementations can be plugged into your framework without changing the
existing code.

Now, the solution I've just given is necessarily general and broad. Look
through GoF and study each design pattern. Some may be applicable to
your situation. You could start with the Template design pattern. Hope
this helps.



 
Reply With Quote
 
Ignacio Machin \( .NET/ C# MVP \)
Guest
Posts: n/a
 
      31st Jan 2006
Hi,


> Customer A might like the standard version and would have all of X
> number of functionalties, while Customer B will only need (X - N)
> number of functionalities. But what happens in the case when Customer C
> don't like just 1 or 2 of these functionalties and want us to replace
> it with a modified version of functionalites? How could I just update
> these "pluggable" modules so that it everything else stays the same,
> except those 2 functionalities? Or what if I want to add 3 NEW
> functionalities in addition to this X number of standard
> functionalities? Is there a design pattern for that?
>


You just use a plug in structure, take a look at
http://www.yoda.arachsys.com/csharp/plugin.html for where to start.

You can have in a config file what plugin you need to load.

In case that you need to change functionality of the same module you have to
decide what to do depending of your situation, if you have a small number
each for a particular client then you could simply consider them as another
plugin, if you have a number of variation of one module you could use a
Strategic pattern



--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation


 
Reply With Quote
 
pitachu@gmail.com
Guest
Posts: n/a
 
      31st Jan 2006
Hi Ignacio and Leslie,

Thank you very much for your replies.

Does it make a difference if the desired final result is for these
custom modules to be (in PC Hardware terms) hot swappable? The skeleton
of the application should be running constantly without shutting off. I
would literally like to just drop the customizations into a specific
folder and the app should be able to run that specific customer's
customization. All these customizations would be running from the same
application (I'm not actually repackaging for different clients).
Basically, just one application would be processing different
customizations simultaneously.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Design Pattern (maybe) csharpula csharp Microsoft C# .NET 3 22nd Nov 2007 04:27 PM
Design/Pattern guidance to refector my current design for unit testing sklett Microsoft C# .NET 1 22nd Aug 2007 12:58 PM
Please help about the design pattern. Cylix Microsoft Dot NET 1 10th Aug 2006 09:13 AM
Design Pattern? pitachu@gmail.com Microsoft Dot NET Framework 2 31st Jan 2006 06:36 PM
design pattern Hugo Batista Microsoft Dot NET Framework 3 25th Feb 2005 07:22 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:43 PM.