Path: csiph.com!x330-a1.tempe.blueboxinc.net!aioe.org!feeder.news-service.com!news.albasani.net!.POSTED!not-for-mail From: Lew Newsgroups: comp.lang.java.programmer Subject: Re: streaming problem and thread freeze Date: Tue, 10 May 2011 08:52:17 -0400 Organization: albasani.net Lines: 30 Message-ID: References: <005a9e79-36fe-4bf1-aa1d-bda3a5aaebf2@glegroupsg2000goo.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.albasani.net 42V2c69bVsXdbii+20KKBv7uR0M3Vkaeo5SmdYXhJ77rhUWAgAO24xlBJq6FtGNjljAK+Adg/f32hhY/O5OOr2sf/WVCPtJ6a6EG8Yvmr5Bp8Hx/LaNJ0nr6xPtLbHO/ NNTP-Posting-Date: Tue, 10 May 2011 12:52:13 +0000 (UTC) Injection-Info: news.albasani.net; logging-data="vOEAfJKtU47/TRhm4C8RxTyrNnbX7UhXlKjuGi8urHNzCM0Re7MZ5P2T1wdJzsU5Dxff4HzMoClND/9YeqRvTmzXjbejGj2nGPxM9jjzMhtd9Bc6bHPO2tblO5EX1MKd"; mail-complaints-to="abuse@albasani.net" User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110424 Thunderbird/3.1.10 In-Reply-To: Cancel-Lock: sha1:2CPdh6iXEmmOB+Pe3ChnKGAIYi0= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:3911 On 05/09/2011 11:31 PM, Lawrence D'Oliveiro wrote: > In message, Daniele Futtorovic wrote: > >> Secondly, although it is only a minor thing and only my personal >> opinion, this: >> >> } catch (IOException ex) { >> log.severe(ex.getMessage()); >> } >> >> is a *very* bad idea. Log the full stack. > > It would be so much easier if you could simply not bother to catch the > exception at all, and let your program crash with a full stack trace. It would be so much easier if programs didn't have to produce correct results at all, or be friendly to the user at all, because then we all could write ten times as much code in half the time. Damn that requirement for correct, useful action! Where do you come up with this stuff, Larry-boy? Is it a case of, "Let me say the thing that is so off-the-wall and contrary to any good sense or logic that it's absolutely guaran-damn-TEED to incite a reaction"? Because that's how it looks, Larry-boy. -- Lew Honi soit qui mal y pense. http://upload.wikimedia.org/wikipedia/commons/c/cf/Friz.jpg