|
I could not agree more! I always ran my own tests constantly while building applications even before I knew what the names of the different testing types where. The best person to test the individual pieces of code is the developer of that code. Of course as a matter of pride, I do my best to avoid any errors in my code and am more than happy to let someone else try to break it. If there is something wrong, then I want to know no matter who finds the problem.
Those who try to hide problems are fools and only hurt themselves in the long run.
INTP
"Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra
|
|
|
|
|
My younger brother spends much of his free time working on his house (go figure?). Anyway, there's an old adage he quotes which can be applied to doing testing as one goes along:
Measure Once - Cut Twice.
- or -
Measure Twice - Cut Once.
The irreversability of the cutting in the physical world may, perhaps, be related to the brown stains on ones reputation when their buggy application falls apart because ego precluded testing one's own code.
Another somewhat wise saying (am I going to get a reputation for this?):
"If you can't find the time to do it right the first time . . . how are you going to find the time to do it again?"
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein
|
|
|
|
|
I think it’s a good reputation to have.
Now if we can just convince the management that: If you do not give us the time to do it right the first time . . . it will cost you more in the long run.
That is an old battle that I became tired of fighting a long time ago, I learned to say the heck with it. I just warn them and walk away. The only thing that surprises me is when I do not get the call confirming I was right; that is very rare.
INTP
"Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra
|
|
|
|
|
As of Mon 23-Apr 7:40am ET, the majority of respondents (26.92%) say they never unit test! How do they sleep at night?
/ravi
|
|
|
|
|
Correction: the plurality.
However, bear in mind that those who say "what is it?" may very well be doing it without knowing its 'official' name.
The majority, per the survey at this time, do, at least some.
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein
|
|
|
|
|
Well actually, the people that voted "what is unit testing?" probably aren't doing it either.
...and by the way, I sleep very well at night, thanks for asking
|
|
|
|
|
...if it ain't on fire, ship it...
----
It appears that everybody is under the impression that I approve of the documentation. You probably also blame Ken Burns for supporting slavery.
--Raymond Chen on MSDN
|
|
|
|
|
Has anyone else noticed what the number of this survey is?
http://www.codeproject.com/script/survey/detail.asp?survey=666
How appropriate for the subject.
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein
|
|
|
|
|
Look up my post in the lounge. I'm not sure whether the people who post the survey realized the surveyID before my post, but the survey subject is definitely tweaked to suit the ID.
|
|
|
|
|
And hide the ducktape from the audience.
WM.
What about weapons of mass-construction?
"What? Its an Apple MacBook Pro. They are sexy!" - Paul Watson
|
|
|
|
|
Ravi Bhavnani wrote: How do they sleep at night?
I've heard they sleep standing up with their eyes open...
Matt Newman
|
|
|
|
|
Being that I never unit test, I am actually surprised at the numbers of those who do unit test.
John
|
|
|
|
|
Best answer yet, I've heard alot about unit testing but never met anybody who does it.
.net is a box of never ending treasures, every day I get find another gem.
|
|
|
|
|
It kind of surprised me too! It turned out that I was occasionally doing unit testing when I thought it was needed over the years, even before I knew what it was. Of course when I started programming (DOS days), I knew what every single line of code did.
INTP
"Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra
|
|
|
|
|
Very well, thank you.
Do you actually find some time to sleep, while writting all those test?
Dejan Petrovic
|
|
|
|
|
Ravi Bhavnani wrote: How do they sleep at night
By writing good clean wholesome code that works.
.net is a box of never ending treasures, every day I get find another gem.
|
|
|
|
|
norm .net wrote: code that works.
How do you verify that?
/ravi
|
|
|
|
|
Ravi Bhavnani wrote: How do you verify that?
Ask the users
.net is a box of never ending treasures, every day I get find another gem.
|
|
|
|
|
Unit testing doesn't really do much at that level. Unit tests are designed to test the low level code, so you can build higher level functions with confidence.
I think whoever came up with the survey question doesn't really understand unit testing!
Marc
|
|
|
|
|
Sorry - that was poorly worded, wasn't it. I really should have used "fundamental" instead of "main" and split it into "fundamental" and "top level".
My bad.
cheers,
Chris Maunder
CodeProject.com : C++ MVP
|
|
|
|
|
|
We unit test components of services and other backend stuff. Running the unit test ten times a day is far more comfortable than clicking through a user interface.
____________________________________
There is no proof for this sentence.
|
|
|
|