Re: exceptions: checked or unchecked?



marlow.andrew@xxxxxxxxxxxxxx wrote:
Well, that's the theory but all too often to the practise is:
the exceptions are typically mis-handled by doing a catch and
report stack trace and then ignoring them. I have seen quite a lot of
this.

Arne Vajhøj wrote:
Not really.

It is a common practice in unimportant throw away programs,
demos posted on usenet etc..

It is not a common practice in serious applications.

It's not uncommon in serious applications either. I've seen it done many times, and yes, it was in serious applications. In such cases it was bad practice, but it happened and much more often in more organizations than one would hope.

Sometimes the program is large with a history, and it's hard to know what is in all of it after years of development. A concomitant antipattern in these organizations was a strong resistance to refactoring. It's sad but true that bad practices are quite prevalent in serious Java applications.

--
Lew
.



Relevant Pages

  • Re: State of Forth 200x
    ... The point of a standard is to define common practice. ... elegantly minimal and not useful for large applications, ... 133 Hill Lane, Southampton SO15 5AF, England ...
    (comp.lang.forth)
  • Re: Ignores first click
    ... MS Office (and some other applications, like Wordpad) is ignoring the first ... >> When activating one of the application windows (e.g. ... >> registry setting or something. ...
    (microsoft.public.office.misc)
  • Re: Use of gems
    ... On 2007-09-30, Janis Papanagnou wrote: ... useful thing to do with them other than ignoring them to not burden ... Well, the number of applications is fewer, yes. ... BOFH Excuse #391: ...
    (rec.games.roguelike.nethack)
  • Re: Ping Clark...Re: "Verizon Asks: Would an iPhone Keep Customers From Leaving?"
    ... more available applications, but it just doesn't appeal to young ... Yep- HTC needs to heed the lessons learned of ignoring the lucrative ...
    (alt.cellular.verizon)

Loading