Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Re: Is Java really better than Perl???

by flyingmoose (Priest)
on Apr 21, 2004 at 04:59 UTC ( [id://346894]=note: print w/replies, xml ) Need Help??


in reply to Re: Is Java really better than Perl???
in thread Is Java really better than Perl???

Checked exceptions in java are a very BAD thing, causing programmers not to think about what they catch, so often they catch Every exception, resulting in exceptions that essentially have an empty block as error handling code, or just get logged.

Meanwhile, traditional programming means validating error codes. If you don't do that (check return codes), you are, simply put, not worthy to demand your salary.

There should be quite a few articles on the evils of checked exceptions on Google ... java is one of very FEW languages that has them.

  • Comment on Re: Re: Is Java really better than Perl???

Replies are listed 'Best First'.
Re^3: Is Java really better than Perl???
by adrianh (Chancellor) on Apr 26, 2004 at 15:06 UTC

    Not that I like checked exceptions at all, but...

    Checked exceptions in java are a very BAD thing, causing programmers not to think about what they catch, so often they catch Every exception, resulting in exceptions that essentially have an empty block as error handling code, or just get logged.

    Meanwhile, traditional programming means validating error codes. If you don't do that (check return codes), you are, simply put, not worthy to demand your salary.

    Surely checked exceptions and return values have the same affect at this level. A competent developer will handle all the exceptions just like a competent developer would handle all the error codes. The error code approach offers no advantage over checked exceptions apart from the fact that it's easier to ignore error codes - which as you say is not a good approach.

    java is one of very FEW languages that has them

    I don't think anything apart from Java supports them - which is probably an indicator of their general utility ;-)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://346894]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2024-04-20 02:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found