The Twinkie is named after a shoe advertisement. At least, that is what the man who invented it said.

James Alexander Dewar, a Canadian-born baker, worked for the Continental Baking Company in Schiller Park, Illinois. UPI says he managed its Hostess bakery there. Wikipedia dates his invention to April 6, 1930, while UPI's 1985 obituary says the first Twinkie was made in November 1930.

The cake began as a way to keep machines busy. Continental used equipment to fill strawberry shortcakes with cream, and it sat idle when strawberries were out of season. Dewar used it to make a small sponge cake filled with banana cream instead.

He needed a name. By his own account, he saw a billboard in St. Louis for "Twinkle Toe Shoes" and turned Twinkle into Twinkie. UPI's version calls it a roadside sign for "Twinkle Toes Shoes," and quotes him saying the short form was "a little zippier for the kids." The story comes from Dewar alone, and Etymonline hedges it: the cake was "supposedly" invented and named by him in 1930.

Behind the shoe is an old English word. Etymonline traces twinkle to Old English twinclian, "to shut and open the eyes quickly, wink," a frequentative of twincan. Even in Old English it could also mean to shine with rapid intermittent light. A sense of quick, fluttering feet is recorded by the 1640s, the sense a shoe called Twinkle Toe seems to reach for.

The filling changed during the Second World War. Bananas were rationed, so the company switched to vanilla cream, which proved popular and stayed. Banana returned in 2007, after a 2005 promotion tied to the film King Kong lifted sales.

The cake's reputation for lasting forever is an exaggeration. Its original shelf life was 26 days, and stronger preservatives added from 2012 stretched it to 45 days.

The name also escaped into the language. "Twinkie defense" was a label reporters coined during Dan White's trial for the murders of Harvey Milk and George Moscone. It was never a recognized legal defense. White's lawyers argued his changed diet was a symptom of depression, not its cause.

Dewar died in 1985, at 88, in Downers Grove, Illinois, UPI reported. He had joined Continental in 1920 delivering by horse-drawn wagon and retired in 1972 as a vice president.