Usually every character I create have a little bit of myself. Yes, even the bad ones, but it didn't quite click until I've heard what Dennis said.
I suppose pulling out specific traits from the writer's own personality (logical, emotional, etc.) to be the character's foundation help to systematically construct characters that are intrinsically intertwined and potentially opposites. What a recipe for conflict!