Click here to Skip to main content
15,901,853 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Need an opinion on a circular IList<T> implementation Pin
honey the codewitch5-Feb-20 23:56
mvahoney the codewitch5-Feb-20 23:56 
GeneralRe: Need an opinion on a circular IList<T> implementation Pin
Arthur V. Ratz5-Feb-20 23:59
professionalArthur V. Ratz5-Feb-20 23:59 
GeneralRe: Need an opinion on a circular IList<T> implementation Pin
honey the codewitch6-Feb-20 0:31
mvahoney the codewitch6-Feb-20 0:31 
GeneralRe: Need an opinion on a circular IList<T> implementation Pin
Arthur V. Ratz6-Feb-20 0:34
professionalArthur V. Ratz6-Feb-20 0:34 
GeneralRe: Need an opinion on a circular IList<T> implementation Pin
Arthur V. Ratz6-Feb-20 0:01
professionalArthur V. Ratz6-Feb-20 0:01 
AnswerRe: Need an opinion on a circular IList<T> implementation PinPopular
Slacker0076-Feb-20 1:16
professionalSlacker0076-Feb-20 1:16 
GeneralRe: Need an opinion on a circular IList<T> implementation Pin
Pete O'Hanlon6-Feb-20 3:20
mvePete O'Hanlon6-Feb-20 3:20 
AnswerRe: Need an opinion on a circular IList<T> implementation Pin
Greg Utas6-Feb-20 1:54
professionalGreg Utas6-Feb-20 1:54 
honey the codewitch wrote:
I can go the .NET route that MS took and add methods like Enqueue() and Dequeue() (queue-like) but that only covers adding to the back, and removing from the front. I can add Pop() and Push() (stack-like) but that only covers adding and removing from the back.
I would have thought that Push and Pop would add and remove from the front, even if internally it's the back of your data structure.

I have one-way and two-way queues in which the elements themselves provide a queue link member (a pointer). The methods are Enq (at the back), Henq (at the front), and Deq (from the front). Also Insert (after something else) and Exq (from somewhere other than the front). There's no special method to remove from the back. If I were to add one, I would probably go with PopBack and rename Enq, Henq, and Deq to PushBack, Push, and Pop.
AnswerRe: Need an opinion on a circular IList<T> implementation Pin
Pete O'Hanlon6-Feb-20 3:21
mvePete O'Hanlon6-Feb-20 3:21 
GeneralRe: Need an opinion on a circular IList<T> implementation Pin
honey the codewitch6-Feb-20 3:28
mvahoney the codewitch6-Feb-20 3:28 
GeneralRe: Need an opinion on a circular IList<T> implementation Pin
Pete O'Hanlon6-Feb-20 3:33
mvePete O'Hanlon6-Feb-20 3:33 
GeneralRe: Need an opinion on a circular IList<T> implementation Pin
Greg Utas6-Feb-20 3:48
professionalGreg Utas6-Feb-20 3:48 
GeneralRe: Need an opinion on a circular IList<T> implementation Pin
Pete O'Hanlon6-Feb-20 5:24
mvePete O'Hanlon6-Feb-20 5:24 
GeneralRe: Need an opinion on a circular IList<T> implementation Pin
Gerry Schmitz6-Feb-20 8:06
mveGerry Schmitz6-Feb-20 8:06 
GeneralRe: Need an opinion on a circular IList<T> implementation Pin
Jörgen Andersson6-Feb-20 20:50
professionalJörgen Andersson6-Feb-20 20:50 
GeneralRe: Need an opinion on a circular IList<T> implementation Pin
honey the codewitch6-Feb-20 21:40
mvahoney the codewitch6-Feb-20 21:40 
GeneralRe: Need an opinion on a circular IList<T> implementation Pin
Jörgen Andersson6-Feb-20 21:28
professionalJörgen Andersson6-Feb-20 21:28 
AnswerRe: Need an opinion on a circular IList<T> implementation Pin
lopatir6-Feb-20 3:23
lopatir6-Feb-20 3:23 
AnswerRe: Need an opinion on a circular IList<T> implementation Pin
Richard MacCutchan6-Feb-20 3:45
mveRichard MacCutchan6-Feb-20 3:45 
GeneralRe: Need an opinion on a circular IList<T> implementation Pin
honey the codewitch6-Feb-20 3:49
mvahoney the codewitch6-Feb-20 3:49 
AnswerRe: Need an opinion on a circular IList<T> implementation Pin
englebart10-Feb-20 3:41
professionalenglebart10-Feb-20 3:41 
GeneralCCC - 2020-02-06 Pin
musefan5-Feb-20 22:02
musefan5-Feb-20 22:02 
GeneralRe: CCC - 2020-02-06 Pin
Paddington Bear5-Feb-20 22:07
Paddington Bear5-Feb-20 22:07 
GeneralRe: CCC - 2020-02-06 - WINNER! Pin
musefan5-Feb-20 22:15
musefan5-Feb-20 22:15 
GeneralRIP Spartacus Pin
Johnny J.5-Feb-20 19:26
professionalJohnny J.5-Feb-20 19:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.