I share my code for three main reasons:<p>1) Other people sometimes find bugs I missed.  It&#x27;s like free outsourced testing.<p>2) The connections I make by doing this occasionally lead to opportunities down the line.<p>3) Other people being grateful and thanking me boosts my ego and makes me feel good about myself.<p>There&#x27;s plenty of selfish reasons to write code that you share.