Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!border3.nntp.ams.giganews.com!Xl.tags.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!local2.nntp.ams.giganews.com!nntp.bt.com!news.bt.com.POSTED!not-for-mail NNTP-Posting-Date: Mon, 17 Jun 2013 15:06:04 -0500 Date: Mon, 17 Jun 2013 21:06:01 +0100 From: lipska the kat <"nospam at neversurrender dot co dot uk"> Organization: Trollbusters 3 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130308 Thunderbird/17.0.4 MIME-Version: 1.0 Newsgroups: comp.lang.java.programmer Subject: Re: About java program. References: <324f929f-772e-4004-81e1-6b454cdae794@googlegroups.com> <19wnriq53qxel.u9rt8wy6z52g.dlg@40tude.net> In-Reply-To: <19wnriq53qxel.u9rt8wy6z52g.dlg@40tude.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Message-ID: Lines: 32 X-Usenet-Provider: http://www.giganews.com X-AuthenticatedUsername: NoAuthUser X-Trace: sv3-KkfKNrIv3MMEnmIOiOMOrN/vG424G6lU7AWZYU011V4OwCTefnsaZQ85vPbZlMtNrKZ6iSMl0tDNvd6!un15w129DmsnlSPwquFz0ErpyvjuPc0xnihbaFjaJI8s7lkd7TBBRHXzwktjxeap17f4AOO6Yzs= X-Complaints-To: abuse@btinternet.com X-DMCA-Complaints-To: abuse@btinternet.com X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2355 Xref: csiph.com comp.lang.java.programmer:24441 On 17/06/13 19:32, Joerg Meier wrote: > On Mon, 17 Jun 2013 14:46:57 +0100, lipska the kat wrote: > >> return str.equals("yes"); > >> It's lazy coding and harder to understand than my example and yes, I >> realize that it's only a one liner but the next stage in the >> 'development' of this style is > > Personally, I found your example considerably harder to read than the one > liner, as well as harder to read than what would have been my solution: > > private boolean askYesNoquestion (String str){ > if(str.equals("yes")) > return true; > > return false; > } This is just horrible, really. You are having a laugh right? I mean, you *cannot* be serious man. If I had to quantify horrible this would be in the mix. lipska -- Lipska the KatŠ: Troll hunter, sandbox destroyer and farscape dreamer of Aeryn Sun