Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.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: Tue, 26 Feb 2013 03:08:21 -0600 Date: Tue, 26 Feb 2013 09:08:19 +0000 From: lipska the kat <"nospam at neversurrender dot co dot uk"> Organization: Trollbusters 3 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: BlueJ don't know what i did wrong References: <638ed624-9eba-44eb-bcbf-68466e5bb5f1@googlegroups.com> <42d76fca-d365-4030-ae8c-07a806eab87c@googlegroups.com> <1wtai7dd80h80$.6rbtwoyou3gh.dlg@40tude.net> <5q6dnc3pF_HJzLfMnZ2dnUVZ7s-dnZ2d@bt.com> <77afaabf-ec0f-46d6-b3ea-d8f186dbf7e4@googlegroups.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Message-ID: Lines: 34 X-Usenet-Provider: http://www.giganews.com X-AuthenticatedUsername: NoAuthUser X-Trace: sv3-NgHvepCG7Q8exy4f9MMjQiafjeveJlrSmMzF5WLyYuTl9+Y557CJqmKlITqPGxw9zG7+5Oz3kqB1hX6!7k9WfOOuINydPMD3/x6XLrRzMgmWcKdVZIqI2OaWi/Nk+qlFozeI+Ul1JuSUEJ0nzhBr8Y7txSw= 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: 3144 Xref: csiph.com comp.lang.java.programmer:22521 On 25/02/13 22:26, Lew wrote: > lipska the kat wrote: >> Can you give me one good reason to use a Deque instead of a Stack when a >> stack is what I want apart from "because the documentation says so" > > You already rejected one good reason. Why give you another? Ah yes, the Orwellian approach Deque is the Java equivalent of that Orwellian concept, newspeak Deque is double plus good because The Party says so > You can look this up for yourself, anyway. > http://lmgtfy.com/?q=Java+why+use+Deque+instead+of+Stack Opinions differ, are you incapable of making your mind up on your own? Is your entire value system built on the results of a Google search? Think about it for a minute, try to take a broader view. Do Oracle/Sun/whoever recommend Deque because Stack inappropriately extends Vector or because Deque doesn't allow indexed addressing? I'd suggest the former, although we can't be sure can we, as all we have is a line in a javadoc. Do you understand the concept of abstraction? Do you understand the concept of programming by contract? If you do you will understand my reluctance to use a Deque in place of a Stack. lipska -- Lipska the KatŠ: Troll hunter, sandbox destroyer and farscape dreamer of Aeryn Sun