Slashdot Mirror


Use Code From Stack Overflow? You Must Provide Attribution (stackexchange.com)

An anonymous reader writes: Have you ever used Stack Overflow to answer a question about some code you're working on? Most people who write code on a regular basis have done so, and this sometimes involves copying code snippets. Well, starting on March 1, copying code from Stack Overflow will require you to attribute that code. Code published by contributors to SO will be covered by the MIT license. Users copying that code don't have to include the full license in their code, as it usually requires, but they do have to provide a URL as a comment in their code, or some similar level of attribution. This change applies to other sites in the Stack Exchange network, as well.

The SO community is widely criticizing the change, citing problems with the decision-making process that led to it and complications that may arise from mandating attribution. Why did SO make the change in the first place? They say "it's always been a little ambiguous how CC-BY-SA covers code. This has led to uncertainty among conscientious developers as they've struggled to understand what (if anything) the license requires of them when grabbing a few lines of code from a post on Stack Exchange. Uncertainty is a drag on productivity, for you and for us, and we feel obligated to make code use more clear."

172 of 303 comments (clear)

  1. No. by Anonymous Coward · · Score: 5, Insightful

    If I offer you some code in an answer, that's for you. I'm not going to require you credit me or some site for the few fucking lines that would come through on stackoverflow.

    So instead of dealing with that bullshit, I just won't use stackoverflow again.

    Fuck them. Fuck their CoC. Fuck their SJW bullshit, too.

    1. Re: No. by Anonymous Coward · · Score: 5, Insightful

      Anyone intelligent enough to provide useful solutions already knows anything they post on something like stackexchange is public domain. If contributors wanted money and or attribution, they wouldn't have posted a solution to begin with.

      This is idiotic and overly complicated. I want to meet the "developers" concerned about the 'foggy' licensing terms for code/solution approaches posted on stack exchange.

      Goodbye stack exchange. You've shot yourself in the foot.

    2. Re:No. by nikhilhs · · Score: 1

      What SJW bullshit?

    3. Re:No. by Anonymous Coward · · Score: 1

      What SJW bullshit?

      All of it.

    4. Re:No. by Rei · · Score: 1

      Wow, someone's got an axe to grind. Use my whetstone, my good man.

      --
      He's the sort of person who would sell the Red Cross to Dracula.
    5. Re:No. by ShanghaiBill · · Score: 1

      Social Justice Warrior

      He is not asking what the acronym means. He is asking what it has to do with Stackoverflow. I have no idea. I use SO regularly, and have never seen race, gender, or sexual pref mentioned.

    6. Re:No. by 93+Escort+Wagon · · Score: 2, Insightful

      There seem to be a fair number of anonymous Slashdotters who see the shadow of the Social Justice Warrior Boogieman behind every rock and shrub.

      Or perhaps it's just one guy who's on the site 24/7.

      --
      #DeleteChrome
    7. Re:No. by neoritter · · Score: 1

      "GGers" are not the only ones that use the SJW term, etc.

    8. Re: No. by Unknown1337 · · Score: 1

      Exactly right, not to mention a large portion of the code from SO was copied from somewhere else to start with. Simply find your answer there, spend 2 seconds looking for the same answer somewhere else and copy that instead. Assuming anyone is paranoid enough to think there will be any consequence for a breach that can't possibly be monitored.

    9. Re:No. by Anonymous Coward · · Score: 1

      And their imbecilic password policy.

      So much this. SO password policy feels like I'm connecting to an ICBM launch site.

    10. Re: No. by SumDog · · Score: 3, Interesting

      I typically put

      #taken from http://stackoverfl......

      in my code anyway, just as a reminder of where it came from, but only if it's particularly complex. I don't always of course. This change is kinda retarded though. I don't want to be forced to do that every time.

    11. Re:No. by Darinbob · · Score: 1

      Someone took their blow up doll away and they're having a temper tantrum in their mom's basement.

    12. Re:No. by Half-pint+HAL · · Score: 1

      Do you need a hug?

      Goddamn 19th century SJWs and their political correct pronoun control. What was wrong with calling people "thou" and "thee"? Trying to make us show "respect" with their CODE OF CONDUCT. Well, thou'll not control mine speech with thy SJW parlance. In sooth shalt thou suffer the pronouns of my forebears, without thy new-fangled terms!

      --
      Got them moderator blues I blieve I walk out the do', With these mod-points I been gettin', I 'most never post no mo'
    13. Re:No. by Hognoxious · · Score: 1

      It's counter-productive anyway: it reduces the number of combinations you need to try.

      P.S. Whoever modded me down above, just go drink bleach.

      --
      Confucius say, "Find worm in apple - bad. Find half a worm - worse."
    14. Re: No. by rioki · · Score: 1

      Exactly, also 98% of the questions, answers and code contained within are trivial, if you have the requisite domain know how. This means that most of it would fall under the obvious fact doctrine and not be copyrightable anyway. The key issue with SO, is that most people who ask or look up questions simply don't have the domain know how; yet; which makes it a valuable learning tool.

    15. Re: No. by david_thornley · · Score: 1

      Legally, it isn't public domain. This particular post is, at the moment I fix it in tangible form (like electrons in chips) is copyright me, provided it has some element of creativity (and this does). Legally, you can read it here, comment on it, use excerpts under fair use, and that's it. Any further copying is technically violating my copyright. In fact, I really don't care what happens, and I'm not going to prosecute anyone for copying stuff like this. (You may consider this promissory laches or whatever if you like. It should be completely obvious that IANAL.) However, due to our copyright laws, it remains under copyright for something like 75 years after I'm dead, and no longer have any choice on whether to file suit or not. At that time, when the copyright goes through some shuffles and winds up with the lizardmen, you can get sued, and you know what kind of lawyers the lizardmen have.

      By putting a license on something, you make it legal for someone to use your copyrighted stuff. If I were to slap the WTF license on this post, you'd be safe from the lizardmen even when I could no longer protect you.

      I'm sorry the law isn't what you like, but to be legally safe you need a license for any piece of code complicated enough to be reasonably done in more than one way.

      --
      "When you have eliminated the unacceptable, whatever is left, however improbable, must be the truthiness" - Holmes
  2. Who owns your code by Anonymous Coward · · Score: 1

    This is way to complicated, and nonsense. How can you copyright solutions to problems that some may find themselves and others pick up from SO. This kind of appropriation of public resources is typical for the fossil fuel bank dominated economy that needs to get into every fucking nook and cranny to eek out some fossil fuel cashflow. I say : Fuck that.

  3. You should be anyways by Anonymous Coward · · Score: 5, Insightful

    You should be anyways, but not for the reasons that you might think.

    I always include a link in comments to the source of the borrowed code (or approach), because the relevant discussion will illuminate the how and why far better than a large block comment.

    1. Re:You should be anyways by Anonymous Coward · · Score: 1

      Indeed, I came here to say this. I don't ever copy code directly from the Internet for professional code, but if I implement something that I didn't come up with, or if there was valuable reference material somewhere, it just makes sense to reference that in the code so that the next person to come along can get a better understanding of the reasoning behind it.

      Just because my comment humored me, this is how I annotated something I did just the other night:

      // The right answer only has a few votes, JS devs are DUMB!
      // http://stackoverflow.com/questions/9954757/javascript-convert-integer-to-array-of-bits

    2. Re:You should be anyways by thoromyr · · Score: 4, Insightful

      I think the problem is less with attribution -- as so many people are pointing out including a link is a basic part of code documentation -- and more with pretending to have authority to license the code that is posted.

      Consider a few situations:

      If someone posts public domain code, then SO is claiming that they can take the code out of the public domain. While a government can pass a law to do something that idiotic, SO lacks the authority.

      If someone posts proprietary code without permission, then SO is claiming the code is free to use as long as you provide attribution -- even though they have no authority to do so.

      The right thing for SO to do is encourage the obvious -- link because it is a basic form of documentation, but don't pretend to provide a license.

      They should take pains to point out they are not responsible for the posts of its users and provide a "take down" mechanism so that if code is misappropriated then the answer providing it can be marked as such. By using the link as documentation, someone maintaining code would have a chance to discover that proprietary code had been misappropriated and take appropriate action.

    3. Re:You should be anyways by vux984 · · Score: 5, Insightful

      I always include a link in comments to the source of the borrowed code (or approach), because the relevant discussion will illuminate the how and why far better than a large block comment.

      5, 10, or 15 years from now a 404 error illuminates nothing.

      If the snippet really needs/benefits from the explanation/discussion, I usually save the page / article to PDF, with url in the header, and include that in the project, and then reference that file in the comments.

      I've run into enough 404 errors over the years, where the site I originally referenced is gone, or reorganized (Microsoft for example) or have gone to a paywall model, or even cases where the article has been edited or altered; or taken down by the author so he could posted an updated one or any other reason.

      I don't object to the concept of linking to the live article, but I'm not willing to take the chance that it won't be there if i ever need it.

      I've never really considered whether the practice raises its own copyright issues. It probably does... so I guess it won't work where the source is being redistributed. Which is unfortunate really.

    4. Re:You should be anyways by El+Cubano · · Score: 1

      I agree. In fact, when I read the summary I was dumbfounded by the idea that someone would grab code off the Internet without adding a comment along with it explaining what it does and its origin. What happens when you look at the code again in 6 weeks, 6 months or another developer comes along after you and has to maintain/modify it?

      I find this also very helpful in the case where the borrowed approach is not otherwise consistent with the style and architecture of the project.

    5. Re:You should be anyways by angel'o'sphere · · Score: 1

      If someone posts proprietary code without permission, then SO is claiming the code is free to use as long as you provide attribution -- even though they have no authority to do so.
      Erm, they have authority to do so.

      First of all: regardless if the code is proprietary or not: it is still just a "quote",
      secondly: the one who made the error is the one who posted it on SO,
      thirdly: "free to use" as in respect to to SO, most certainly!!

      So to resolve it, SO only has to remove it, on request of the original author/copyright owner.

      They should take pains to point out they are not responsible for the posts of its users and provide a "take down" mechanism so that if code is misappropriated then the answer providing it can be marked as such.
      That is true!

      --
      Cost free eBook I read (by iBook/Kobo/Amazon/ObookO/Gutenberg etc.): "The Green Odyssey" by Philip Jose Farmer.
    6. Re:You should be anyways by bwcbwc · · Score: 1

      You're also conflating "ownership of the code" with "enforcement of terms of service" and "standardization of licensing" for contributed code. Basically all they're saying is if you contribute code it will be licensed to the community under the MIT license. If you use that code you're required to abide by the MIT license - except that they're giving you an exception if your use of the code is somewhere near the border of "fair use". In that case, you can just attribute the code in the comments rather than the full acknowledgement normally required in the documentation.

      --
      We are the 198 proof..
    7. Re:You should be anyways by LordKronos · · Score: 1

      I agree. Anything I borrow from there I link right back. But not just for the reason you suggest. It's not uncommon to see topics on stackoverflow where an answer was marked as the accepted answer, then years later either the original answer stops working (due to a library or browser change), or a better answer comes along because someone noticed an obscure bug or a better solution is now feasible. If I (or someone else) later encounters a bug in that code, it's best to know where it came from so you can go back, check the comments, and see if there's an update.

    8. Re:You should be anyways by brewthatistrue · · Score: 1

      also http://archive.is/, for when the Internet Archive fails to comprehend that robots.txt is designed to prevent scraping of URLs not prompted by a human.

    9. Re:You should be anyways by greggman · · Score: 1

      O,RLY?

      Do you credit every co-worker?

      You: "Hey Joe, how do you process a flarb?"

      Joe: "It's FlarbSystem.Process(flarb)"

      You: "Ok, thanks" // Ask joe@mycompany.com
      FlarbSystem.Process(flarb)

      No I don't credit people on Stack Overflow and I don't expect attribution for stuff I've posted on Stack Overflow. I see stack overflow as effectively the same as asking an extended set of co-workers.

    10. Re:You should be anyways by toddestan · · Score: 1

      Technically, you're just changing things up so that you're now depending on archive.org being there in the future. Granted, it's probably one of the more stable things out there, but if you really want to be sure I would keep a local copy anyway.

    11. Re:You should be anyways by toddestan · · Score: 1

      Not every time, but it has it's place. In the future, you may not remember why you did things that way, so it might be helpful to throw a reminder in that Joe helped you with that. Or someone may come to you asking you a bunch of questions about how flarbs get processed, and you might want to have a note in there so that you can refer them to Joe who is the expert on processing flarbs. Or if it breaks things horribly, at least you have Joe's name in the comments.

    12. Re:You should be anyways by rolandw · · Score: 1

      You should be anyways, but not for the reasons that you might think.

      I always include a link in comments to the source of the borrowed code (or approach), because the relevant discussion will illuminate the how and why far better than a large block comment.

      I even do so in one off shell scripts (of which many owe some level of inspiration to SO). It is all too easy not to be able to remember the exact query you made on SO and not be able to come back to the discussion even a few hours later.

  4. What's the big fuss? by __aaclcg7560 · · Score: 5, Insightful

    I usually put the URL into a comment when I use a particular piece of code from Stack Overflow. More so for future reference than attribution.

    1. Re:What's the big fuss? by Anonymous Coward · · Score: 1, Informative

      You've never worked with a licensing group before. We have to run Blackduck Protex scan to find licensed code, which is good if you added JQuery or some big chunk of code from online. But if one or two lines of code that was found on SO to fix a problem has attribution then the lawyers will spend forever dealing with it before anything can be shipped.

    2. Re:What's the big fuss? by BenBoy · · Score: 2

      Right with you ... this was already standard practice for a lot of developers. Some of the supporting comments can be pretty intricate and long ... not something I want to repeat in my code comments, but something I want later developers (or later me) to have access to.

    3. Re:What's the big fuss? by Gr8Apes · · Score: 2

      SO is a short cut for me which usually leads to the exact portion of whatever documentation I need to review to implement a specific solution. Anything I "copy" from such a source is usually too modified to ever be traceable back to the original, because "surprise" the problem isn't exactly the same, the naming and code formatting almost never matches the current policy not to mention what is actually being done, etc etc etc. So it really becomes code inspired by whatever was found, or that was used to leapfrog to what I really needed.

      --
      The cesspool just got a check and balance.
    4. Re:What's the big fuss? by varag · · Score: 1

      Of course, this works well as long as the site is going to still be online in 5 (10? or 20?) years time and still have the same URL structure.

    5. Re:What's the big fuss? by __aaclcg7560 · · Score: 1

      That's assuming that your code doesn't change in 5/10/20 years from now.

    6. Re:What's the big fuss? by snizzitch · · Score: 1

      Posting the originating Stack Overflow link is like saying to your coworker, "Go argue with these 350 other people who upvoted this."

    7. Re:What's the big fuss? by __aaclcg7560 · · Score: 2

      No, that's a Slashdot link. ;)

    8. Re:What's the big fuss? by luis_a_espinal · · Score: 1

      Of course, this works well as long as the site is going to still be online in 5 (10? or 20?) years time and still have the same URL structure.

      You can say that pretty much about everything. Documentation will become stale in much less than 5 years, and it requires revisiting (which includes pruning of things that are no longer applicable.)

      You document what you know/need NOW, making references to exist NOW to the best of your knowledge, with an expectation that code AAAAAND documentation will evolved and be maintained/pruned/decomissioned.

      We are not writing documents to be cast in stone for eons to come man.

    9. Re:What's the big fuss? by Richard+Dick+Head · · Score: 1

      I'm sure this will only directly affect open source projects where code from SO can be automatically scanned for.

      Reminds me of writing English papers in high school, which (allegedly) I never actually did once. Sleaze a paper off of the internet, go though and change every sentence at least slightly and redo unique phrases, and then the teacher's eye and any automatic plagiarism software are a moot point. They could even "know" you're cheating because the points and flow is identical to the online paper and possibly other cheating students, but if there is not a single atomic unit of information that remains the same then no one can prove a thing. :D

    10. Re:What's the big fuss? by epine · · Score: 1

      if there is not a single atomic unit of information that remains the same then no one can prove a thing

      If only the Germans had thought of fuzzing their text instead of building that silly Enigma machine ...

      While I can't quite prove you're not a math major from that one post alone, it strikes me that in this instance proof is unnecessary.

      Corollary of Sturgeon's law: 99% of everything is judged by smell. It takes more than a teaspoon of Tide to wash the shit off a turd.

    11. Re:What's the big fuss? by mattventura · · Score: 1

      The problem is that you will no longer be able to directly post code that is covered by a license which is not compatible with the license SO uses. So you wouldn't be able to post GPL code, for example.

    12. Re:What's the big fuss? by Man+On+Pink+Corner · · Score: 1

      If they had fuzzed their text before encrypting it, it would have made all the difference in the world.

    13. Re:What's the big fuss? by Anonymous Coward · · Score: 1

      That's assuming that your code doesn't change in 5/10/20 years from now.

      I never update my code, so this is not a problem.

    14. Re:What's the big fuss? by antdude · · Score: 1

      What happens when the URLs become broken? :P

      --
      Ant(Dude) @ Quality Foraged Links (AQFL.net) & The Ant Farm (antfarm.ma.cx / antfarm.home.dhs.org).
    15. Re:What's the big fuss? by __aaclcg7560 · · Score: 1

      The Wayback Machine

      http://archive.org/web/

    16. Re:What's the big fuss? by antdude · · Score: 1

      But not everyone wants to be archived. :(

      --
      Ant(Dude) @ Quality Foraged Links (AQFL.net) & The Ant Farm (antfarm.ma.cx / antfarm.home.dhs.org).
  5. I've always done that by Anonymous Coward · · Score: 1

    It is anyway best practice to give your coworkers a clue where to find more information for that fix/workaround/implementation they stumble upon...

    1. Re:I've always done that by Beezlebub33 · · Score: 2

      P.s.what happens if I post GPL code?

      I don't think that this is just a P.S. This highlights the crux of the (legal) issue. SO is saying that code posted on their web site is under a particular license, which implies that they have the right to do so.

      If I get code off SO and it later turns out to be GPL or proprietary, and I get sued, it means that I get to point to SO and say 'sue them, they gave me a license'.

      --
      The more people I meet, the better I like my dog.
    2. Re:I've always done that by dgatwood · · Score: 2

      This is about informing the customers, as per the MIT terms ... But on the upside, perhaps this discourages c&p coding.

      Actually, unless I'm misreading, the plan is to be MIT with the attribution requirement removed, unless the poster explicitly asks for attribution. IMO, this makes sense for short code snippets, because they're arguably too short to enjoy copyright protection anyway (there's often exactly one way to do it), and this eliminates ambiguity on the subject. For longer code, if you want to request attribution, posters will be allowed to do so.

      --

      Check out my sci-fi/humor trilogy at PatriotsBooks.

  6. Practically speaking this amounts to guidelines by 91degrees · · Score: 5, Insightful

    Nobody will come after you if you use code from Stackoverflow without attribution. The code isn't worth enough and the ownership is not obvious enough.

    People and companies that have a policy of sticking to the spirit of a licence agreement as well as the letter will appreciate having some rules to know that what they're doing is acceptable.

    1. Re:Practically speaking this amounts to guidelines by c · · Score: 1

      The code isn't worth enough and the ownership is not obvious enough.

      In many (most?) cases, the only reason the code could even be on Stackoverflow is that the snippet would fall under fair use.

      And, in the cases where the ownership can be traced to somewhere else, why couldn't someone attribute it to the original source rather than Stackoverflow?

      --
      Log in or piss off.
    2. Re:Practically speaking this amounts to guidelines by Gr8Apes · · Score: 1

      It's going to be a problem, because of all the code that's already there. Merely republishing it under MIT will not negate the fact that tons of solutions were already available in the public domain, and cannot be removed from PD no matter what you do. Once PD, always PD.

      --
      The cesspool just got a check and balance.
    3. Re:Practically speaking this amounts to guidelines by LihTox · · Score: 4, Insightful

      It's going to be a problem, because of all the code that's already there. Merely republishing it under MIT will not negate the fact that tons of solutions were already available in the public domain, and cannot be removed from PD no matter what you do. Once PD, always PD.

      And what if I add to my submission "//This code is released into the public domain"? Does that invalidate the requirement? Are they going to delete my submission because of it?

    4. Re:Practically speaking this amounts to guidelines by WinstonWolfIT · · Score: 2

      I doubt it'll impact me in the slightest. I use it to find workarounds to consuming complicated APIs and even the stuff I paste gets refactored beyond recognition from the original. To me, how to integrate with Oauth is a statement of fact with hundreds of examples, and by the time I've customized it for my needs good luck finding anything that might be its source.

    5. Re:Practically speaking this amounts to guidelines by 91degrees · · Score: 1

      I think that's the case for everyone. Stackoverflow will rarely give entire pages of algorithm. Usually it's simply a case of "you need to use these two functions together" or something. At which stage you're really not into the realm of creativity, and just providing a few instructions.

    6. Re:Practically speaking this amounts to guidelines by Anonymous Coward · · Score: 1

      If you want to specify alternative licensing terms, you're welcome to do so in your profile. It's not like they're requesting a copyright grant. I've had a CC0 release in mine for more than five years. This practice isn't rare, and is encouraged by the moderators for users who desire it.

      However, it's less certain you'd be allowed to include that license text in your post itself -- it's not a direct part of the answer, and having tons of posts on the site cluttered with license comments could be noisy in the same way that forum signatures are. It's likely that such text would be edited out of your answer.

  7. SO's own answer says "CC"...or not... by xxxJonBoyxxx · · Score: 4, Informative

    Here's an actual debate on this topic on SO:
    http://meta.stackexchange.com/...

    Accepted answer: Anything that you post to Stack Overflow will be under the terms of the Creative Commons license

    Top comments seems to be about using "Unlicense" (instead of "Public Domain") and to just avoid cut-paste (good luck with that if you're dealing with an offshore team). I pretty much use #2, renaming everything and usually swapping some of the decision logic to create something that looks original enough to pass a smell test when I cut/paste. It's work, but it's still significantly less work than writing it from scratch.

    1. Re:SO's own answer says "CC"...or not... by The-Ixian · · Score: 2

      Yeah, I almost always change variable names to match my conventions and will add some extra validation usually.

      I am not sure why SO needs to specify this at all though. I mean, people are putting code out into public space with the intention that others will copy it... that's the whole point...

      That said, I usually do keep any comments that were in the code snippet to begin with.

      --
      My eyes reflect the stars and a smile lights up my face.
    2. Re:SO's own answer says "CC"...or not... by JesseMcDonald · · Score: 1

      Anything that you post to Stack Overflow will be under the terms of the Creative Commons license

      But which Creative Commons license? They range from CC0 (effectively Public Domain) all the way down to CC-BY-NC-ND, which is one step short of "all rights reserved" and not really a contribution to the commons in any meaningful sense. The one thing they all share is that you can distribute the work non-commercially with attribution in its original form—which is rarely a useful set of terms when applied to incomplete snippets of source code.

      --
      "The state is that great fiction by which everyone tries to live at the expense of everyone else." - Bastiat
    3. Re:SO's own answer says "CC"...or not... by Jahta · · Score: 1

      Here's an actual debate on this topic on SO: http://meta.stackexchange.com/...

      Accepted answer: Anything that you post to Stack Overflow will be under the terms of the Creative Commons license

      Top comments seems to be about using "Unlicense" (instead of "Public Domain") and to just avoid cut-paste (good luck with that if you're dealing with an offshore team). I pretty much use #2, renaming everything and usually swapping some of the decision logic to create something that looks original enough to pass a smell test when I cut/paste. It's work, but it's still significantly less work than writing it from scratch.

      There's a quote from Jeff Atwood in that debate that I think is very relevant - "I would hope that people are not posting giant blocks of code at SO, making it more of a quote / fair use type situation.".

      That's the way I view anything I post on SO; they are just code fragments to illustrate a concept or a language quirk and not something I feel the need to claim ownership over. And that's also how I read SO; I'm looking to learn, not copy/paste big chunks of code. If folks are really posting blocks of code big enough to be copyright-able then they probably shouldn't.

    4. Re:SO's own answer says "CC"...or not... by pjt33 · · Score: 3, Informative

      What the Slashdot summary doesn't say (and a lot of commenters on meta.stackexchange.com also didn't really take into account) is that this licensing change affects not only StackOverflow but the whole StackExchange network, including sites like Code Review and Programming Puzzles and Code Golf where people do post substantial blocks of code over which they wish to assert their moral rights.

    5. Re:SO's own answer says "CC"...or not... by PRMan · · Score: 1

      Exactly. If you don't want people to use it freely, then don't share it on a site where the whole point is for people to use the code freely.

      --
      Peter predicted that you would "deliberately forget" creation 2000 years ago...
  8. Re: Fuck 'em by Anonymous Coward · · Score: 5, Funny

    This. I'm moving all my queries to expertsexchange.

  9. Re:Unenforceable and stupid by Anonymous Coward · · Score: 1

    Law writers DGAF whether something is actually practicable, including but not limited to Imaginary Property scenarios. We're half a page away from back to back articles about Netflix admitting that geoblocking is basically impossible, while convincing their shareholders otherwise.

    The reason we don't have Thoughtcrime is the outrage you get from various political parties/groups, not the fact that we don't actually have a mind reading device.

  10. This is about money. by Etherwalk · · Score: 3, Insightful

    This is about money and maybe ego. A combination of what some shortsighted idiot thinks of as free advertising and maybe some ego-hungry folk involved in the decision-making who feel the need to be cited.

    And it will start moving every major company away from stackoverflow. You can't be putting snippets of other people's code in your product with attribution because you're going to be making lawsuits and licensing that much more complicated. People who worry about those things will use stackoverflow less and less.

    Stackoverflow has a great network effect from all the users. But stuff like this will make anyone who brings another game to town look a lot more attractive.

  11. Attributions longer than the code? by srijon · · Score: 1

    The same code snippet gets recycled, munged, riffed on, ported to new languages, rewritten by multiple authors, commented on and then improved, reposted by new authors with bug fixes, and on... The whole value of sites like SO is this kind of sharing. But doesn't that mean attribution, especially for smaller snippets, will become a nightmare?

  12. What kind of code? by Todd+Knarr · · Score: 2

    For me it always came down to what kind of code it was. If it was "I know what I want to do, what's the right/best way to express that in $LANGUAGE / using $FRAMEWORK?", we're talking about just mechanics. If I was looking for how to do something, where I needed the actual algorithm or data structure rather than just "What's the syntax?" or "Which operator's best?", that's getting into the creative side where you need to at a minimum do attribution. Almost all of what I get off of SO falls into the first category.

  13. Re: Fuck 'em by Anonymous Coward · · Score: 3, Funny

    Hell no. You'd have to cut off my balls before I would do that.

  14. Re: Fuck 'em by Crowd+Computing · · Score: 4, Funny

    This. I'm moving all my queries to expertsexchange.

    Is this the site where you post all your gender identity issues?

  15. Re:Unenforceable and stupid by SQLGuru · · Score: 2

    I get really frustrated when searching for an answer and about 15 or 20 of the results are from sites that have just screen scraped Stack Overflow and republished the content in a "forum" style post. So yeah, even Stack Overflow doesn't have any control over the content.

    I'm not opposed to including links to some of the more obscure answers, but for more common code that could have been found in numerous other sources, I don't see the point.

  16. Re: Fuck 'em by Anonymous Coward · · Score: 5, Funny

    Hell no. You'd have to cut off my balls before I would do that.

    That would be amateursexchange.com.

  17. Seems to me... by sycodon · · Score: 3, Insightful

    ...that if they require this, it is edging towards some kind of implicit acceptance of responsibility for that code.

    If I use code from a forum, offered freely, and burn down my stuff, it's on me.
    If I use code from a paid source and it burns down my stuff, it's on them.
    If I use code from a forum, but I have to attribute that code in mine, then ???

    I would dismiss that conclusion right off the bat. But you give some lawyers even the slightest rationale, it's off to the courts you go.

    --
    When Fascism comes to America, it will call itself Anti-Fascism, and tell you to give up your guns.
    1. Re:Seems to me... by Anonymous Coward · · Score: 5, Informative

      From the MIT license (similar wordings can be found in other licenses)

      the software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. in no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software or the use or other dealings in the software.

      I'm pretty sure no damn lawyer can get around this. No sane lawyer anyway.

    2. Re:Seems to me... by sycodon · · Score: 1

      I have a feeling that sometime in the future, language like his will be found to be invalid.

      It's about the same as selling a car and claiming that you can't be held liable if there is something wrong with it. If you are paid money for code your wrote to perform a function, and it fucks up and wipes out something else, it should be on you. sure, it's a bit more complicated than a car, but the principle should be the same.

      --
      When Fascism comes to America, it will call itself Anti-Fascism, and tell you to give up your guns.
    3. Re:Seems to me... by neoritter · · Score: 1

      I agree to a certain degree, but you're not paying for anything on StackOverflow, at least not that I've seen.

    4. Re:Seems to me... by chmod+a+x+mojo · · Score: 1

      Non-dealership personal sales of cars, unless explicitly stated in a contract, are sold caveat emptor.

      This is the exact same thing as using code from some random area on the 'net. The car may look like it should last, but if you didn't either check out the engine yourself or take it to someone who can check it for you, you can't complain about how the transmission fell out and the engine stopped working by the time you got halfway home... you bought it "buyer beware". It is on the buyer / recipient to make sure the car / code is suitable for their needs, will last, and will do what they want it to do for the length of time that they want.

      --
      To err is human; effective mayhem requires the root password!
    5. Re:Seems to me... by sycodon · · Score: 1

      So...Microsoft is the same as a sleazy used car dealer? :-)

      --
      When Fascism comes to America, it will call itself Anti-Fascism, and tell you to give up your guns.
    6. Re:Seems to me... by sexconker · · Score: 1

      Non-dealership personal sales of cars, unless explicitly stated in a contract, are sold caveat emptor.

      They're sold with basic protections in place, and sellers are required to:

      Not intentionally misrepresent the car - no rolling back the odometer, no claiming it's got features it doesn't have, no falsely claiming you put in a new transmission last month, etc.
      Disclose anything they know of that is a safety issue - no selling a car with no brakes without disclosing that.

      Even when you throw in "as-is" on a ad / contract / bill of sale, the seller is still forbidden from committing outright fraud and can still be found liable for knowingly putting someone behind the wheel of a death box without telling them.

    7. Re:Seems to me... by lister+king+of+smeg · · Score: 1

      So...Microsoft is the same as a sleazy used car dealer? :-)

      after reviewing the evidence

      https://youtu.be/sforhbLiwLA
      https://www.youtube.com/watch?...

      yes they are

      --
      ---Saying gnome 3 is better than windows 8 not so much a compliment as it is damning with light praise.
    8. Re:Seems to me... by Xyrus · · Score: 1

      Ladies and gentleman, this is Chewbacca...

      --
      ~X~
  18. Citation is a form of professional respect by celest · · Score: 5, Insightful

    Perhaps it's because I'm an academic and my use of Stack Exchange relates to my research projects, but I'm having a hard time understanding why people would object to citing the source of a snippet of code. I have always cited and linked to the profiles people who were kind enough to help me with my code on Stack Exchange, not out of license obligation, but out of professional respect.

    In academia, citing the work of others is commonplace. It's super easy to insert a comment in your code with a link. Putting the licensing and legal interpretations aside for a moment, why wouldn't you just want to do this out of respect for another professional?

    Reply to This Share Flag as Inappropriate

  19. Good Luck With That by Anonymous Coward · · Score: 1

    many of the code solutions are already plagiarized from books and blogs... SO needs to handle proper citation before it could enforce such a policy.

  20. How do you govern the copying of pseudocode? by mark-t · · Score: 2

    [nt]

  21. Licensing someone elses code without permission by BitZtream · · Score: 5, Insightful

    99.999999% of the code posted to StackOverflow didn't originate with the person who's posting it.

    Most of it is just someone spitting out what they learned from someone else, and in most of the situations, the most upvoted answer is the common sense and only real solution to the problem presented, thats why it gets voted to the highest/accepted as the answer.

    SO doesn't really have the right to force a license on the code posted there, they are pretending to worry about people using the code, but ignoring the broken part of the people posting the code.

    --
    Persistent Volume manager for Kubernetes - https://github.com/dwimsey/openshift-pvmanager
    1. Re:Licensing someone elses code without permission by Threni · · Score: 1

      > SO doesn't really have the right to force a license on the code posted there

      They made clear under which license any code posted there was protected. No-one was ever forced to post there or accept anything.

      > they are pretending to worry about people using the code, but ignoring the broken part of the people posting the
      code.

      "they" are a company who've made their view clear. There's no need to imagine they're pretending anything.

    2. Re:Licensing someone elses code without permission by Tablizer · · Score: 1

      This reminds me of what happened when Ashton Tate, maker of dBASE, tried to sue dBASE clones in the late 1980's for copying their intellectual property.

      It turned out that Ashton Tate's original coder got the source code and related ideas from a JPL (NASA) project, and that JPL had earlier cloned a commercial mini-computer database product, with minor modifications, to avoid licensing fees. It was tainted turtles all the way down. The judge threw the case out.

      If you start claiming ownership of something that you don't really know the history of; it could backfire.

  22. Re:Society is heading to stupidity. by nnull · · Score: 1

    Welcome to the future.

  23. It's not for legal reasons by ericski · · Score: 2

    They just want the link to drive more traffic to their site.

  24. ownership by Holi · · Score: 1

    Who owns the code posted to Stack Overflow?

    --
    Sorry, teleporters just kill you and then make a copy. A perfect, soul-less copy.
  25. This is for Stack Overflow's benefit by phaedryx · · Score: 1

    When I post code on Stack Overflow, I intend for other people to use it. I couldn't care less if I have attribution, I'm just trying to be helpful. I suspect that this is intended to get more traffic to Stack Overflow.

  26. Attribution is needed in source only, not license by Lothsahn · · Score: 3, Informative

    This doesn't sound onerous to me at all. It doesn't require anything in public documentation, help pages, or otherwise like the MIT license. It simply requires a single URL in a code comment.

    This sounds perfectly fine to me--in general, I and my team already does this because it's helpful to know WHY we chose a course of action, especially when it was complicated enough to require SO's help.

    http://meta.stackexchange.com/...

    What is reasonable attribution?

    A URL as a comment in your code is reasonable attribution.

    There are certainly other forms of reasonable attribution, depending on use, and you are welcome to go above and beyond what’s required and include username, date, and anything else if you like.

    You are also welcome to use the MIT License as it is traditionally interpreted: by preserving the full license with relevant fields (copyright year and copyright holder) completed.

    --
    -=Lothsahn=-
  27. Depends on whether the answer is trivial or not by ZeroWaiteState · · Score: 1

    In many cases, there is only one correct way to do a thing. This is similar to Google's argument regarding Java APIs: if you want to write compatible code, there is only a single way it can be done. It isn't creativity, it's plain mathematical necessity. Many of the people didn't write the language interpreter they are providing an answer about, so they have no rights to claim in answering trivial syntax questions (no more than a person can claim Rights to a section of Harry Potter because they discussed it on a forum). If the answer involved writing a complex algorithm, then yes, an argument can be made for attribution. I think common sense is sufficient to tell the difference.

  28. This is the least of the problems with SO. by Anonymous Coward · · Score: 5, Insightful

    Of all of the problems plaguing SO, this attribution crap is the least important of them.

    The awful moderation is by far the biggest problem. It's so frustrating to ask a perfectly good question, get some good answers to it, and then later on some micropenised moderator comes along and starts muddling with the questions and answers just to make himself feel like his micropenis isn't as small as it is.

    Moderation online just makes things worse. Doesn't matter if it's SO or Slashdot or Wikipedia. Most of the time it's just an outlet for people with microscopically small genitalia to try to feel bigger and more important than they really are. In reality, they're just freaks with shrunken genitalia who have no value at all.

    1. Re:This is the least of the problems with SO. by Anonymous Coward · · Score: 1

      Of all of the problems caused by small genitalia, this moderation crap is the least important of them.

      The biggest problems are ISIL and the IRS. We really should be focusing on genitalia standardization here, rather than arguing over code attribution.

    2. Re:This is the least of the problems with SO. by paavo512 · · Score: 1

      I was having a debate with several high ranking programmers on SO about needing to mark an INT volatile or having to use Interlocked atomic writes to make sure the class variable gets flushed to memory after the method call finishes.

      Indeed, there is no need for that. You need to sync only if something must get visible to another thread.

      My argument is that unless the method discards the data or inlines the method call, the method has to eventually flush the data from registers back to memory before returning control.

      As written, this statement seems indeed either insane or tautological. I am not surprised SO people were baffled.

      Now that .Net code is on GitHub, it turns out Microsoft's own code for stuff like semaphores are written exactly the way I proposed.

      A semaphore is a totally different thing than an ordinary user-defined class object.

    3. Re:This is the least of the problems with SO. by uncqual · · Score: 5, Insightful

      With so little detail, it's hard to say for sure, but it sounds like you were likely wrong.

      First, the fact that something is flushed from a register is NO guarantee that it will be visible to other processors at any particular time in the future. Sure, most architectures and implementations with most workloads will move it "fairly quickly" from caches to 'main' memory shared by all processors. But "fairly quickly" is undefined - one instruction? Two? 20? Seven clock cycles? Six?. Worse, once the register is actually flushed to main memory by the processor doing the write, there's no guarantee that other processors will see the updated value when accessing the physical address at any particular time in the future -- the 'stale' version of the data may be sitting in L1 or L2 cache for an arbitrary period of time (and this is usually even longer and more unpredictable and, in my experience, the more common source of concurrency problems in code written by amateurs who have never carefully read even the memory model section of even one hardware architecture spec).

      Second, C makes no guarantees about when a register (or even what a 'register' is - esp. on a particular architecture) is flushed to to the L1/L2/L? cache/memory. Particular implementations on particular architectures at particular optimization levels may do so when you expect -- but they also may do something quite different.

      When you're programming in a high level language, you should adhere to the rules of the high level language and not make assumptions about how the compiler, runtime, and underlying architecture work as you have no idea when a new version of compiler, a new version of runtime, or a new revision of hardware etc will be used with your code and invalidate your assumptions -- and that's not even considering porting to an alternative architecture in the future.

      The fact that an OS vendor coded something a particular way does not mean that it's a good idea for you to do it. They know what hardware their OS targets (including multiple architectures, each of which will likely have different implementations of key concurrency control primitives) and will patch their code if needed. As well, in the case of Microsoft, both the microprocessor vendors and (to a lesser extent) system builders test their implementations on Windows before alpha release so if there's a discrepancy, either the hardware will likely be changed or Microsoft will issue a bug fix for that hardware. Note that the underlying OS even almost certainly has all sorts of "hacks" in it to get around errata in specific steppings of Intel microprocessors. Depending on the OS, just stepping through the assembly code for a library or system call may be especially misleading unless you have verified that that's really the code that runs on EVERY implementation of the hardware/OS etc.

      Of course, if you know that your code would never need to run on another compiler, run-time, architecture, implementation of the architecture (including clock rates, memory speeds), or even stepping of a microprocessor and you understand all the layers well (perhaps implemented them yourself) have at it -- but, please, do us all a favor and just write your code in assembly so it's clearer to those who may follow you what you did rather than leave others trying to guess what you assumed about the underlying infrastructure.

      For the rest of us that know things change, when writing in a high level language, be professional and follow the specs and use available OS libraries for synchronization needs where available. I've had to implement my own in the long distant past (including to replace a horrible implementation of CriticalSections back in the early days of Windows NT), but those days are mostly in the distant rearview mirror now that most everything has been multicore for at least 15 years.

      If you're even thinking about 'registers' when considering correctness of concurrency when programming in a high level language, you are almost certainly doing something wrong.

      --
      Why is there an "insightful" mod and why isn't it "-1"? If I wanted insight, I wouldn't be reading /.
    4. Re:This is the least of the problems with SO. by lgw · · Score: 1

      The right answer of course depends on the language. Most major languages now explicitly address concurrency in the standards, but they're not identical. "Volatile" finally means something useful for concurrency in Java and C++, but in the early standards of each it didn't.

      If GP was arguing that you can build a locking primitive using just "volatile", well, clearly not. Since we don't know what he was trying to do, I'm inclined to agree that he was wrong, but "volatile" does solve a lot of common problems. Of course, as you say, thinking about "registers" entirely misses the point - it's about the behavior the standards require.

      --
      Socialism: a lie told by totalitarians and believed by fools.
    5. Re:This is the least of the problems with SO. by Darinbob · · Score: 2

      Most of the code there is obvious. No need for copyright or licensing. The answer to "how do I do a rotate an unsigned integer?" isn't a work of art. Even the longer snippets of code are just that: snippets. They're composed of techniques that are widely known and widely used, and most certainly these snippets were copied from somewhere else in the first place!! There's almost never anything original in stackexchange. Having to put attributions on this is like having to use attributions with tweets. The code snippets almost certainly can not be copyrighted as they're too small and the original authors are unknown or can't be reached.

      What next, we can't use code snippets from "The C Programming Language, Kernighan and Ritchie" without attribution? Because there have been billions of copies of those snippets over the years.

      Even in the case where the author created original work to put up on stackexchange, the author almost certainly intended for that piece of code to be re-used or it would have been either kept secret of have included a copyright notice.

    6. Re:This is the least of the problems with SO. by Darinbob · · Score: 1

      Perhaps in the context of the question there was a need for synchronization. The poster did not give the context and yet you assume there was no need for synchronization and so he must be wrong.

    7. Re:This is the least of the problems with SO. by adnonsense · · Score: 1

      Yeah, my one and only post there was what I thought was an innocuous question about a certain kind of hardware device (not my speciality, just wanted to get some general pointers which way to go), there was time for one (1) quite helpful answer then a bunch of people with some kind of moderating rights piled in, slapping a closure notice on it along the lines of "question locked because likely to cause controversy". Nice way to say "f**k you, n00b". Nary a friendly word along the lines of "we see this is your first post, here are some guidelines, sorry for the inconvenience". Still, at least a couple of keyboard warriors got their fix of banhammer joy. I guess it's like WP editors - if you got in early and got reputation, youv'e got a pretty free pass, but new accounts have got a huge uphill struggle before getting anywhere, and I can't be assed.

    8. Re:This is the least of the problems with SO. by sribe · · Score: 1

      The awful moderation is by far the biggest problem. It's so frustrating to ask a perfectly good question, get some good answers to it, and then later on some micropenised moderator comes along and starts muddling with the questions and answers just to make himself feel like his micropenis isn't as small as it is.

      Yeah, I've never used SO heavily, just occasionally. But over the last few months it does seem like fully half of the few queries I have that lead me to SO, are closed as "not relevant to programming", despite being obviously 100% relevant to programming. Seriously, what kind of jackass moderates a question about setting network call timeouts FROM CODE as not being about programming.

      I know it didn't used to be that way, because it was only in 2015 that I encountered the first obviously incorrect, probably malicious, "not relevant" moderation. And it has grown to be all the damn time now. I used to be happy when google put an SO question at the top of my responses because it was likely to provide good info, now I'm starting to be annoyed by it.

    9. Re:This is the least of the problems with SO. by sribe · · Score: 1

      Most of the code there is obvious. No need for copyright or licensing. The answer to "how do I do a rotate an unsigned integer?" isn't a work of art. Even the longer snippets of code are just that: snippets. They're composed of techniques that are widely known and widely used, and most certainly these snippets were copied from somewhere else in the first place!! There's almost never anything original in stackexchange. Having to put attributions on this is like having to use attributions with tweets. The code snippets almost certainly can not be copyrighted as they're too small and the original authors are unknown or can't be reached.

      Why the hell has this not yet been modded up to +5???

      What next, we can't use code snippets from "The C Programming Language, Kernighan and Ritchie" without attribution? Because there have been billions of copies of those snippets over the years.

      Ages ago, I bought a book on cross-platform GUI development, which was advertised as having a useful library explained in the book and included on the CD that came with the book. And guess what? Yep, there was a license printed in there, which basically prevented any reasonable use at all of the library. Somehow, the author and the lawyers had not actually communicated regarding the purpose of the CD ;-) Didn't matter anyway, the book and the framework turned out to be really crappy...

  29. Summary is 100% incorrect by Anonymous Coward · · Score: 1

    Summary says " Well, starting on March 1, copying code from Stack Overflow will require you to attribute that code"

    Actually, copying code from Stack Overflow ALREADY requires you to attribute it. The posters own the copyright, you can't copy without permission, and the only permission that applies to ALL Stack Overflow content is CC BY-SA.

    Now, individual posters may give permission to copy without attribution. But the default rule has been CC BY-SA since the site opened, and the BY in CC BY-SA stands for "byline". Read the license for the full details, but attribution is very much required under the status quo.

  30. Re:Society is heading to stupidity. by scsirob · · Score: 1

    If someone posts a way to call Java library routines, is it copyright?
    Ask Oracle.

    --
    To Terminate, or not to Terminate, that's the question - SCSIROB
  31. SO has required attribution for 8 years by shog9 · · Score: 5, Informative

    Before you freak out, you should read the license that's been in place on Stack Overflow since it was founded.
    Guess what: it requires attribution.
    It's not totally clear how that's supposed to work when applied to code, but it's crystal clear about the requirement itself. The proposed MIT change is aimed at making this more obvious, but... If you aren't already giving credit where it's due, then that's on you - the license has always demanded that.
    You might wanna read up on the "share alike" bit too...
    P.S. I work for Stack Overflow.

    1. Re:SO has required attribution for 8 years by Sklivvz · · Score: 1

      I, for one, welcome our Stack Overflords.

      PS: I, too, work for the beast^H^H^H^H^H Stack Overflow

  32. Public domain for me by CustomSolvers2 · · Score: 1

    I want all my relevant online contributions to be considered public domain. Ironically, the sites where I write (StackOverflow or Slashdot) can apply their more-restricted-copyright policies (a different story is people respecting such decisions).

    Note that I have updated my SO profile description to include all these ideas: http://stackoverflow.com/users...

    --
    Custom Solvers 2.0 = Alvaro Carballo Garcia = varocarbas.
  33. Re:Citation is a form of professional respect by pjt33 · · Score: 1

    The objection is not to citing others when you use their code: the objection is to the way Stack Exchange is requiring you to license your code. The most repeated theme of the criticism is "If you're going to change licence, change to a proper one rather than a kludgy homebrew variant which allows people to just copy the code, add a URL, and call it attribution".

  34. This isn't about attribution... by dark.nebulae · · Score: 1

    It's about SO trying to more eyes on the site and raise their ad revenue further.

    "Hmm, where did the dev get this code? Oh, I see, from SO. Let me go to the link and see what else was said..."

    Anyone who buys that "we're only thinking of the code submitters' rights" crap is just fooling themselves.

  35. Ok by piRSqrd · · Score: 1

    I've never considered myself a programmer but I code. I've always looked for guidance on how to behave in the community. Without weighing in on the ethics and/or practicalities of SO insisting we do this, it seems to me a trivial/polite/useful thing to do. I, for one, will start doing this.

    --
    I put the 'Physics' in 'Physical Attraction'
  36. Re:God... by Pseudonymous+Powers · · Score: 2

    I can't believe all of the hate for this. It's not a big deal and it's something I've always been doing anyway.

    Sure, it's probably not a big deal to you. But it is very much a big deal to people who write commercial software, which is a fair percentage of the people who use StackOverflow. I'm not a lawyer myself, but I can say from experience that, when a lawyer finds a comment somewhere in the codebase that says "//these next two lines of code are MIT-licensed", steam shoots out of their ears and every developer in the company has to attend an all-day meeting about it.

  37. Attributions by Dragon+Bait · · Score: 1

    /*!
    @attributions
    - The C Programming Language 2nd Edition
    by Brian W. Kernighan and Dennis M. Ritchie
    for help on the printf statement.
    - Linux man-pages project for parameters to the
    strftime function.

    - Professor Steve Sherman for the first class using C.

    - Professor John Wirth for general programming
    skills being taught.

    - Bill Joy for developing the vi editor in which this
    code was produced.
    */

    1. Re:Attributions by 93+Escort+Wagon · · Score: 1

      You forgot to thank your Mom.

      --
      #DeleteChrome
  38. It doesn't work that way, Stack Overflow... by pla · · Score: 1

    When I write up a code snippet to answer a question on a website, I get to decide how I want to license that. Not the website... And almost this exact argument has gone to court, BTW - Adobe can't claim any rights whatsoever to Photoshops just because their creators used an Adobe product to make them. Call me crazy, but somehow I doubt the courts would consider the use of a text input box to write a forum post as granting more rights to the tool-maker than they do with Photoshop.

    And when I write up a code snippet to answer a question on Stack Overflow, I consider it completely public domain. I give up any and all rights to that code. Go grab it and "Hello World" your little heart out without giving me a lick of credit.

    Now - Whether or not that now violates SO's ToS, yes, SO can decide that it does and ban me from contributing. But they don't get to tell me how I copyright my own created works (aka "posts").

  39. Re:SO is overflown with H-1Bs and WP-style trolls by dave420 · · Score: 1

    The irony - someone complaining about "dumb" "dickheads" and screwing it up in the process. Good jerrrrrb!

  40. That's just common decency by plopez · · Score: 1

    And professionalism. Then again, most programmers aren't professionals so the whining is not unexpected.

    --
    putting the 'B' in LGBTQ+
    1. Re:That's just common decency by PRMan · · Score: 1

      No. We just have learned that lawyers are not to be trusted and that this change will ultimately be abused. Not only that, but WE are the ones contributing to Stack Overflow and quite frankly we couldn't care less that our code is being used without attribution. If we had something proprietary or important, we wouldn't share it on a free website. (Duh.)

      --
      Peter predicted that you would "deliberately forget" creation 2000 years ago...
    2. Re:That's just common decency by fyngyrz · · Score: 1

      Underrated even if it got to +100

      --
      I've fallen off your lawn, and I can't get up.
  41. Re:Unenforceable and stupid by Hevel-Varik · · Score: 1

    I don't like gotcha arguments and I see what you're saying, but hate crime is not thought crime. It requires an element of thought but is inextricably linked to an act which in itself constitutes crime. It's akin to, if not the same as the different degrees of murder, which depend largely on the thought element bound to the act. Also akin to but further from than the former, the difference between murder and manslaughter where the differentiator is intent or lack thereof.

    A thought crime in common parlance is the criminalization of thinking a given thought (holding a particular opinion) as such. We are approaching those, may G-d protect us, but we aren't there yet.

  42. Re:God... by i+work+on+computers · · Score: 3, Interesting

      I'm not a lawyer myself, but I can say from experience that, when a lawyer finds a comment somewhere in the codebase that says "//these next two lines of code are MIT-licensed", steam shoots out of their ears and every developer in the company has to attend an all-day meeting about it.

    This is absolutely common for many large commercial companies. I have several such companies as clients and getting any FOSS approved is a major process. In fact, one client preferred to send a check to one open-source project for a license even though legally it grants them no benefit. The project's website even says that the project "is in the public domain and does not require a license." Companies with large bankrolls will glady shell out thousands of dollars for some peace of mind.

    http://www.hwaci.com/cgi-bin/l...

    As a rule, I never used code directly from SO to avoid any licensing questions for my clients.

  43. Re:Citation is a form of professional respect by Okian+Warrior · · Score: 3, Interesting

    Perhaps it's because I'm an academic and my use of Stack Exchange relates to my research projects, but I'm having a hard time understanding why people would object to citing the source of a snippet of code.

    I take the opposite position - I wonder why people even bother with attributions for little scraps of paper, half-formed ideas, and answers to questions.

    For one thing, if it's on StackExchange it's common knowledge. Do you cite Newton or Euler when you solve an integral in your paper?

    Secondy, StackExchange doesn't cite *their* scraps of code. That 6 lines of code that connect to the SQL server - it's just information from the manual that the reader could have gotten for themselves. Does StackExchange cite the manual?

    Thirdly, it generates fear and doubt in the minds of pointy-haired bosses, thinking that an external license reference will dilute the software value. Possibly require the company to publish the code for anyone else to copy. (Whether this is true is irrelevant - it's the perception of many people.)

    Fourthly, the attribution is extra administrivia and work that adds nothing to the code. It has to be ignored and skipped over by everyone who reads or maintains the code in the future, it goes into backups and changelogs. It's litter for programs.

    Fifthly, there's no possible way that value or esteem can attach to the writer. Having some sort of value or utility is the reason that rational beings do things, so why should anyone bother doing something that could not possibly reward the writer?

    Perhaps it's because I've read too many papers that are a thicket of cryptic citations referencing everyone else's work, but with very little to add. For example, see Crumbum and Whoodle (1985), but Finnaster and Welsch (1992) take a counter position that might throw more light on the subject.

    For a relatively complete overview of the theory and reasoning behind citations, see Finbum.

  44. I already do by X10 · · Score: 1

    When I copy code from StackOverflow, if it's more than one or two lines, I include a reference to the source page. If only so the programmers who work on my code after me know where it comes from and why it is the way it is.

    --
    no, I don't have a sig
    1. Re:I already do by swilver · · Score: 1

      ...or they could just google it again, like you did when you found the answer on SO.

  45. Nope by YoungManKlaus · · Score: 1

    A snippet is not a big enough fragment. Also who takes code 1:1?

  46. Re: Fuck 'em by Anonymous Coward · · Score: 3, Insightful

    This. I'm moving all my queries to expertsexchange.

    Why? What will happen if you don't? Are the source code attribution police going to come by and arrest you? You know what I'm going to do in response to this? Nothing. Absolutely nothing. We Americans have become far too accustomed to doing what we're told like good little boys and girls. Whatever happened to ignoring or getting around stupid rules and laws? Our grandparents and their parents did it, why don't we? In America anyone can sue you or your company at any time for any reason. Being a perfect bootlicker isn't going to change that. The chances of costly consequences arising from failing to attribute a line of code from SO is so low as to be unworthy of even a minute wasted thinking about it.

  47. Re:The smell test. by xxxJonBoyxxx · · Score: 1

    >> I'd have second thoughts about employing a programmer who passes off other people's work as his own.

    Then you probably don't know what programmers DO. What I think you are looking for instead are "artists." :)

    For westlake and others new to the industry, please understand that all programmers do, all programmers EVER do, is take other people's work in the form of hardware, operating systems, libraries, other programs, and pass it off as our own through...da da dum...programs! Programmers who constantly choose to write their own stuff from scratch (also called "reinventing the wheel") are regarded as "slow", "obtuse", "dangerous" and "expensive" (have you tried hand-coding a web app from scratch these days?) while programmers who adopt best practice libraries, platforms, development practices and patterns are regarded as "fast", "smart", "effective" and "cost-efficient".

  48. Re:God... by JesseMcDonald · · Score: 1

    ... I can say from experience that, when a lawyer finds a comment somewhere in the codebase that says "//these next two lines of code are MIT-licensed", steam shoots out of their ears and every developer in the company has to attend an all-day meeting about it.

    And if they later find out that the same code from the same source was included without any such comment, do you think they would take that any better?

    The MIT license, at least, doesn't require anything beyond attribution in the code. Up to this point the default license for anything copied from Stack Overflow was CC-BY-SA, which is "viral" much like the GPL: any derivative works must be offered under the same terms.

    Of course, there is still the question of whether S.O. has the right to apply this license to everything posted to their site, including not only posts from before this policy was announced but also code from other sources with licenses which are not compatible with the MIT license or with S.O.'s interpretation of the attribution requirement.

    --
    "The state is that great fiction by which everyone tries to live at the expense of everyone else." - Bastiat
  49. Re:Citation is a form of professional respect by Anonymous Coward · · Score: 1


    Perhaps it's because I'm an academic and my use of Stack Exchange relates to my research projects, but I'm having a hard time understanding why people would object to citing the source of a snippet of code.

    Because nobody really considers a trivial code snippet to be anyone's property. Code snippets are incredibly trivial pieces of code, akin to a couple sentences in a book. Do authors cite every idea they get from strangers, no matter how trivial? "Thanks go out to that loud obnoxious guy on the 2 bus at 2am on Saturday the 23rd of April 2015 who I based the character of Douchebag Dave on". Of course not.

  50. A few lines of code isn't likely to qualify by shaitand · · Score: 1

    for copyright. Therefore the license and their requirements aren't relevant.

  51. Wow, an uprise about: law and moral ... by angel'o'sphere · · Score: 1

    So,

    you "copy/paste" code from the internet and never did attribute/mention the original author?

    And now a web site makes it a requirement in the "terms of usage" that you do so?

    And: you never figured before hand that this is
    a) the polite thing to do
    b) the fucking law
    c) in every damn book where people "quote" something "under fair" use for "science" or "educational purpose" the author is mentioned (otherwise it would be no fair use anymore), but if you copy/paste from SO or similar you don't think it would be appropriated?

    No, I did not lose a closing bold tack somewhere.
    How can it be so hard to be a "so called artist" and to grasp that sources should be mentioned?

    --
    Cost free eBook I read (by iBook/Kobo/Amazon/ObookO/Gutenberg etc.): "The Green Odyssey" by Philip Jose Farmer.
    1. Re:Wow, an uprise about: law and moral ... by PRMan · · Score: 1

      Yep. And I have contributed some top answers and I hope they help lots of people. I don't care if it's attributed. Why? Because these are simple problems that aren't worth copyright. It's not a house. It's a nail.

      --
      Peter predicted that you would "deliberately forget" creation 2000 years ago...
    2. Re:Wow, an uprise about: law and moral ... by WinstonWolfIT · · Score: 1

      I make Manchurian Chicken all the time. It's a street delicacy served on toothpicks. There are infinite ways to make it. I post my variation on Manchurian Chicken online. It's a statement of fact which is not copyrightable. A code snippet is simply a recipe. It's not creative in the slightest, it's an example of how to solve a problem. Integrating the snippet into an actual work, it's the work that's copyrightable, not the statement of fact. This license debate has reached the limits of the absurd.

  52. Now if there was only some guarantee of quality by tylersoze · · Score: 1

    I don't know how many times I've seen piss poor code upvoted as the correct answer. Sure, most of the time it works but will have obvious errors, poor coding, men leaks, etc. In almost all cases I end up rewriting the code anyway.

  53. Re:Unenforceable and stupid by neoritter · · Score: 1

    How about the people being fired from jobs or getting jail time for twitter posts? There's an actual Canadian who disagreed with a feminist on Twitter, and do to cyber violence harassment law (or whatever they call it in Canada) the guy was tried, convicted, and had jail time.

  54. Re:Unenforceable and stupid by bwcbwc · · Score: 1

    Hate crimes are thoughts put into action. It's no different from first degree murder vs. manslaughter. To convict for First degree murder you need to prove intent and planning which are both "thought crimes" the way you define it. The only difference is that a hate crime is an interpretation of motive and intent.

    --
    We are the 198 proof..
  55. Re:The smell test. by vel-ex-tech · · Score: 5, Funny

    have you tried hand-coding a web app from scratch these days?

    That was my hobby project for last weekend. I had trouble getting the strong nuclear force to condense from electroweak, then I divided by zero and the whole thing gravitationally collapsed! It took me a few hours to get the dark matter out of the carpet. I'll give it another try this weekend. I'm not certain if I should keep going with 11 dimensions or try with 9, but my problem is probably a set of fundamental operations in the number theory I'm using that gives division by zero a logically consistent value. I'll try again with infinity as an asymptote instead of a value and let you know how it goes!

    "In order to make an apple pie from scratch, you must first invent the universe." --oblig

  56. Re:Citation is a form of professional respect by Kjella · · Score: 1

    The short version is that the company doesn't care who wrote the code, they care who owns the code. All work for hire is copyrighted by the company, having who wrote it in source control is just to aid the development process or place blame. That means everybody can grab any piece of source and do whatever, very rarely do you see inside sources mentioned. Once you have code that is not yours and not distinctly separated in a third party library as being someone else's you have to keep track of it. What if another coworker needs part of the same thing and copies half of it - not including the comment? What if you want to sell or sublicense the code, what part of it is yours and not? If the person writing the code is from Cuba, is there any import/export regulation issues? I seem to remember some crypto projects not accepting US contributions for that very reason. If your code is somehow going to end up at SpaceX, is it okay if part of the source code driving the rocket comes from China?

    If somebody compares your source code to StackExchange, will there be unattributed code? And does that mean it was copy-pasted from that source from them, legally taken it from some other source or perhaps even yours is the original that somehow made it's way there. Companies are fairly indifferent to professional courtesy, but they're strongly opposed to license administration and legal liability costs, at least for a small snippet of code. If your employees wrote it then it's yours and that's the end of it. This also mandates that there's a system and guidelines in place so people know what they can and can't do and the overhead of maintaining the policy and training developers so they don't grab anything in source form with no regards to the license. Which some will do anyway, which is why you try to set up controls and gatekeepers so they don't. In short if you have any kind of process involved the overhead is going to eat up any savings you had going to StackExchange in the first place. And 95% of it is like finding the right place in the manual...

    --
    Live today, because you never know what tomorrow brings
  57. Re:Unenforceable and stupid by Dragon+Bait · · Score: 1

    It's akin to, if not the same as the different degrees of murder...

    Except with hate crimes, there are usually two charges: one for the the actual crime and a second for the thought (hate).

  58. Re:Unenforceable and stupid by Hevel-Varik · · Score: 1

    have to know the detail of that charge. when I was on grand jury i noted that there can be multiple charges for the same act. I strongly doubt that even in that second charge there is no mention of the act. that very distant from a pure thought crime, no?

  59. Re:Unenforceable and stupid by Hevel-Varik · · Score: 1

    I agree with you 100% that there are social thought crimes. I though we were talking about legal crimes.

  60. Re:Citation is a form of professional respect by mark-t · · Score: 1

    I think that the loudest objections to this are coming from people who feel that what Stack Overflow is requesting here is not unlike a computer science department in a university stating that all examples that their professors may write on the blackboard are copyrighted by them, and any use of those examples outside of the classroom must be attributed or they may get sued for copyright infringement.

  61. Re:Unenforceable and stupid by CrashNBrn · · Score: 3, Interesting

    Maybe SO should require their own cadre of geniuses to attribute their submissions/answers - which themselves are scraped from W3C, wikipedia, etc. Or the questions that are "self-answered" - just so said person can answer a question...

  62. Attribute to the Individual, but why SO? by MarkvW · · Score: 1

    SO is implicitly claiming rights in the code posted by its users. I'd check their terms of use.

  63. Author Workaround by tomxor · · Score: 2

    Authors of the code snippets who understand that (regardless of ideology) this is not practical for most people who code for a living... can just re-post a link to their code as a gist, pastebin etc with an MIT / BSD / WTFPL license.

    For those wondering about derivative license compatibility issues: remember that as the sole author you have the right to use as many licenses as you like unless exclusivity is part of your job/contract. I don't think Stack Overflow can force this requirement on a user without breaking their rights in most countries.

  64. Re:Citation is a form of professional respect by Okian+Warrior · · Score: 1

    Do you cite Newton or Euler when you solve an integral in your paper?
    Actually you are required to do that for every single math task in a math test in university.
    So I really wonder where you have studied that you think otherwise.

    Apropos of nothing, when you took your test, who did you attribute when you used integration by parts?

    You might mention "step 3 follows from Jenson's inequality" or other reference, but in general one doesn't attribute the step as much as explain the step.

    You're confused. Identifying the reason behind each step is distinctly different from attribution.

  65. Re:Citation is a form of professional respect by AmiMoJo · · Score: 1

    I'm having a hard time understanding why people would object to citing the source of a snippet of code.

    They are embarrassed that they had to look up the answer on Stack Exchange and don't want other people seeing the code to know. Personally I don't care, it shows I saved time by no re-inventing the wheel, and provides a helpful reference back to discussion and notes that might be useful later.

    --
    const int one = 65536; (Silvermoon, Texture.cs)
    SJW, n: "Someone I don't like, and by the way I'm a fuckwit" - AC
  66. My practice anyways... by steppin_razor_LA · · Score: 1

    ... if I pull code or a solution from an Internet source, I always include the attribution. I don't do it for the author's benefit. I do it because it can be helpful to someone else reading my code in the future.

    --
    Evolution: love it or leave it
    1. Re:My practice anyways... by gnasher719 · · Score: 1

      My practice: I don't pull code from the Internet. I find out - often based on code samples - how it works, and then I implement it myself. Because the point isn't to copy the solution, but to learn how it is done. So I am grateful to the person who posted a solution, but based on that solution I write my own, and then I know how it works.

  67. Re:Citation is a form of professional respect by jdavidb · · Score: 2

    I don't cite my college professors when I write code. To me on Stack Overflow we are teaching each other. If I teach somebody how to do something, now they know, and they can go do it. I don't expect them to cite me. Of course I'm not gonna complain if somebody wants to cite me, give me an award, send me a check, etc.

  68. That's pretty much what I do already by psm321 · · Score: 1

    I figure if I had to go to Stack Overflow for something, it's likely something that some future reader (or myself) may want more context/explanation on, and the Stack Overflow discussion generally contains a lot more than whatever snippet I happened to take. So I tend to include the URL in a comment.

  69. Re: Fuck 'em by PRMan · · Score: 5, Funny

    It's where he posts all his queeries.

    --
    Peter predicted that you would "deliberately forget" creation 2000 years ago...
  70. Jumped the shark long ago by Martin+S. · · Score: 1

    Stack overflow ceased to be relevant to professional developers long ago, around the same time it became full of students asking others to do their home work.

    This compounded by the problem, where those inexperienced student types up vote answers provided by the 'personalities' and 'celebrity coders' whether talking sense or not.

  71. LOL! Yeah, right.... by Anonymous Coward · · Score: 1

    JustAnotherOldGuy posting from work....

    1) Prove that my code snippet came from Stack Overflow instead of someplace else. Go ahead, prove it.
    2) Prove that my code snippet actually originated on Stack Overflow instead of someplace else.
    3) Prove that I didn't write the original code snippet, which was then copied to Stack Overflow by someone else.
    4) Prove that my one-liner in perl, php, java, C++, C#, javascript (or any other language) has never been written before by any other person in the history of the world.
    5) Prove that Stack Overflow hasn't instituted a policy that is basically IMPOSSIBLE to enforce in any meaningful way.
    5) Prove that Stack Overflow isn't being run by a bunch of self-important jackoffs.

  72. except with it as about profit for SO by Martin+S. · · Score: 1

    Given their existing policies to encourage posters to copy solutions from external sources rather than linking to them, I don't think 'professional respect' is the motivation for SO.

    It is about in bound links, eye balls and advertising profits.

  73. Easy solution by WinstonWolfIT · · Score: 1

    I've updated my profile on SO with:

    Every post I make to Stack Overflow is explicitly released to the Public Domain and may be used without restriction. The license of the author in every case supersedes any blanket license of a service provider.

  74. I like it by bfootdav · · Score: 1

    I'm not a programmer but I've gotten way in over my head on this one program I'm developing (music generating software). I'm constantly using code from all over the place and I attribute it and provide license information for all of it. I don't know what's considered trivial or what any other relevant laws are so I make sure I am always covered. And if I can't find licensing information about some code then I search elsewhere for a solution. Since this one big project is my entire life I want to make sure every single little i is dotted and t crossed. If this makes it easier for me to use code from SE then great with a clear conscience then great!

  75. The perspective of someone that's answered on SO by waTeim · · Score: 1

    Well thanks for the notification. I'm now somewhat attentive to this. As for me, for all of the code I've submitted, I've never expected to attributed, and I'm not sure how this is even useful let alone enforceable. I'd say from the perspective of both a user and contributor to SO, that while though it's nice to have what you write noted elsewhere, the advantage of unencumbered ideas as provided by SO (and thus google) overwhelms any sort of benefit to strict conformance to some license. I'd like to think whatever gets proposed now can be undone once more of us become aware of this issue.

  76. Re:Unenforceable and stupid by Man+On+Pink+Corner · · Score: 1

    If they implement effective geoblocking, someone will just create an "Uber for foreign Netflix viewers" proxy. At that point it really will become impossible to enforce, because Netflix can't tell what's happening to the data after it reaches a US-based household.

  77. Has been Postponed by GiganticLyingMouth · · Score: 2
    Well, the original meta post got heavily down-modded and has since been updated it with:

    Update: January 15, 2016 Thank you for your candidness, patience and feedback. We're going to delay the implementation for now - we'll be back soon to open some more discussions.

    So it's not been taken off the table, but it probably won't happen anytime soon.

  78. Re:Citation is a form of professional respect by dgatwood · · Score: 2

    Citing the original source of snippets in the source code is fine, and is actually pretty useful, because when somebody goes and reads the source later, it helps explain why somebody did something. It also gives the creator credit in front of people who would actually appreciate and understand why their snippet is cool.

    Citing the original source of snippets in a closed-source app is more problematic, because it tells the end user absolutely nothing other than that a tiny snippet of code exists somewhere in the application, and it is unlikely that the user perceives any benefit from that snippet, making the attribution largely a meaningless gesture. And the snippets are usually too short to enjoy copyright protection anyway, making citations legally unnecessary. But those attributions do make it (at least slightly) easier for someone to copy the functionality of those closed-source apps; if that were desirable, the original author would have published the source code to begin with, so from that perspective, resisting any unnecessary attribution makes a lot of sense.

    --

    Check out my sci-fi/humor trilogy at PatriotsBooks.

  79. Huh by bobmajdakjr · · Score: 1

    I have ALWAYS put urls in my code that points to things. Even if I didn't copy and paste the code, but if I learned something that was super important, or how something is super stupid, or why something is super bad. Dump the URL in there to instantly resolve myself of all blame. "Learned it here, suck it."

  80. Re:Citation is a form of professional respect by greggman · · Score: 1

    SO is not academic papers. It's short answers to short questions. Do you credit every single person you learned everything you've ever learned from?

    Me: "Hi Celest, How's it going?"

    You: "Hi Greggman (I learned Hi from my Mom at 2 and Greggman from Gregg on the internet). It's going pretty good (I learned contractions is 1st grade from Ms. Smith. Going I learned from Mom when I was 3. Pretty I learned from my Mom as well. Good too).

    Siting a multi-thousand word academic paper is vastly different than attributing 1-10 line code snippets from SO.

  81. For loop in Python by zedaroca · · Score: 1

    mylist = [1,2,3]
    for item in mylist:
            print item

    #http://stackoverflow.com/questions/4170656/for-loop-in-python
    #attributable to bukzor, but thankfully it's CC, I'm glad he did it for us

  82. Re: Fuck 'em by Xyrus · · Score: 1

    It's where he posts all his queeries.

    So does he favor homo-genius or hetero-genius hardware?

    --
    ~X~
  83. BS by samantha · · Score: 1

    We all put in answers where we can freely with no such restrictions and this is a ridiculous idea that none of us will abide by.

  84. Recipes are not copyrightable. by thisisauniqueid · · Score: 1

    Example code, code snippets etc. -- basically all code on SO -- effectively constitutes a recipe. Recipes have been ruled non-copyrightable. Therefore code on SO is not copyrightable, and in the public domain.

  85. Re:God... by dotancohen · · Score: 1

    In fact, one client preferred to send a check to one open-source project for a license even though legally it grants them no benefit. The project's website even says that the project "is in the public domain and does not require a license." Companies with large bankrolls will glady shell out thousands of dollars for some peace of mind.

    Hey, do me a favour and see if there's anything useful for them on my Github repos!
    https://github.com/dotancohen

    --
    It is dangerous to be right when the government is wrong.
  86. Have you ever used code from SO verbatim? by kmoser · · Score: 1

    I almost never use "found" code verbatim. Usually I have to rewrite it to fit into my project, not to mention remove the assumptions the original author baked into it in the first place. At that point I've changed it so much it becomes a derivative work. But, I *always* provide attribution in my source code by linking to the URL where I found the code snippet. Not to give the author their moment of fame, but so next time anybody looks through my code they know where I got that weird function and can visit the site to see the discussion. So at the end of the day, what I'm doing is called documentation, and anybody who *doesn't* do that should be smacked for being an idiot, not for breaking SO's silly rule.

  87. Who doesn't do this already? by neminem · · Score: 1

    I've always done that - if I copy any code from somewhere else, I add a comment saying where I got it from. Not because I feel like I need to legally, more because it's *helpful* - it's helpful if you come back a year later, and you're like, I don't remember writing this code? Oh, right, I didn't, I got it from somewhere else. It's also extra-helpful if the reason for the revisit later is because you think there might be a bug - first thing to do is go check the original source, see if the bug was already fixed. And of course, it is also polite to give proper credit, even if nobody is going to see the source other than your coworkers.

  88. Re:Unenforceable and stupid by neoritter · · Score: 1

    The reference to the Canadian issue was actually the result of laws in Canada against harassment. So in at least one case it was a real law that led to a "thought crime."

  89. Re:Citation is a form of professional respect by angel'o'sphere · · Score: 1

    And you are only playing with words :)
    What one guys attribution is, is the others guy explanation.

    --
    Cost free eBook I read (by iBook/Kobo/Amazon/ObookO/Gutenberg etc.): "The Green Odyssey" by Philip Jose Farmer.