It's interesting to me that the actual motivations for releasing code open-source were very different than I had assumed for the past ~30 years. I always liked to give stuff away so folks could play with and try stuff. As far as I can tell, the only reason not to still give away code is the desire for credit, which was never all that interesting to me.
But then again, I haven't devoted my life to developing and releasing a huge open source project used by millions, so perhaps my opinion should be discounted accordingly.