Click here to Skip to main content
15,909,896 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: Keyboard Recommendation Pin
RickZeeland5-Dec-19 9:42
mveRickZeeland5-Dec-19 9:42 
GeneralRe: Keyboard Recommendation Pin
Ravi Bhavnani5-Dec-19 10:59
professionalRavi Bhavnani5-Dec-19 10:59 
GeneralRe: Keyboard Recommendation Pin
Rajesh R Subramanian5-Dec-19 11:53
professionalRajesh R Subramanian5-Dec-19 11:53 
GeneralRe: Keyboard Recommendation Pin
RickZeeland5-Dec-19 23:01
mveRickZeeland5-Dec-19 23:01 
GeneralRe: Keyboard Recommendation Pin
CodeWraith5-Dec-19 10:04
CodeWraith5-Dec-19 10:04 
GeneralRe: Keyboard Recommendation Pin
Johnny J.6-Dec-19 0:52
professionalJohnny J.6-Dec-19 0:52 
GeneralRe: Keyboard Recommendation Pin
CodeWraith6-Dec-19 3:39
CodeWraith6-Dec-19 3:39 
QuestionAn opinion on naming Pin
honey the codewitch5-Dec-19 7:40
mvahoney the codewitch5-Dec-19 7:40 
I need a replacement for Microsoft's Queue<t> that allows for efficient indexed access to the items therein.

So I made one.

The trouble is, I don't know what to name it.

By default, containers in .NET are implemented on arrays (like mine is) so since .NET 2.0 things like ArrayList have simply become (Implied Array)List<t> - indicating array storage unless otherwise specified or there is no default array storage implementation (like with binary trees). The reason this comes up is because of things like LinkedList<t>

So while I'd name mine ArrayQueue<t> that itself is inconsistent with microsoft's naming conventions post 1.x

Queue<t> itself conflicts but it's what it's currently named. I've made the interface compatible but put it under a different namespace. I'm kind of leaning toward this.

Another option I considered was ListQueue<t> because it provides indexed access, but that doesn't really jibe with microsoft's naming conventions either.

To be honest, I wish Microsoft would have simply exposed the internal method they have in the reference source in order to provide indexed access. Seems silly that they didn't, since queues are ordered by definition, but whatever.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.

AnswerRe: An opinion on naming Pin
Ravi Bhavnani5-Dec-19 7:42
professionalRavi Bhavnani5-Dec-19 7:42 
GeneralRe: An opinion on naming Pin
honey the codewitch5-Dec-19 7:43
mvahoney the codewitch5-Dec-19 7:43 
AnswerRe: An opinion on naming Pin
Jörgen Andersson5-Dec-19 7:49
professionalJörgen Andersson5-Dec-19 7:49 
GeneralRe: An opinion on naming Pin
honey the codewitch5-Dec-19 7:50
mvahoney the codewitch5-Dec-19 7:50 
AnswerRe: An opinion on naming Pin
Richard MacCutchan5-Dec-19 7:50
mveRichard MacCutchan5-Dec-19 7:50 
GeneralRe: An opinion on naming Pin
honey the codewitch5-Dec-19 7:51
mvahoney the codewitch5-Dec-19 7:51 
AnswerRe: An opinion on naming Pin
User 110609795-Dec-19 7:57
User 110609795-Dec-19 7:57 
AnswerRe: An opinion on naming Pin
Eddy Vluggen5-Dec-19 7:58
professionalEddy Vluggen5-Dec-19 7:58 
AnswerRe: An opinion on naming Pin
Greg Utas5-Dec-19 8:03
professionalGreg Utas5-Dec-19 8:03 
GeneralRe: An opinion on naming Pin
honey the codewitch5-Dec-19 8:04
mvahoney the codewitch5-Dec-19 8:04 
GeneralRe: An opinion on naming Pin
Sander Rossel5-Dec-19 8:25
professionalSander Rossel5-Dec-19 8:25 
AnswerRe: An opinion on naming Pin
Marc Clifton5-Dec-19 8:07
mvaMarc Clifton5-Dec-19 8:07 
GeneralRe: An opinion on naming Pin
honey the codewitch5-Dec-19 8:09
mvahoney the codewitch5-Dec-19 8:09 
AnswerRe: An opinion on naming Pin
Sander Rossel5-Dec-19 8:39
professionalSander Rossel5-Dec-19 8:39 
GeneralRe: An opinion on naming Pin
honey the codewitch5-Dec-19 8:40
mvahoney the codewitch5-Dec-19 8:40 
GeneralRe: An opinion on naming Pin
Sander Rossel5-Dec-19 8:50
professionalSander Rossel5-Dec-19 8:50 
GeneralRe: An opinion on naming Pin
honey the codewitch5-Dec-19 8:53
mvahoney the codewitch5-Dec-19 8:53 

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.