Many years ago, at an employer that no longer exists, I was given a project, "Here it's all yours."
It had been under development for many years and was now "nearing production".
Being the sort of person that I am, my first task was to read the code. Not all of it, but certainly key points and representative samples.
I was perusing one file (C code) that was a few thousand lines long that was a key point in the system, when I found a 400 to 500 line function that was a _very_ key point in system. And in the midst of this, several levels deep in the code structure was the following line:
/* Comments removed for clarity */
Ok. I had the expected reaction. Now comes the _real_ WTF, it was probably correct.
Originally the system had a three level hierarchy for the data with identifiers at each level Volume, Chapter, Section (VCS) with a single number torn apart into variables named appropriately. However, the VP who originally designed this thing (and fancied himself a cool coder since he had written [7 or 8 years before] some of the original product code [in Basic]) suddenly changed his mind on the hierarchy and added a Shelf level (SVCS). Now he figureed that they could just smash the old Volume and Chapter stuff into where the Chapter was in the original id numbers and put Shelf at the beginning and not have to do much...
So, the code was a mixture of "volume" with shelf numbers, "chapter" with volume and chapter information from the original code and "shelf", "volume", and "chapter" from the new code... and all of the old comments would have referenced the wrong names.
And fun was had by all... or at least me.
PS: the system was never successfully sold (thank goodness), and I moved on to other projects eventually.