Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free.

I'm working on a rails app, and in rails queue is a reserved word. I need to make a Queue model for my app, and I'm stuck because I don't know what else to call it.

Has anyone else run into this before, and if so what did you call your Queue that can't be called a Queue?

share|improve this question
....QueueModel? –  Yannis Nov 6 '12 at 19:36
In situations like this, a misspelling is accepted as a reasonable practice: the default JVM implementation uses Klass as the C++ class name for a Java class. –  K.Steff Nov 6 '12 at 21:40
^ This I like, because I will be able to remember it. I'm going to go with Kueue, lol. –  Andrew Nov 6 '12 at 22:22

2 Answers 2

up vote 16 down vote accepted

If this is not a priority queue*, you can call it FIFO, for the abbreviated name of the strategy used by the data structure.

* If it is a priority queue, calling it priorityQueue would be a good choice, and it wouldn't conflict with the reserved word

share|improve this answer
Good call, I was thinking QueueList or something else ridiculous, fifo makes far more sense. –  Jimmy Hoffa Nov 6 '12 at 19:44
Pipe, although Queue and FIFO is more commonly used, I think. –  Andy Nov 6 '12 at 22:02
I think the idea in the comments (of intentionally misspelling) will be easier for me to remember in the specific context I'm working in, but this is a really good suggestion. Thank you! –  Andrew Nov 6 '12 at 22:23

Or add the type of things you plan on storing in it: taskQueue, messageQueue.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.