Early in my childhood I began working to the mantra 'never make a bad situation worse'. I am not sure that I actually put it into words until later.
For a number of reasons, a health problem and, as I now realise, neural diversity, life was quite difficult as a child because, despite loving parents, I always felt very alone. I seemed always to be at odds with the world.
I just decided, quite pragmatically, that given the problems I faced, nothing was to be gained, by making my situation worse by my own actions. I was clearly quite successful at it. As an adult I was told that the doctors commented on the my remarkable equanimity in dealing with my medical problem, that often caused children real mental distress.
I do not think it is a question of being 'happy' in face of diversity, but rather of minimising the unhappiness.