|
-
April 30th, 2009, 07:56 AM
#31
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
-
May 1st, 2009, 01:07 AM
#32
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.
-
May 1st, 2009, 02:41 AM
#33
Re: How do you test your c++ code?
"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
-
May 1st, 2009, 02:53 AM
#34
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.
-
May 1st, 2009, 03:22 AM
#35
Re: How do you test your c++ code?
 Originally Posted by bitshifter420
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
-
May 1st, 2009, 03:43 AM
#36
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)
-
May 1st, 2009, 03:47 AM
#37
Re: How do you test your c++ code?
 Originally Posted by bitshifter420
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
-
May 1st, 2009, 03:58 AM
#38
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'.
-
May 1st, 2009, 04:30 AM
#39
Re: How do you test your c++ code?
 Originally Posted by bitshifter420
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
-
May 1st, 2009, 05:14 AM
#40
Re: How do you test your c++ code?
 Originally Posted by bitshifter420
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
-
May 1st, 2009, 09:58 PM
#41
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|