When you see people coding in films, such as in Iron Man or The Social Network, where does this code come from? Is it at all accurate?

I...