NNTP-Posting-Date: Fri, 21 Dec 2012 12:43:56 -0600 Date: Fri, 21 Dec 2012 18:43:55 +0000 From: lipska the kat User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120410 Thunderbird/11.0.1 MIME-Version: 1.0 Newsgroups: comp.lang.java.programmer Subject: Re: proper use of .java files (layout) References: <50cfcd0b$0$293$14726298@news.sunsite.dk> <50cfd4b9$0$295$14726298@news.sunsite.dk> <50d112a1$0$283$14726298@news.sunsite.dk> <8u04d8dua5rrdshc39ut9ar4lc682hb15u@4ax.com> <50d25949$0$286$14726298@news.sunsite.dk> <3h07d81eh28qlu7q8v5fp7ugse6e2u45s3@4ax.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Message-ID: Lines: 39 X-Usenet-Provider: http://www.giganews.com X-AuthenticatedUsername: NoAuthUser X-Trace: sv3-e5vGm2gJV9H4RHkd3bAIUAuxP+UV7EXSTrWhYT1YSRK/ONlky0sF1Qxdv+YMPLm6ZZwhzYsps0NifaC!8czsSVBfofkdqKWr3NgUlJht1t0E+VekfNmK6VFV9lMiNlYy8EmN3FGUZWtwYhxQvxlYa4v0BcU= 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: 3237 Path: csiph.com!usenet.pasdenom.info!news.stben.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 Xref: csiph.com comp.lang.java.programmer:20665 On 21/12/12 18:36, Daniel Pitts wrote: > On 12/21/12 12:58 AM, lipska the kat wrote: >> On 20/12/12 22:00, Patricia Shanahan wrote: >>> On 12/20/2012 1:35 PM, Gene Wirchenko wrote: >>>> On Thu, 20 Dec 2012 09:30:09 -0800, Patricia Shanahan >>> ... >>>>> Perhaps more importantly, why do we need an order? >>>> >>>> Many card games require order to rank hands or determine which >>>> card beats which. >>> >>> I agree that a game may require and impose an order, but each game's >>> order is different. Indeed, the order can even change during a game. For >>> example, the ranking for winning trick in a bridge game depends on the >>> contract and the suit of the trick's lead card. >>> >>> I expect many games to declare and use a Comparator. I'm >>> suggesting that Card should not itself be Comparable. >>> >> >> A Comparator is an abstraction of what we as human beings do when we >> compare values. You can have a Comparator that compares in any way you >> want. >> >> A Comparator would effectively implement a sub set of the rules of the >> game. Seems a perfectly logical suggestion to me >> >> Once again if not a Comparator then what. > Patricia is agreeing with the use of Comparator, and against the use of > Comparable, two very different interfaces. Read the entire post before commenting. I agree with Patricia lipska -- Lipska the KatŠ: Troll hunter, sandbox destroyer and farscape dreamer of Aeryn Sun