Is a successful developer happy? Or is a happy dev successful?

Is a successful developer happy? Or is a happy dev successful?

The chicken or egg kind of question.