Re: Bit flipping .. will this work in VB6?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



"Larry Serflaten" <serflaten@xxxxxxxxxxxxxx> wrote in message
news:uPbSPqffIHA.5296@xxxxxxxxxxxxxxxxxxxxxxx
I've read what you said, and will refute anything to the effect that I
said
error handling should be avoided in the entire application.

Fair enough but you are saying as a general rule that your own routines
should ignore errors?

I merely said
that if you add the err.raise command, somebody (somewhere on the
callstack)
has to have that routine wrapped in an error handler. By adding the Raise
command you force someone to trap that error or let the program crash.

You need to trap the error in every event anyway because just about anything
can raise an error. Even something as simple as x + 1 can raise an error. It
would be a *very* rare event handler that didn't call some code that
couldn't raise an error.

But I think the main point of contention we have is from the statement
above. You claim bugs are inevitable, I'd say they aren't.

As I said, the only place bugs don't exist is in newsgroup fantasy land or
maybe in *very* small apps. If the big players can't eliminate all their
bugs then what hope have we got? It seams the difference between me and a
lot of people on these groups is that I can admit I'm fallible.

Way too many
people use that philosophy to support their 'ship now and fix it later'
schedule.
And I can appreciate that for most 'run-of-the-mill' coders, it would take
too
long to try to write code that won't fail unexpectedly. But it can be
done.

High quality can be achieved but there will just be a smaller number of
bugs.

If you don't attempt to reach that goal, then you'll never attain it.

I suspect you get closer to that goal by ignoring the vast majority of
errors.

That's not to say there aren't going to be problems along the way, errors
that need correction or debugging, but experience gained while striving
toward that goal will help to giude the designs and coding style needed
to avoid writing so many bugs. Working through the pitfalls and dead
ends, and what not, (replacing failures with more stable code) causes
one to gravitate toward writing the more stable code the first time
through....

There's one thing that strikes me as a bit of a contrast in what you're
saying. On one hand you're saying that you can achieve very high quality
code but on the other hand your saying your code isn't robust enough to
contain err.raise without hitting it. If you're that confident that your
code is bug free then you should be able to go in tomorrow and put err.raise
everywhere it's appropriate and release without even testing. Didn't think
so. :-)

Michael


.



Relevant Pages

  • Re: Bit flipping .. will this work in VB6?
    ... No I advise a 'very judicious' use of raising errors in favor of input validation ... and proper planning. ... can raise an error. ... You claim bugs are inevitable, ...
    (microsoft.public.vb.general.discussion)
  • Re: power poker at its best: 2 HHs
    ... before you'll consider playing a medium strength 1-gapper? ... calling a raise on the button with T8o against two larger ... stacks who are playing from poor position is at least debatable, ... you appear to be saying that medium 1-gappers can be played ...
    (rec.gambling.poker)
  • Re: WARNING:DO NOT UPGRADE TO CORE 4
    ... >>That is like saying the Ford Ka is the bleeding edge of transportation. ... >>but too many bugs got past those who should have been looking for them. ... > As for the grey area in FC4 install and usage folks have discussed before. ... bugs will never be found and there is no reason for the project to ...
    (Fedora)
  • Re: What now - another "Value Bid"
    ... expert partner. ... Team mates and opposing team are also experts, ... I am not saying what it ... I do not believe this hand to have the strength for a GF raise, ...
    (rec.games.bridge)
  • Re: I love my Maya Wrap but...
    ... > As a person who grew up in NH, I feel confident in saying that NH is ... > backwater nowhereville when it comes to social issues. ... I am very protected as a nursing mother in CT, ... It only bugs me after it's the fifth person on one outing or it's the ...
    (misc.kids)