Re: Puzzled over NullPointerException



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.
.



Relevant Pages

  • Re: PHP with open_basedir performance problem
    ... I'd suggest you to disable open_basedir at all or roll out specialized ... Most basedir problems are linked with the fact it produce a lot of lstast/ ... readlinks on every require, include or open command. ... of formal replies like "it's not a bug, ...
    (freebsd-performance)
  • Re: Manipulating the dice
    ... the case just because I made the best play last roll. ... The 'Dice' Panel in Snowie presents this in a nice visual way and shows the ... Snowie even makes it easy to prove the bug, ... setup one player 9 men off and 6 blots in all 6 rows ...
    (rec.games.backgammon)
  • Re: Mosquito repellant: DEET wipes? What?
    ... chemicals and just get shirt and hat with roll down bug ...
    (rec.backcountry)