Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The thing is that "how do you escape a flarb" would be closed on SO for being trivial, showing lack of research etc. If, on the other hand, half your commit is something highly nontrivial you got from Marge, you might well note that in a comment, or perhaps in the commit message.


> the thing is that "how do you escape a flarb" would be closed on SO for being trivial

I don't think this is true. I know I look up stuff all the time that's one to 5 lines of code. I could go dig up examples. How about "how do you remove the margin from an LI element" Or how do you un-escape a URL. How do you iterate over a XXX in language YYY. All of those are on SO, all are popular, all are 1-3 lines.

Even a 10 line answer though. "How do you make an XHR request" is at most 10 lines and doesn't seem like it deserves attribution.

Do you attribute every pattern you've read in some book? Every code snippet from MDN or MSDN or a manual? How about blog posts on digital ocean or meteor.com (I mention those because I've been reading those recently)

I can't put my finger on why but attribution for a few lines of code on SO seems anti-productive, anti-cooperation, anti-sharing




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: