For decades, workers displaced by technology in traditional industries — coal miners, factory hands, truck drivers — were lectured with the same smug refrain: “Learn to code.” The promise was simple: ...