The TV series Revolution (series 1, episode 6) uses code from the Apple II version of Prince of Persia.

From Swordfish: lines of code from a DES cracking program.

More from Revolution: the source code of an open-source biometrics tool is shown.

The code used in The Social Network looks like it might have been written specially for the film, according to Graham-Cumming.

"The whole intro to the Doctor Who episode 'The Bells of Saint John' is filled with things like 'add tooltip,' find unordered list elements, if browser is IE than connect (ha! as if that would support whatever they are doing), location protocol checking, Google Analytics and etc..."

"Dilbert, Season 1 Episode 10: 'Y2K,' Wally is fixing… plant code on the mainframe!?"

"In Jurassic Park there is unknown but real looking source code (possibly for an SGI UNIX machine)."


What The Code Used In Computer Scenes In Movies Actually Means

A programmer decodes the source code you've seen on TV and movie screens.

Movie studios go out of their way to create accurate details: from period clothes to cars to actors who actually speak Elvish. But "Source Code in TV and Films," a Tumblr by British programmer John Graham-Cumming, shows just how little attention media makers pay to accurate programming. In an episode of StarGate, the JavaScript comes from the website of a Canadian bank. Code used in Clear and Present Danger is so off, that the site calls it an "abomination." And code in one episode of Dr. Who, comes from a Wikipedia page on light waves. Other examples do seem to be more accurate—like code in The Social Network, which may actually have been written for the movie. But generally, it appears that most of us non-coders who consider all those letters and numbers to be mumbo jumbo are totally right.

"The Girl with the Dragon Tattoo uses apparently legitimate SQL to show the character’s attempts to research murders. Her skills may be questionable though."

Add New Comment