This is a fairly common computing term in the programming circles I frequent. Unfortunately most of my non-programming friends, and even some older programmers I talk to don’t know what the color of someone’s “hat” has to do with the internet, or programming.
The short answer to this is that in old westerns and cartoons about westerns, the hero wears a white hat, and stands for honesty and doing the right thing. The villain, meanwhile, wears a black hat, and is the villain because he doesn’t care who has to get hurt for him to get what he wants. Sometimes a hero will wear a black hat, and the villain a white one, but it’s relatively uncommon, and usually comes up when the villain thinks himself to be a hero, or when the hero has a dark past he has to overcome.
This is similar to how in many books and movies the good knight wears white, or has glistening armor, while the villain of the story wears armor painted a matte black.
Grey is simply the color in between these two extremes. However to get a more in depth understanding of all this, we’re going to have to look at what colors tend to represent in the culture that spawned these idioms.
(more…)