When my first novel, whistling in the Dark, was declared a breakout hit and New York Times bestseller, I was utterly bowled over.
“But whew,” he says, making a whistling sound and sweeping his hand over his head.
These coping strategies and this hopefulness seem to me to be a lot of whistling in the dark.
Old English hwistlian, from Proto-Germanic *khwis-, of imitative origin. Used also in Middle English of the hissing of serpents. Related: Whistled; whistling. To whistle for (with small prospect of getting) is probably from nautical whistling for a wind. To whistle "Dixie" is from 1940.
"tubular musical instrument," Old English hwistle (see whistle (v.)). To wet one's whistle "take a drink" (late 14c.) originally may have referred to pipes, or be an allusion to the throat as a sort of pipe. Phrase clean as a whistle is recorded from 1878. Railroad whistle stop (at which trains stop only if the engineer hears a signal from the station) is recorded from 1934.