4 ms·
A queue is a queue of things. On an only vaguely related note, this reminds me of something from college. I was helping a friend of mine who was taking an int
by georgieporgie 15y ago
A queue is a queue of things.
On an only vaguely related note, this reminds me of something from college. I was helping a friend of mine who was taking an intro to programming class. It was in C++, and he had been given a class outline for a queue, and was required to fill in the implementation. I was horrified to find that the teacher's class declaration used method names "NQ" and "DQ".
I honestly question whether the instructor even understood the meaning of the word 'queue' and how 'enqueue' and 'dequeue' are derived. It was obvious that this cutesy shorthand completely obliterated any hope of my friend ever making the mental connection between the code and what it conceptually represented.
(Incidentally, they also taught C++ streams for I/O. Apparently, their goal was to prevent new programmers from succeeding)