Some of it because they're contributions to already open projects. (In those, I've noticed that the contributions that look good tend to live long without change, and more specifically that contributions with few indentation jumps live longer.</digression>)
Some of it because of project-specific reasons — there is some reason for that particular project to be open, and it's not a general reason.
Some of it because I'm paid to.
And some of it because I have an urge to write the code. That code is more or less art for art's sake, and art wants to be open.
Some of it because of project-specific reasons — there is some reason for that particular project to be open, and it's not a general reason.
Some of it because I'm paid to.
And some of it because I have an urge to write the code. That code is more or less art for art's sake, and art wants to be open.