Hacker News new | ask | show | jobs
by brookst 1258 days ago
Would the same attribution be required for code written by a human that learned from your example but did not copy it verbatim?

Do you attribute all of the code you ever learned from?

It may be because I’m a crappy programmer, but I often have SO or a search-discovered web page with someone else’s code while writing or debugging my own. Not for copy/paste, but to see how someone else used a function or solved a difficult problem that I’m stuck on.

I’ve never considered that to be a license violation. Is it?

1 comments

No, unless your code looks sufficiently like the code you got inspiration from and this code is sufficiently non trivial.

For code coming from Stack Overflow, the license to follow would be CC BY-CA 4.0.

(which is kinda like GPL, and which is not the best license for code by the way)

https://stackoverflow.com/legal/terms-of-service#licensing