Advice Required
-
Dear friends, Consider the following simple program:
int a= 2, b= 3, c=23, d=5, e= 12, f= 30, g= 100;
if(g>a)
{
DoSomething();
}if(a==2 && c == 21)
{
if(d== 5)
{
DoSomething
}
else if( e == 4)
{
DoSomethingElse();
}
}As can be seen from the above program, there are two if conditions in order to fullfil the client's requirements. The client informed us about these conditions and so we included these conditions in the program and sent the software to the client. Now, after few days, the client made a call to us and said that he wanted another condition: if(d==2 || e==11) { DoSomething(); } So we added this condition in the program, compiled it and sent the copy to the client. Similarly client again called us and asked us to add some new conditions and this situation is going on and on. client is daily calling us to add new conditions. Now we want to give something generic to the client i.e we want to add some feature such that there is no need for client to call us , instead he should be able to define his conditions himself whenever he likes and able to customize it. Can anyone suggest me the solution of this problem ? DO i need to add scripting support ? The client is not too much technology savvy, so i like to avoid scripting, however if there is no other solution then i need to give scripting support. If you suggest scripting then whaat do you think will be the best solution VBScript or something else ?? Oh yes, the functions
DoSomething()
andDoSomethingElse()
are predefined. The client will not write new functions. Instead he should be able to define new *condition* and tell that which of these predefined functions gets called if condition is met. Imtiaz -
Dear friends, Consider the following simple program:
int a= 2, b= 3, c=23, d=5, e= 12, f= 30, g= 100;
if(g>a)
{
DoSomething();
}if(a==2 && c == 21)
{
if(d== 5)
{
DoSomething
}
else if( e == 4)
{
DoSomethingElse();
}
}As can be seen from the above program, there are two if conditions in order to fullfil the client's requirements. The client informed us about these conditions and so we included these conditions in the program and sent the software to the client. Now, after few days, the client made a call to us and said that he wanted another condition: if(d==2 || e==11) { DoSomething(); } So we added this condition in the program, compiled it and sent the copy to the client. Similarly client again called us and asked us to add some new conditions and this situation is going on and on. client is daily calling us to add new conditions. Now we want to give something generic to the client i.e we want to add some feature such that there is no need for client to call us , instead he should be able to define his conditions himself whenever he likes and able to customize it. Can anyone suggest me the solution of this problem ? DO i need to add scripting support ? The client is not too much technology savvy, so i like to avoid scripting, however if there is no other solution then i need to give scripting support. If you suggest scripting then whaat do you think will be the best solution VBScript or something else ?? Oh yes, the functions
DoSomething()
andDoSomethingElse()
are predefined. The client will not write new functions. Instead he should be able to define new *condition* and tell that which of these predefined functions gets called if condition is met. Imtiazsounds like you want us to do your homework seriously though, if hes paying for the support on a per job basis then just add it in as he asks for it. Bryce --- To paraphrase Fred Dagg - the views expressed in this post are bloody good ones. --
Publitor, making Pubmed easy. http://www.sohocode.com/publitorOur kids book :The Snot Goblin
-
sounds like you want us to do your homework seriously though, if hes paying for the support on a per job basis then just add it in as he asks for it. Bryce --- To paraphrase Fred Dagg - the views expressed in this post are bloody good ones. --
Publitor, making Pubmed easy. http://www.sohocode.com/publitorOur kids book :The Snot Goblin
bryce wrote: sounds like you want us to do your homework Seriously though, i was not expecting this kind of reply here at Code Project Visual C++ forum. This is not a school work. I only defined my actual problem in simple words and wrote a simple source code above. The actual code is something else. I defined problem in simple source code in order to avoid complexity. The actual software is that of Stock Exchange. There are no variable like a,b,c as described above. The problem is the same. Imtiaz
-
bryce wrote: sounds like you want us to do your homework Seriously though, i was not expecting this kind of reply here at Code Project Visual C++ forum. This is not a school work. I only defined my actual problem in simple words and wrote a simple source code above. The actual code is something else. I defined problem in simple source code in order to avoid complexity. The actual software is that of Stock Exchange. There are no variable like a,b,c as described above. The problem is the same. Imtiaz
Imtiaz Murtaza wrote: Seriously though, i was not expecting this kind of reply here at Code Project Visual C++ forum you didnt re-read my post and you obviously dont read the forum much or you would be aware we get a truckload of "solve my homework" type questions and quite frankly your one looks like one. I did however post a thought on the issue, a further two or 3 thoughts occur to me - one of them being the fact your customer is not tech savvy so keep the tech stuff away from them or they'll stuff it up and you'll have to fix it for them, Bryce --- To paraphrase Fred Dagg - the views expressed in this post are bloody good ones. --
Publitor, making Pubmed easy. http://www.sohocode.com/publitorOur kids book :The Snot Goblin
-
Dear friends, Consider the following simple program:
int a= 2, b= 3, c=23, d=5, e= 12, f= 30, g= 100;
if(g>a)
{
DoSomething();
}if(a==2 && c == 21)
{
if(d== 5)
{
DoSomething
}
else if( e == 4)
{
DoSomethingElse();
}
}As can be seen from the above program, there are two if conditions in order to fullfil the client's requirements. The client informed us about these conditions and so we included these conditions in the program and sent the software to the client. Now, after few days, the client made a call to us and said that he wanted another condition: if(d==2 || e==11) { DoSomething(); } So we added this condition in the program, compiled it and sent the copy to the client. Similarly client again called us and asked us to add some new conditions and this situation is going on and on. client is daily calling us to add new conditions. Now we want to give something generic to the client i.e we want to add some feature such that there is no need for client to call us , instead he should be able to define his conditions himself whenever he likes and able to customize it. Can anyone suggest me the solution of this problem ? DO i need to add scripting support ? The client is not too much technology savvy, so i like to avoid scripting, however if there is no other solution then i need to give scripting support. If you suggest scripting then whaat do you think will be the best solution VBScript or something else ?? Oh yes, the functions
DoSomething()
andDoSomethingElse()
are predefined. The client will not write new functions. Instead he should be able to define new *condition* and tell that which of these predefined functions gets called if condition is met. ImtiazI would just add some settings file, if you don't have one yet. There you could add smth like this: [Custom] DoSomething=... DoSomethingElse=... Given the possibilities you have, you will have to think over what to write in keys to be simple enough for end user to edit it. Alternatively, you could add some settings dialog which you will adjust to it.
-
Dear friends, Consider the following simple program:
int a= 2, b= 3, c=23, d=5, e= 12, f= 30, g= 100;
if(g>a)
{
DoSomething();
}if(a==2 && c == 21)
{
if(d== 5)
{
DoSomething
}
else if( e == 4)
{
DoSomethingElse();
}
}As can be seen from the above program, there are two if conditions in order to fullfil the client's requirements. The client informed us about these conditions and so we included these conditions in the program and sent the software to the client. Now, after few days, the client made a call to us and said that he wanted another condition: if(d==2 || e==11) { DoSomething(); } So we added this condition in the program, compiled it and sent the copy to the client. Similarly client again called us and asked us to add some new conditions and this situation is going on and on. client is daily calling us to add new conditions. Now we want to give something generic to the client i.e we want to add some feature such that there is no need for client to call us , instead he should be able to define his conditions himself whenever he likes and able to customize it. Can anyone suggest me the solution of this problem ? DO i need to add scripting support ? The client is not too much technology savvy, so i like to avoid scripting, however if there is no other solution then i need to give scripting support. If you suggest scripting then whaat do you think will be the best solution VBScript or something else ?? Oh yes, the functions
DoSomething()
andDoSomethingElse()
are predefined. The client will not write new functions. Instead he should be able to define new *condition* and tell that which of these predefined functions gets called if condition is met. ImtiazImtiaz Murtaza wrote: DO i need to add scripting support Given the varying nature of the additions I would add some simple scripting. However I do not think that you (your company) will get away with asking the client to do the changes. Given that you do add scripting a decent technical person could do the appropriate work on site (or even remotely). This removes the illness from development building and testing a new release. You will still be able to charge the customer for a technical consultancy day or 1/2 day. You could also add that sort of change to the maintenance agreement albeit a few free callouts per year. Saying all that. These minor changes will eventually fizzle out. You will have to weight up the pros and cons of adding scripting and see if it is indeed beneficial. Ant. I'm hard, yet soft.
I'm coloured, yet clear.
I'm fruity and sweet.
I'm jelly, what am I? Muse on it further, I shall return! - David Walliams (Little Britain)