3 ms·
Every programmer probably does this. If I see a function that works perfectly, is short and clean, and solves my problem, why not use it? That lets me spend le
by coralreef 12y ago
Every programmer probably does this.
If I see a function that works perfectly, is short and clean, and solves my problem, why not use it? That lets me spend less time reinventing the wheel and allows me to move onto more difficult problems.
- _RPM 12y agoIt isn't fair to say that "Every programmer probably does this." I know for a fact I don't.
- coralreef 12y agoSo what do you do? Study the code, close the browser, and rewrite it line for line?
- logn 12y agoKeep in mind, Stack Overflow code is generally licensed as: http://creativecommons.org/licenses/by-sa/2.5/ http://creativecommons.org/licenses/by-sa/2.5/ For many snippets there is no license so they're assumed to be under full copyright. I was at a company that was required to send their code through Black Duck once, and they caught a 3-line function that was lifted from the Java runtime classes (because it couldn't be overridden). We had to issue a new release over this. Also, I'm surprised how positively copy-paste coding is received here. Looking at docs is one thing, but otherwise it's not very good to rely on snippets from the web. A lot of things you want to program are not found by googling. Can you imagine a journalist saying they don't write their own their own stories, they just copy-paste paragraphs from already published stories and add some sentences to connect them?