CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Page 3 of 3 FirstFirst 123
Results 31 to 41 of 41
  1. #31
    Join Date
    Jul 2002
    Location
    Portsmouth. United Kingdom
    Posts
    2,727

    Re: How do you test your c++ code?

    There is a quote from one of Richard P. Feynman's books where he talks about his involvement in the Challenger disaster inquiry. He was very impressed with the rigour that the software team applied to testing the flight control software. They used the quite sensible method of building the code up from small and testable components, right up to the full simulation.

    Apparently a manager from NASA had wanted to try to save money by cutting back on the testing and had said to the team. "Why bother with so many tests? You always pass them anyway!".
    "It doesn't matter how beautiful your theory is, it doesn't matter how smart you are. If it doesn't agree with experiment, it's wrong."
    Richard P. Feynman

  2. #32
    Join Date
    Apr 2007
    Location
    Mars NASA Station
    Posts
    1,436

    Re: How do you test your c++ code?

    There is a quote from one of Richard P. Feynman's books where he talks about his involvement in the Challenger disaster inquiry.
    Do you have the article ?
    Thanks for your help.

  3. #33
    Join Date
    Jul 2002
    Location
    Portsmouth. United Kingdom
    Posts
    2,727

    Re: How do you test your c++ code?

    No article, but here's the book

    What_Do_You_Care_What_Other_People_Think
    "It doesn't matter how beautiful your theory is, it doesn't matter how smart you are. If it doesn't agree with experiment, it's wrong."
    Richard P. Feynman

  4. #34
    Join Date
    Jun 2007
    Location
    MA-USA
    Posts
    247

    Re: How do you test your c++ code?

    I write small modules which can be tested easily with little overhead.
    When dealing with small chunks of code, most errors are caught by eye
    before they are ever even ran in the simulation and debugger.
    While coding my game engine over the last four years i have written
    and debugged each and every chunk in this manner.
    When a module is finished i put it aside and create the next part.
    I have ran into a few quirks along the way but nothing serious.
    And if i decide to do something different with a chunk in the future,
    it can be easily swapped out with the new chunk of code.
    I am not a proffesional programmer with a deadline so i have
    plenty of time so sit around and ponder my ideas.
    Being in a hurry causes us to make bad decisions, thus introducing bugs.
    I think the time spent pondering is time well spent in the long run.

  5. #35
    Join Date
    Jul 2002
    Location
    Portsmouth. United Kingdom
    Posts
    2,727

    Re: How do you test your c++ code?

    Quote Originally Posted by bitshifter420 View Post
    Being in a hurry causes us to make bad decisions, thus introducing bugs.
    I think the time spent pondering is time well spent in the long run.
    I'd go along with that. I've met too many programmers where code appears to be approached with a 'throw-away quick fix' mentality.

    If you start work as a professional programmer, pin that above your desk, and probably your managers too.
    "It doesn't matter how beautiful your theory is, it doesn't matter how smart you are. If it doesn't agree with experiment, it's wrong."
    Richard P. Feynman

  6. #36
    Join Date
    Jun 2007
    Location
    MA-USA
    Posts
    247

    Re: How do you test your c++ code?

    I plan to never take on programming as a profession mainly beacuse
    i believe if you do something for long enough you will learn to hate it.
    (programming is fun, and i plan to keep it that way forever)
    For the last 10 years i have been turning wrenches at same motorcycle dealership
    and never once has my boss told me to hurry up this job, to go faster, to get 'er done.
    Since allowing me to work at my own pace and in my own mindset
    i have not had a machine comeback to the shop for erronous work.
    He sees this and we have a mutual unverbalized agreement as to how it works.
    He understands that it takes this long to do job, and twice as long if mistakes are made.
    And in this buisness, time is truly money ($100.00 an hour shop rate)

  7. #37
    Join Date
    Jul 2002
    Location
    Portsmouth. United Kingdom
    Posts
    2,727

    Re: How do you test your c++ code?

    Quote Originally Posted by bitshifter420 View Post
    I plan to never take on programming as a profession mainly beacuse
    i believe if you do something for long enough you will learn to hate it.
    Does that mean you'll be giving up the 'turning wrenches' soon?

    I've been programming in various fields for just over 20 years and I still really enjoy it. As long as you keep learning and taking on new challenges , it stays fresh.
    "It doesn't matter how beautiful your theory is, it doesn't matter how smart you are. If it doesn't agree with experiment, it's wrong."
    Richard P. Feynman

  8. #38
    Join Date
    Jun 2007
    Location
    MA-USA
    Posts
    247

    Re: How do you test your c++ code?

    I think the learning curve has a lot to do with it.
    Once you stop learning its time to move on.
    I have been a wrench monkey for 25 years and its getting old.
    Most technology advancement here is in the 'black box'.

  9. #39
    Join Date
    Jul 2002
    Location
    Portsmouth. United Kingdom
    Posts
    2,727

    Re: How do you test your c++ code?

    Quote Originally Posted by bitshifter420 View Post
    Most technology advancement here is in the 'black box'.
    Yes. Gone are the days when you set the points with a cigarette paper and balanced the carbs with a pair of lollipop sticks.
    "It doesn't matter how beautiful your theory is, it doesn't matter how smart you are. If it doesn't agree with experiment, it's wrong."
    Richard P. Feynman

  10. #40
    Join Date
    Mar 2002
    Location
    St. Petersburg, Florida, USA
    Posts
    12,125

    Re: How do you test your c++ code?

    Quote Originally Posted by bitshifter420 View Post
    I plan to never take on programming as a profession mainly beacusei believe if you do something for long enough you will learn to hate it.
    * Started programming (more than "playing" with) computers in 1972
    * First paid programing work in 1975
    * First fulltime programming job in 1977

    Now (almost 37 years later) I still love it......
    TheCPUWizard is a registered trademark, all rights reserved. (If this post was helpful, please RATE it!)
    2008, 2009,2010
    In theory, there is no difference between theory and practice; in practice there is.

    * Join the fight, refuse to respond to posts that contain code outside of [code] ... [/code] tags. See here for instructions
    * How NOT to post a question here
    * Of course you read this carefully before you posted
    * Need homework help? Read this first

  11. #41
    Join Date
    Apr 2007
    Location
    Mars NASA Station
    Posts
    1,436

    Re: How do you test your c++ code?

    I've been programming in various fields for just over 20 years and I still really enjoy it. As long as you keep learning and taking on new challenges , it stays fresh.
    I agree.
    Thanks for your help.

Page 3 of 3 FirstFirst 123

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