CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 9 of 9
  1. #1
    Join Date
    Oct 2009
    Posts
    39

    Arrow a few words i read forums

    would you please tell me what do:

    the production code
    the driver vs the stub

    mean ?

    thank you

  2. #2
    Join Date
    May 2009
    Posts
    2,413

    Re: a few words i read forums

    Quote Originally Posted by Dragon5 View Post
    would you please tell me what do:

    the production code
    the driver vs the stub

    mean ?
    If probably means that during development some dummy code (a stub) has been used which is to be replaced by the real thing (a driver) in the production version of the program delivered to customers.

  3. #3
    Join Date
    Oct 2009
    Posts
    39

    Re: a few words i read forums

    Quote Originally Posted by nuzzle View Post
    If probably means that during development some dummy code (a stub) has been used which is to be replaced by the real thing (a driver) in the production version of the program delivered to customers.
    thank you nuzzle, that sounds to me like a puzzle, i don't understand.
    can you please offer me an example quickly? i don't want to be stood up online like this.

    and what do people mean by "production code" ?

    thank you

  4. #4
    Join Date
    May 2009
    Posts
    2,413

    Re: a few words i read forums

    Quote Originally Posted by Dragon5 View Post
    can you please offer me an example quickly? i don't want to be stood up online like this.
    Sorry but I'm not into speed dating.

  5. #5
    Join Date
    Oct 2009
    Posts
    39

    Re: a few words i read forums

    dating ?
    the way you offer such a reply to my thread is mainly to keep me online right ?
    if you can not provide any helpful messages please stop messing my thread up
    in the hope to beautify yourself...
    thank you

  6. #6
    Join Date
    Feb 2009
    Location
    USA
    Posts
    68

    Re: a few words i read forums

    Couldnt you relate it to driver/stub functions??

    Code:
    /* Main is my driver function */
    int main()
    {
        cout<<"Testing the stubs"<<endl;
    
        stub1();
    
        return(0);
    }
    
    /* Stub function 1 */
    int stub1()
    {
        cout<<"Making sure this works"<<endl;
        
        stub2();
    
        return(1);
    }
    
    /* Stub Function 2*/
    string stub2()
    {
        cout<<"Making sure stub 2 works"<<endl;
    
       return("Working");
    }
    Maybe in a production context the driver would control the entire system and the stubs are smaller components????
    AFAIK. Production code is programs that are used by customers.. My school projects are not production code, programs that are sold to customers are production code.
    Last edited by g.eckert; October 23rd, 2009 at 01:08 PM.
    Google is your friend.

  7. #7
    Join Date
    Aug 2009
    Posts
    38

    Re: a few words i read forums

    Quote Originally Posted by Dragon5 View Post
    dating ?
    the way you offer such a reply to my thread is mainly to keep me online right ?
    if you can not provide any helpful messages please stop messing my thread up
    in the hope to beautify yourself...
    thank you
    Calm down, dear. It's only a commercial!!

  8. #8
    GCDEF is offline Elite Member Power Poster
    Join Date
    Nov 2003
    Location
    Florida
    Posts
    12,635

    Re: a few words i read forums

    Quote Originally Posted by Dragon5 View Post
    thank you nuzzle, that sounds to me like a puzzle, i don't understand.
    can you please offer me an example quickly? i don't want to be stood up online like this.

    and what do people mean by "production code" ?

    thank you
    Wasn't nuzzle clear when he said in the production version of the program delivered to customers.

    Production code is code that users or custoemrs are actually using to do their work as opposed to code that's currently being developed or tested. A stub means there's a function or some kind of code that you can call to get other sections of code written, but doesn't actually do anything yet.

  9. #9
    Join Date
    Oct 2009
    Posts
    39

    Re: a few words i read forums

    g.eckert gets 100 points for the most correct reply. that is what i am learning thank you so much g.eckert

    nuzzle just doesn't seem to have been graduated from a cs department.

    i am now taking a course in c/c++ in a local college to fill up the gap of my cs knowledge.

    thanks GCDEF for your clearification

    again thanks everyone for you replies anyway

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured