4 ms·
> What you can do is share your code with other programmers. I think that's the real value of things like Github. But, programmers are a notoriously savage bunc
by danso 13y ago
> What you can do is share your code with other programmers. I think that's the real value of things like Github. But, programmers are a notoriously savage bunch, and Github attracts top talent from all corners of the world. You are just as likely to hear a comment breaking down why your approach was wrong, or why you're using the incorrect syntax here or there, or why there's already some library by some other Joe Schmuck that does the same thing, only better.
I won't lie and say that programming is the most uplifting job in the world...its very physical implementation -- involving the long lonely staring at a plain text screen -- is a depression-breeding environment. What has helped me not be depressed about programming is to come up with much more intrinsic values for why I program. So I'm not programming to write better or faster code than the many geniuses out there, I write code to satisfy my own needs and goal.
So to the author's point above, I love the debates and criticism that Github fosters. Submitting a pull request and then repeatedly checking my email to see if the maintainer has made a comment is even more addicting to me than checking Hacker News. I don't mind a "thank you", but I really love a "Thanks, but this is feature creep" or "Why did you use this approach when our convention is [this]?" or even a "Please clean up your code, it fails [whatever code quality tool they've grafted on to the test suite]." Usually the maintainer is right, and I'll have learned a little more about best practices, and sometimes even if I disagree but am in a decent mood, I'll do as they say just because sometimes the physical act of writing code helps me understand it.
But the key is this: I almost never contribute code that doesn't immediately help me...this includes everything from a feature-creepy feature to a bug-fix that affects my particularly wonky setup. That way, even if the pull request is rejected, I still have something that I can use and be happy with.
There's nothing wrong with selfish goals in coding, and I believe that programmers often aren't selfish enough...or at least in the right ways (I suppose wanting to program just because you think it'll earn you money is a selfish mindset, but it's not immediate enough, IMO).
One of my favorite Woz stories is not just how he built the Apple ][ Floppy Disk -- regarded as an early Apple Inc. lifesaver and a technical marvel -- without any previous floppy drive experience and in about 20 days, but the fact that he did it (according to various Apple writers) almost solely because Mike Markkula had tempted him with a free trip to the Las Vegas tech expo, and Woz had never been to Las Vegas before. Can't get much more "selfish" than that :)