Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Advice Required

Advice Required

Scheduled Pinned Locked Moved C / C++ / MFC
businesshelpquestion
6 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    Imtiaz Murtaza
    wrote on last edited by
    #1

    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()and DoSomethingElse() 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

    B U A 3 Replies Last reply
    0
    • I Imtiaz Murtaza

      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()and DoSomethingElse() 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

      B Offline
      B Offline
      bryce
      wrote on last edited by
      #2

      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/publitor

      Our kids book :The Snot Goblin

      I 1 Reply Last reply
      0
      • B bryce

        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/publitor

        Our kids book :The Snot Goblin

        I Offline
        I Offline
        Imtiaz Murtaza
        wrote on last edited by
        #3

        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

        B 1 Reply Last reply
        0
        • I Imtiaz Murtaza

          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

          B Offline
          B Offline
          bryce
          wrote on last edited by
          #4

          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/publitor

          Our kids book :The Snot Goblin

          1 Reply Last reply
          0
          • I Imtiaz Murtaza

            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()and DoSomethingElse() 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

            U Offline
            U Offline
            User 307386
            wrote on last edited by
            #5

            I 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.

            1 Reply Last reply
            0
            • I Imtiaz Murtaza

              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()and DoSomethingElse() 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

              A Offline
              A Offline
              Antony M Kancidrowski
              wrote on last edited by
              #6

              Imtiaz 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)

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups