Java Hate (was Re: Denial of denial of service)

[prev] [thread] [next] [lurker] [Date index for 2007/01/28]

From: Robert Rothenberg
Subject: Java Hate (was Re: Denial of denial of service)
Date: 02:30 on 28 Jan 2007
On 26/01/07 16:36 Dan Noe wrote:

> ...At work we use C# and I constantly see code like:
> 
> try
> {
> 	// do some stuff
> }
> catch (Exception)
> {
> 	throw new UnrelatedException();
> }

I've not had the pleasure or pain of using C#, so I'll take a wild guess and
say it's just like Java in that the compiler whines that certain operations
require exception handling.

So in the interest of good programming style (catch potential exceptions for
things like communicating over a socket) it encourages bad programmers to
put some code that ignores errors.

There's stuff above here

Generated at 23:01 on 06 Feb 2007 by mariachi 0.52