What is all this "coded" stuff? And what is exactly the point of it?

“coded” is basically a character written with the traits of a certain group or illness. The point, I’m not quite sure. To say something without saying it I suppose