Path: csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!weretis.net!feeder4.news.weretis.net!news.mixmin.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: markspace <-@.> Newsgroups: comp.lang.java.help Subject: Re: Good practice or not to close the file before System.exit(1)? Date: Sat, 23 Apr 2011 08:25:05 -0700 Organization: A noiseless patient Spider Lines: 15 Message-ID: References: <87mxjjqmlf.fsf@merciadriluca-station.MERCIADRILUCA> <87ipu67b41.fsf@merciadriluca-station.MERCIADRILUCA> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sat, 23 Apr 2011 15:25:11 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="Ar+YdiQzlSTzbQb3yqnkPw"; logging-data="8609"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19poiPq9lZglR3o9W7qPYi1B6MnFPgtl74=" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 In-Reply-To: Cancel-Lock: sha1:Jr6qOZbK3LSgPOE7gslU0N6hkhk= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.help:607 On 4/22/2011 6:38 PM, Stefan Ram wrote: > Does it make you feel like getting crazy that we are > discussing status codes? > Honestly yes, a little. We're talking extreme generalities here, and it's something that is extremely specific. Give me a specification and I'll tell you how I'd implement it. Ask me how to implement a status return code when you have no specification for what to do and I'll tell you it can't be done. You have to have a spec. If you don't have a spec, you can't write code and then say "this is correct" because you have nothing to test the code against.