3 ms·
If I am guessing correctly, this is hitting the StackOverflow API and grabbing just the code bits of the answers? The SO upvotes seem to match the star count.
by maxverse 5y ago
If I am guessing correctly, this is hitting the StackOverflow API and grabbing just the code bits of the answers? The SO upvotes seem to match the star count.
Ex:
1. https://justshowmethecode.com/code-example/ruby-on-rails/1k9gy/rails-postgres-drop-error-database-is-being-accessed-by-other-users https://justshowmethecode.com/code-example/ruby-on-rails/1k9...
2. https://stackoverflow.com/questions/2369744/rails-postgres-drop-error-database-is-being-accessed-by-other-users https://stackoverflow.com/questions/2369744/rails-postgres-d...
- liuxiaopai 5y agoYes, you are right. Stackoverflow is one of its data source.
- nextaccountic 5y agoCould you link back to stackoverflow, maybe by adding a "source" link on the bottom? Thank you. And, if you've not read yet, please read this thread https://meta.stackoverflow.com/questions/253618/if-i-use-so-code-on-my-website-how-should-i-give-attribution https://meta.stackoverflow.com/questions/253618/if-i-use-so-... - a link is not sufficient, you also need to state that the code comes from Stack Exchange, and display the author's name (with a link to his profile) > If you're republishing content (code, or an explanation of code) that you found on Stack Overflow in a blog post or article, the attribution must be public as well. You must[1]: A) clearly indicate that it comes from the Stack Exchange Network, and give credit to the author by B) linking to the original answer/question, C) clearly indicating the author(s)' username, and D) providing link(s) to their profile page(s). > [1]. These four requirements are explicit in the Terms of Service. https://stackexchange.com/legal#attribution https://stackexchange.com/legal#attribution Moreover, this is not just a terms of service issue, the code is also licensed under CC-BY-SA > Everybody is focused on the "attribution" clause of the Creative Commons license, but Stack Exchange isn't just using the Attribution license. Stack Exchange is using the Attribution-ShareAlike license, which also requires: > If you remix, transform, or build upon the material, you must distribute your contributions under the same license as the original.
- trevyn 5y agoService may be based in a jurisdiction where compliance with terms and licenses is optional.
- nextaccountic 5y agoYeah.. that would be shady. No justification or benefit in robbing the authors of credit. And, still, there's also the matter of copyright.