Re: Puzzled over NullPointerException
- From: Roedy Green <my_email_is_posted_on_my_website@xxxxxxxxxxxxxx>
- Date: Sat, 22 Oct 2005 02:11:11 GMT
On Fri, 21 Oct 2005 21:32:27 -0400, ohaya <ohaya@xxxxxxx> wrote or
quoted :
>> You don't expect to have to roll back to the problem I guess, so why would
>> you ? As I say it was just a reactionary observation, brought on by the
>> memory of a million (or not, probably) tiny bugs that 'went away', only to
>> return when least expected or desired.
If you were a cat, a bug is a bit like a mouse that makes an
appearance only every week or so. You have to take full advantage of
every observation.
For code of any complexity I like to just watch it run in a debugger
for a goodly while and make sure everything that happens is what I
expect. 95% of the time strangenesses are actually ok. Surprises are
easier to spot than bug droppings.
Of course writing a test harness to thoroughly exercise any class is
your best insurance, but it won't catch everything, e.g duplicate
actions.
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.
.
- Follow-Ups:
- Re: Puzzled over NullPointerException
- From: Ross Bamford
- Re: Puzzled over NullPointerException
- References:
- Puzzled over NullPointerException
- From: ohaya
- Re: Puzzled over NullPointerException
- From: ohaya
- Re: Puzzled over NullPointerException
- From: Ross Bamford
- Re: Puzzled over NullPointerException
- From: ohaya
- Re: Puzzled over NullPointerException
- From: Ross Bamford
- Re: Puzzled over NullPointerException
- From: ohaya
- Puzzled over NullPointerException
- Prev by Date: Re: Key generation from fingerprint
- Next by Date: Re: JavaServer Faces
- Previous by thread: Re: Puzzled over NullPointerException
- Next by thread: Re: Puzzled over NullPointerException
- Index(es):
Relevant Pages
|
|