It is as commendable to think well of oneself when alone, as...
It is as commendable to think well of oneself when alone, as it is ridiculous to speak well of oneself among others.
It is as commendable to think well of oneself when alone, as it is ridiculous to speak well of oneself among others.