buried treasure


Also found in: Idioms, Wikipedia.

buried treasure

A surprising piece of code found in some program. While usually not wrong, it tends to vary from crufty to bletcherous, and has lain undiscovered only because it was functionally correct, however horrible it is. Used sarcastically, because what is found is anything *but* treasure. Buried treasure almost always needs to be dug up and removed. "I just found that the scheduler sorts its queue using bubble sort! Buried treasure!"
References in classic literature ?
I forget whether I have told you that there was a stave on the rock, driven into it by some buccaneers of long ago to mark the site of buried treasure. The children had discovered the glittering hoard, and when in a mischievous mood used to fling showers of moidores, diamonds, pearls and pieces of eight to the gulls, who pounced upon them for food, and then flew away, raging at the scurvy trick that had been played upon them.
And I was going to sea myself, to sea in a schooner, with a piping boatswain and pig-tailed singing seamen, to sea, bound for an unknown island, and to seek for buried treasure!
No more can I look into the depths of this unfathomable water, wherein, as momentary lights glanced into it, I have had glimpses of buried treasure and other things submerged.
Werper felt that he should find the means and the opportunity to push on ahead, that he might warn Achmet Zek of the coming of Basuli, and also of the location of the buried treasure. What the Arab would now do with Lady Greystoke, in view of the mental affliction of her husband, Werper neither knew nor cared.
Had Wolfert Webber been deeply read in romantic legend he might have fancied himself entering upon forbidden, enchanted ground, or that these were some of the guardians set to keep watch upon buried treasure. As it was, the loneliness of the place, and the wild stories connected with it, had their effect upon his mind.
"And I must say, sir," he went on easily, though saying what he would not have said had it not been for what he was almost certain he sensed of the ancient's anxiousness, "that the South Seas is just naturally lousy with buried treasure. There's Keeling-Cocos, millions 'n' millions of it, pounds sterling, I mean, waiting for the lucky one with the right steer."
It is said that the inn-keeper hath a buried treasure, and I doubt not, my fair lord, that if you grant me leave I could prevail upon him to tell us where he hath hid it."
Two officers who are in command of a convict-guard learn an important secret as to buried treasure. A map is drawn for them by an Englishman named Jonathan Small.
And that the rumors have existed so long and so continuous, could have resulted, it appeared to me, only from the circumstance of the buried treasure still remaining entombed.
"He said something about a schooner that's gettin' ready to go off to some outlandish place to look for buried treasure, that he'd sail on her if his money held out."
Woe be to any one who would have attempted to disturb the buried treasure. The slaves would give the Yankee soldiers food, drink, clothing--anything but that which had been specifically intrusted to their care and honour.
Early in the spring, being utterly destitute, and in great extremity, and having worn out the hospitality of the Snakes, they determined to avail themselves of the buried treasures within their knowledge.