84 points · by mqt · 16y ago · 22 comments
Git is hardly the end all be all.
All I know is that I get a few patches a week from people I've never heard of, thanks to Github. I can even anticipate them in advance, since I can see who has forks of my project, and what they've committed.
For those of us that are able to learn about simple concepts, Github has been a godsend. It has never been easier to share code.
And no, I am not being sarcastic, nor was my original post.
Most people are probably happy to get patch submissions, but there's some work involved in accepting them.
Generally, project owners want to see a test accompany any change to demonstrate that a bug was fixed or that new behavior does what's claimed. There may also be coding standards to follow, and (ideally) some documentation for new code.
If you omit these things when you submit a patch or issue a a pull request you may still think you're doing the project owner a favor, on the premise that something is better than nothing, but reviewing your submissions and checking that it is correct, and possibly cleaning up your code and adding tests, may end up being more work than it's worth.
Git and github have removed some obstacles to contributing, but there are still assorted details one has to look after.
If the project owner really wants the patch, they will fix these details themselves. In my experience this is how project owners reject patches that they don't want; make the submitter do more work than he is willing to so that the patch silently dies.
Personally, I will usually ask a submitter for a test case and some docs... but if I don't hear from them (or hear, "works for me, no time"), I will just write them myself. Same for style issues; easier to just fix them myself, then I know that the style is exactly what I want.
Github, at the very least, eliminates any technical reason not to contribute. Social issues are largely the same; although back-and-forth is a lot easier when you both have access to a public repository. (Who likes attaching the 8th iteration of a patch to email? Not me.)
Not sure if that was a typo, but in case it wasn't: git is version control software, and github is a web app that allows you to host and manage git repositories (and open-source repo hosting is free).
And you should really be doing that in a publicly archived, visible place.
The commit message.
Git is a nice tool, but you can't take things to extremes. It is not a substitute for actual discussion. What happens when the patch is 'pretty good', but not quite right and both people are willing to work on it? It just gets discussed in commit messages? No, it goes to a mailing list, especially when it's a larger project with many interested parties. This is pretty elementary open source stuff:-/
Where you're completely correct is that git and github make it easier to contribute 'at the margins'. In the sense that what once may have simply lain idle on one's own hard drive is easier to simply throw at some project in the hopes that they can do something useful with it.
http://www.reddit.com/r/programming/comments/7svak/look_at_5...
It hasn't solved the problem for everyone, though.
On the other hand even if you find where to contribute to with open source you can't be as sure your patch will be taken.
(Although as mentioned on LWN: http://lwn.net/Articles/379109/ it seems Google have managed to fork libjingle, so even Google can't get this right.)
http://gilesbowkett.blogspot.com/2010/03/programmers-what-to...
It didn't even take a week after I watched it for me to start implementing his suggestions.