473,698 Members | 1,901 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2329
Google for plugins and automation models.

HTH,
Kent

<pi*****@gmail. com> wrote in message
news:11******** **************@ g14g2000cwa.goo glegroups.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
3143
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 from it. During run time, using a static method, the class creates an instance of the derived class using the Activator class and returns it. This design pattern is very similar to the design pattern applied by the Assembly class. The twist is...
11
4301
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. They are still online at http://www.fluffycat.com/java/patterns.html Since September 2003 I've mainly been using PHP, and now that PHP 5 is becoming more available I am going to try the same thing I did in Java with PHP.
1
4260
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 right approach and the different point of views of different programmers. one common problem is a tree structure where a node is a son of another one and nodes can be of different types. i can think about some tables in a database (like access or...
12
3032
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 itself. The called class has special functions for each class that can call it. With the visitor pattern, the calling class can have new operations added without being changed itself.
4
2874
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 for you. This one is pretty straight forward. In the Command Pattern an object encapsulates everything needed to execute a method in another object. http://www.fluffycat.com/SDCMSv2/PHP-Design-Patterns-Command/
16
2324
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 always dream to achieve a refined and reusable design and implementation. I am very interested with code reuse.
2
2294
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 ChildB) derived from class Base. Now i want to create an object, but i don't want to know which class to instantiate.
22
4720
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. Also describes implementation via ChangeManager (Mediator + Singleton) 2) Pattern hatching by John Vlissides Describes Observer's implementation via Visitor Design Pattern. 3) Design Patterns Explained by Alan Shalloway and James Trott
3
2452
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. http://www.fluffycat.com/PHP-Design-Patterns/Adapter/ In the Adapter Pattern we adapt a class we have to provide methods another class needs, without changing the original class. If you work with a lot of classes that you can not change, then this
0
8672
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8600
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9021
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8860
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7712
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4361
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4614
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3038
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2323
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.