473,396 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Design Pattern?

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!

Jan 31 '06 #1
6 2301
Google for plugins and automation models.

HTH,
Kent

<pi*****@gmail.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
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!

Jan 31 '06 #2
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
Jan 31 '06 #3
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?

Jan 31 '06 #4

<pi*****@gmail.com> 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.

Jan 31 '06 #5
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
Jan 31 '06 #6
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.

Jan 31 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Omer van Kloeten | last post by:
The Top Level Design: The class Base is a factory class with a twist. It uses the Assembly/Type classes to extract all types that inherit from it and add them to the list of types that inherit...
11
by: FluffyCat | last post by:
In Febraury - April of 2002 I put together in Java examples of all 23 of the classic "Gang Of Four" design patterns for my website. Partly I wanted to get a better understanding of those patterns....
1
by: Takayasu Kenduma | last post by:
hi everybody. i am quite new about design patterns and i would like improve my experience in c# applications design. so i choose a common problem as a draft to talk about in the group to find the...
12
by: FluffyCat | last post by:
New on November 28, 2005 for www.FluffyCat.com PHP 5 Design Pattern Examples - the Visitor Pattern. In the Visitor pattern, one class calls a function in another class and passes an instance of...
4
by: FluffyCat | last post by:
New on November 29, 2005 for www.FluffyCat.com PHP 5 Design Pattern Examples - the Command Pattern. Since you all enjoyed the Visitor Pattern so much yesterday, today I have the Command Pattern...
16
by: sailor.gu | last post by:
Hi all guys, As an embeded programmer with five year C experience, I did read many great books related with design, coding, test,debug,algorithms, compiler, design, os, pm and others. I...
2
by: Mike | last post by:
Hello NG, i am just learning various Design Patterns and now i am not sure, if this design is correct (Builder) or if i should use an other pattern. I have various classes (here ChildA and...
22
by: Krivenok Dmitry | last post by:
Hello All! I am trying to implement my own Design Patterns Library. I have read the following documentation about Observer Pattern: 1) Design Patterns by GoF Classic description of Observer....
3
by: FluffyCat | last post by:
Last month I continued my series of design patterns examples using PHP 5 with the Observer Pattern and the Prototype Pattern. Here now is my 16th example, the Adapter pattern. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.