Personally, I think the two most important factors are 1) critique and 2) developing a sense of objectivity toward one's own work, so that one can reliably provide one's self with critique.
Also, reading a lot. I mean, a lot.
Also, reading a lot. I mean, a lot.