Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!weretis.net!feeder1.news.weretis.net!newsfeed.CARNet.hr!gregory.BNet.hr!not-for-mail From: Josip Almasi Newsgroups: comp.lang.java.programmer Subject: Re: Java blunders Date: Mon, 28 Jul 2014 22:01:50 +0200 Organization: B.net Hrvatska d.o.o. Lines: 23 Message-ID: References: <257vs95667e2rm9ff40h8n5bchmc2mv3iu@4ax.com> <53cfc554$0$2860$e4fe514c@news.xs4all.nl> NNTP-Posting-Host: cpe-188-252-131-105.zg5.cable.xnet.hr Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: gregory.bnet.hr 1406577711 1371 188.252.131.105 (28 Jul 2014 20:01:51 GMT) X-Complaints-To: abuse@globalnet.hr NNTP-Posting-Date: Mon, 28 Jul 2014 20:01:51 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 In-Reply-To: <53cfc554$0$2860$e4fe514c@news.xs4all.nl> Xref: csiph.com comp.lang.java.programmer:29403 On 07/23/2014 04:23 PM, Silvio wrote: > > Much of the pain of matching braces (both typing and proof-reading) > disappears when you change > > if (IHadAHammer) { > IdHammerInTheMorning(); > } > > to > > if (IHadABell) > { > IdRingItInTheMorning(); > } > > I never understood why anyone would use the former form. Simply, It's more compact. Editor takes care of the rest. And our sallaries are not based on lines of code written ;( Regards...