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?

closed as primarily opinion-based by durron597, GlenH7, gnat, user22815, user40980 Aug 27 '15 at 12:53

Many good questions generate some degree of opinion based on expert experience, but answers to this question will tend to be almost entirely based on opinions, rather than facts, references, or specific expertise. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 3
    ....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

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

  • 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.

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