Click here to Skip to main content
15,896,413 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:44
mvahoney the codewitch5-Feb-20 23:44 
GeneralRe: Need an opinion on a circular IList<T> implementation Pin
Jörgen Andersson6-Feb-20 0:40
professionalJörgen Andersson6-Feb-20 0:40 
AnswerRe: Need an opinion on a circular IList<T> implementation Pin
harold aptroot5-Feb-20 23:03
harold aptroot5-Feb-20 23:03 
GeneralRe: Need an opinion on a circular IList<T> implementation Pin
honey the codewitch5-Feb-20 23:05
mvahoney the codewitch5-Feb-20 23:05 
GeneralRe: Need an opinion on a circular IList<T> implementation Pin
OriginalGriff5-Feb-20 23:19
mveOriginalGriff5-Feb-20 23:19 
GeneralRe: Need an opinion on a circular IList<T> implementation Pin
honey the codewitch5-Feb-20 23:39
mvahoney the codewitch5-Feb-20 23:39 
AnswerRe: Need an opinion on a circular IList<T> implementation Pin
Sander Rossel5-Feb-20 23:27
professionalSander Rossel5-Feb-20 23:27 
GeneralRe: Need an opinion on a circular IList<T> implementation Pin
honey the codewitch5-Feb-20 23:37
mvahoney the codewitch5-Feb-20 23:37 
I actually thought about doing that but I don't want to add them to standard list interfaces, just this one. I don't like putting inefficient methods on standard lists because it will encourage poor programming.

As far as adding them just to the CircularList that way, or creating ICircularList<t>, I don't really want the latter as I'd like to follow what microsoft has done (most of the time) with their list based data structures like Queue<T> and Stack<T> and just create the class itself. I can add extension methods, and I almost did, but the rest of my class is factored as partial classes - CircularList.cs, CircularList.ICollection.cs, CircularList.IList.cs, etc so I'll probably just add it like that.


I'm leaning toward PushFront/PopFront/PushBack/PopBack like STL, because it's also at least somewhat like Microsoft's pattern in .NET
Real programmers use butterflies

AnswerRe: Need an opinion on a circular IList<T> implementation Pin
Arthur V. Ratz5-Feb-20 23:31
professionalArthur V. Ratz5-Feb-20 23:31 
GeneralRe: Need an opinion on a circular IList<T> implementation Pin
honey the codewitch5-Feb-20 23:42
mvahoney the codewitch5-Feb-20 23:42 
GeneralRe: Need an opinion on a circular IList<T> implementation Pin
Arthur V. Ratz5-Feb-20 23:51
professionalArthur V. Ratz5-Feb-20 23:51 
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 
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 

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.