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."

303 comments

  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 Hognoxious · · Score: 0

      And their imbecilic password policy.

      --
      Confucius say, "Find worm in apple - bad. Find half a worm - worse."
    2. 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.

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

      What SJW bullshit?

    4. Re:No. by Anonymous Coward · · Score: 0

      Social Justice Warrior

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

      What SJW bullshit?

      All of it.

    6. 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.
    7. 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.

    8. 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
    9. Re:No. by vel-ex-tech · · Score: 0, Flamebait

      We know what the fuck it means, dipshit. Still, though, what the flying fuck? What the actual fuck does Stack Overflow have to do with the recently popular "two wrongs make a right" warrior movement?

      The only possible connection I can make is to that article a while back, don't remember if it was this site or the red one or both, where some CEO posted about her l33t sk1llz because she figured out that all one needs to do to become a programmer is copy and paste from Stack Overflow.

      If that's the case, isn't this anti-SJW?

      Requiring attribution is still unfeasible and completely moronic, granted.

      Yes, everybody loves to knee jerk about that term whether it's the homosexual SJWs who want to make Christmas illegal or the anti-SJWs who want women back in the kitchen. All knee jerkers can shut the fuck up until they've been told in an official capacity many, many times that official policy was to consider them rapists and sexual harassers and then they can continue keeping shut the fuck up until they get called a sexist and treated like one to their fucking face WHILE MENTORING CISFEMALE PROGRAMMERS AND BEING DENIED HEALTHCARE BECAUSE YOU WERE INVOLUNTARILY "VOLUNTEERED" FOR A WOMEN'S HEALTH PROJECT THAT GOT CANCELED BY OBAMACARE BUT IT'S APPARENTLY YOUR FUCKING FAULT BECAUSE OF YOUR ASSIGNED GENDER AT BIRTH! Then you can bitch about SJWs.

      TYVM. HAND.

    10. Re:No. by Anonymous Coward · · Score: 0

      The infamous "CODE OF CONDUCT" is not far away. SJW destroy every community it touch by policing discussion between adults and their very thoughts.

      Hell will be unleashed on you if you didn't use the right pronoun! Also everyone must pitch in to make girl and women feel superior. As a male nerd, and probably white too, you are at the very bottom of the progressive stack. You can ask your question after everyone else and if you want to provide awenser be sure to check your privilege in your post.

      Yeah like that non-sense didn't happen before.

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

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

    12. Re:No. by bwcbwc · · Score: 0

      Or it's a bot.

      --
      We are the 198 proof..
    13. Re:No. by Anonymous Coward · · Score: 0

      Sorry kid, SJW is approved nomenclature for progressive crybullies these days.

    14. Re:No. by Anonymous Coward · · Score: 0

      If you offered me some code, I'd credit you just out of respect. I would not credit Stack Overflow, nor would I change whatever license I am currently using because Stack Overflow said so.

    15. Re:No. by Anonymous Coward · · Score: 0

      And "bully" is a word that only weak, overly emotional, sissies use.

    16. 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.

    17. 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.

    18. Re:No. by Anonymous Coward · · Score: 0

      Screw bots and their kind.

    19. 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.

    20. Re:No. by Anonymous Coward · · Score: 0

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

      Absolutely dead serious here, but can you provide citations?

      I'm a little surprised (and yet I'm not) at hearing this. Would LOVE to read more. The SJWs have infected about everything else, but I thought SO was generally above that.

      Thanks in advance!

    21. Re: No. by Anonymous Coward · · Score: 0

      Don't even do that - in the highly unlikely event it becomes an issue, claim they must have copied it from your code or you developed the same solution in parallel. No way to prove this BS.

    22. Re:No. by Anonymous Coward · · Score: 0
    23. Re:No. by Anonymous Coward · · Score: 0

      This is like the third or fourth time you have ranted like this.

      Nobody cares.

      Take your vagina or whatever the fuck you have and de-sand it elsewhere.

    24. 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.

    25. Re:No. by Darinbob · · Score: 0

      Do you need a hug?

    26. 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'
    27. Re:No. by Anonymous Coward · · Score: 0

      The people who complain about "SJWs" are primarily paranoid schizophrenics with persecution complexes. There aren't any SJWs behind anything anywhere, so it's really not any more of a non sequitur here than it is any other time they bring it up.

    28. Re:No. by Anonymous Coward · · Score: 0

      From what you linked:

      Figures vary, but somewhere from 20% to 29% of currently working programmers are female.

      I wonder how many of those ~30% are actually female? Every woman programmer I know is trans.

    29. Re:No. by Anonymous Coward · · Score: 0

      I agree, fuck them.

    30. Re:No. by Anonymous Coward · · Score: 0

      Some people like to use labels like racist or misogynist in an attempt to silence and discredit their opponents. Now, there's a group who use the term SJW to do the same thing. Just shut the fuck up already.

    31. 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."
    32. Re: No. by Anonymous Coward · · Score: 0

      Given that Stack Overflow has required attribution from day one, it's amazing how they managed to become the world's #1 programmer resource while shooting them in the foot all that time.

      https://blog.stackoverflow.com/2009/06/attribution-required/

      The current license change is not to add an attribution requirement; it is an attempt to better license code shared on SO, because the CC license isn't ideal for that.

    33. Re:No. by Anonymous Coward · · Score: 0

      Anti-roboite!

    34. 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.

    35. 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. Unenforceable and stupid by Anonymous Coward · · Score: 0

    You're putting code online for free, you can't expect any real control over it.

    1. 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.

    2. 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.

    3. Re:Unenforceable and stupid by 110010001000 · · Score: 0

      Geoblocking isn't impossible to get working for the vast majority of Netflixs users. How many Netflix users are sophisticated enough to get around geoblocks? Maybe 10%. Geoblocking affects 90% of the Netflix users.

    4. 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.

    5. 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.

    6. 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..
    7. 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).

    8. 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?

    9. 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.

    10. 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...

    11. 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.

    12. Re:Unenforceable and stupid by Anonymous Coward · · Score: 0

      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.

      If he had simply disagreed with the feminist in his head, then nobody would have known and nothing would have happened. When he posted on Twitter, he crossed from thought to action, and that action happened to be illegal, so he was convicted.

    13. Re:Unenforceable and stupid by Anonymous Coward · · Score: 0

      You don't understand the difference between having a thought, and expressing it?

    14. 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."

  3. 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.

  4. 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 Anonymous Coward · · Score: 0

      I do too, along with the date & time I copied the code, because I often modify the SO code & may need to get back to the original if my mods don't work.

    4. 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.

    5. 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.

    6. 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.
    7. 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..
    8. Re:You should be anyways by Anonymous Coward · · Score: 0

      Have you considered citing the internet archive to save time and space instead?

    9. 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.

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

      (OP on the "You should be anyways" here)

      That had occurred to me, and so while not perfect, I sometimes will link not to the original URL itself but its mirror on archive.org.

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

      https://web.archive.org/web/20130426024058/http://stackoverflow.com/questions/332111/how-do-i-convert-a-double-into-a-string-in-c/8014533

      We throw away our cellphones every 2 years. Thanks to dependency hell: there's almost no way to get super old projects of reasonable complexity to compile anyway, unless you kept a copy of the dependencies/docker image/virtual machine/compiler/etc. saved on bit-rot resistant non-volatile media.

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

      This is what archive.org is for. Anytime I write a save a link for personal or work use, I always archive it

    13. 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.

    14. 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.

    15. 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.

    16. 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.

    17. 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.

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

      Funny they're so dumb but you didn't know the answer either and had to search SO

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

      I like the idea of including a pdf of the page! Maybe I'll try starting that with my team. Thanks for the suggestion.

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

      >Erm, they have authority to do so.
      They absolutely do not. There's no arguing about this.

      Let me explain why, in a way you won't be able to do anything but agree with:

      Coder 1 asks a question on SO. "How do I get this thing done? I've been trying all day to no avail!"
      Coder 2 posts some code and says "This will do what you want."
      Coder 2, unbeknownst to SO or Coder 1, did not write the code. He copied it from source code that already belongs to ExampleCorp.
      Coder 1 uses this code, with attribution to SO, secure in the knowledge that he's covered by SO's license.
      ExampleCorp finds out, and sues Coder 1.
      Coder 1 argues that the code was licensed to him via SO.

      At this point, one of three things happens.
      Judge finds for ExampleCorp, and against Coder 1, who loses a fuckton of money.
      Judge finds for Examplecorp, but against SO (after some legal rejiggering), and SO loses a fuckton of money.
      Judge finds for ExampleCorp, and against both Coder 1 AND SO, who both lose a fuckton of money.

      The flawed assumption that you're making is that any code posted to SO will be something scratch-written to answer the question. That's not always going to be the case, and it's not always easy to tell.

  5. 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 __aaclcg7560 · · Score: 0

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

      Unfortunately, most of us don't write perfect code.

    15. 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).
    16. Re:What's the big fuss? by __aaclcg7560 · · Score: 1

      The Wayback Machine

      http://archive.org/web/

    17. 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).
  6. 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 Anonymous Coward · · Score: 0

      It absolutely is, but the rest of the company hates attribution in many cases due to various reasons, none of them technical.

    2. Re:I've always done that by Anonymous Coward · · Score: 0

      This is not about informing the co-workers. This is about informing the customers, as per the MIT terms

      Copyright stackoverflow user1234567
      Copyright stackoverflow user2345678
      Copyright stackoverflow user3456789

      that'll look good.
      But on the upside, perhaps this discourages c&p coding.

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

    3. 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.
    4. 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.

  7. 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 Anonymous Coward · · Score: 0

      While I'd hope this is the case, I doubt it's the case. We will see:

      1) some law firm scraping the whole of stackoverflow
      2) said law firm examining other open source projects for the snippets
      3) said law firm offering to sue on behalf of submitters whose code was used without attribution
      4) someone outraged enough to take them up on it.

      It's just a numbers game.

      There are plenty of law firms who would happily argue away fair use for money.

    2. Re:Practically speaking this amounts to guidelines by Anonymous Coward · · Score: 0

      some law firm scraping the whole of stackoverflow

      and finding out that ALL of stackoverflow's "MIT licensed" code has previously been copyrighted by the other projects that the snippets were copied from in the first place

    3. 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.
    4. 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.
    5. 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?

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

      Except they aren't (99.9% anyway) public domain. They are CC BY-SA.

    7. Re:Practically speaking this amounts to guidelines by Anonymous Coward · · Score: 0

      The problem arises that if a piece of code is something like, "This is the method they showed at WWDC..." then it is a piece of Apple or other Apple developer written code, used under fair use because it is insignificant compared to the whole, and not properly attributed on Stack Overflow. To attribute something erroneously to the author of the article is much much worse than not attributing a code snippet at all. I personally use indirect references in the comments at the file header but have not felt that a two line piece of code warranted detailed attribution. Documenting best practices or documenting common usage should not require any attributions. I created a few graphics algorithms that are now instanced on GPUs themselves, I should expect my name etched in silicon? Admittedly it would be cool, but really it is overkill to formally attribute extremely minor code snippets that are in a public forum meant to exchange such things. And by formalizing at the site level you remove or override the contributors ability to control their contribution. Stack overflow is a forum to exchange, at the root of things, ideas. Code snippets as examples of those ideas, well, they should be open for free use not licensed.

    8. 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.

    9. 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.

    10. 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.

    11. Re:Practically speaking this amounts to guidelines by Anonymous Coward · · Score: 0

      Incorrect. Your company will come after you because using Stackoverflow just became a legal nightmare. Expect it to be blocked at your corporate firewall when the change eventually gets through your company's channels. No one will sue you directly, but in legal battles companies throwswhatever shit they can at the other just to see what sticks. When the other company gets your code through a discovery, they'll now automatically match it against Stackoverflow and anything matching might be added to the lawsuit or used to hurt your reputation with the court.

      Companies stick to the exact wording of license agreements.

  8. What if the code is not owned by the poster? by Anonymous Coward · · Score: 0

    If I post some code on SO without giving proper attribution, is the defact MIT license actually valid?

    1. Re:What if the code is not owned by the poster? by Anonymous Coward · · Score: 0

      Very good question. I frequently see code copied directly from library API documentation posted on Stackoverflow.

      This isn't the best example but here is a simple code snippet:

      "auto str = std::to_string(42.5); //attribution: http://stackoverflow.com/a/8014533"

      Do I need to attribute this post every time I use std::to_string()?

    2. Re:What if the code is not owned by the poster? by Anonymous Coward · · Score: 0

      No, however it would need to be in the area where attributions are acknowledged though.

    3. Re: What if the code is not owned by the poster? by Anonymous Coward · · Score: 0

      No it would not. You cannot copyright algorithm go, bare words, or other trivial short things like that you fucking retard. Get the fuck out of here. Systemd is awesome too right? We need more woman ruling over us right too?

  9. 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...
  10. Retroactive license changes by Anonymous Coward · · Score: 0

    I don't think you can retroactively take something out of the creative commons just by posting a new notice. This may apply to future content, but the code snippets submitted under CC-by-SA should still be CC-by-SA, although IANAL.

    Regardless, I always do this exact thing anyway. I copy & paste snippets of code from Stackoverflow(and elsewhere) all the time. Putting the URL to the origin is just common sense because if that code ever needs to be used in other situations: traceability of copyright is ridiculously important to avoid accusations of plagiarism. It's a habit I picked up while writing research papers in school.

  11. SO is overflown with H-1Bs and WP-style trolls by Anonymous Coward · · Score: 0

    And nothing of value is lost.

    SO as it is now, is mostly a forum for H-1B wannabies asking dumb questions that are answered by dickheads who has too much time on their times.

    1. Re:SO is overflown with H-1Bs and WP-style trolls by Anonymous Coward · · Score: 0

      too much time on their times.

      Their hands, that is.

    2. 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!

    3. Re: SO is overflown with H-1Bs and WP-style trolls by Anonymous Coward · · Score: 0

      You are so missing the point of SO.

      Let me spell it out for you:

      When you supply code as part of your answer, you include subtle security flaws in it.

  12. How could you possibly enforce this copyright? by Anonymous Coward · · Score: 0

    Are we going to be running plagiarism checks? Are we going to have an open-source version of the BSA, scaring people into attributing some random internet person for a few lines of code?

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

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

  14. 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.

    1. Re:This is about money. by Anonymous Coward · · Score: 0

      This has nothing to do with money or promotion.

      I, a user, have requested this for years. Why? Because the current licensing terms are **more restrictive**, and are using a Creative Commons license which was not originally intended for code. I want people to be free to use my code, but I know for a fact that many large companies are reluctant to use code from Stack Overflow because of the current licensing ambiguity. Stack Exchange is making the terms less restrictive, yet somehow everybody is perceiving the opposite.

      For readers who are not subject to corporate policies, and take code that's short enough that it's probably fair use, nothing will change.

    2. Re:This is about money. by Anonymous Coward · · Score: 0

      Stack Exchange is making the terms less restrictive, yet somehow everybody is perceiving the opposite.

      They are requiring a link.

    3. Re:This is about money. by Anonymous Coward · · Score: 0

      They are asking for a link in your code, which is private.

      Previously, they required full public attribution.

      It is unfortunate that, this being the internet, everybody gets angry without bothering to understand the situation.

    4. Re:This is about money. by Anonymous Coward · · Score: 0

      I don't get your point. SO trying to migrate from a copy-left license that's not even well suited for code (CC-BY-SA, which requires both attribution and publishing derivative works under the same license) to a permissive license (MIT, pretty much only requires attribution). That change will enable using code snippets from SO in places you couldn't use them so far.

    5. Re:This is about money. by Anonymous Coward · · Score: 0

      Except you're completely wrong because Stack Exchange has always required attribution.

      I'll say that again so that it's clear: **Stack Exchange has always required attribution.**

      They're not adding new licensing requirements: the change being made is to make the license for code clearer. But if you were sharing code taken from SO without attribution, **you were always violating the usage agreement**.

      And since Stack Exchange has done pretty well so far, with that licence in place, your rude "observations" are shown to be nothing short of abject nonsense.

      Have a nice day.

    6. Re:This is about money. by Anonymous Coward · · Score: 0

      Stack Overflow has required attribution since day one. https://blog.stackoverflow.com/2009/06/attribution-required/

  15. 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?

  16. 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.

  17. Yea Yea Sure by Anonymous Coward · · Score: 0

    It would be nice and all. But, if I don't feel like it, there's fuck all Stack Overflow or anyone else can do about it. Therefore, any further discussion is completely pointless.

    Next story please.

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

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

  19. 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?

  20. Society is heading to stupidity. by Anonymous Coward · · Score: 0

    This sentence is copyrighted by me.

    1. Re:Society is heading to stupidity. by Anonymous Coward · · Score: 0

      You do understand that some code can only be writtern in one way?

      If someone posts a way to open a bsd socket it's copyrighted? This is becoming pretty stupid.

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

      Welcome to the future.

    3. 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
  21. Zealotry is worse than fascism by Anonymous Coward · · Score: 0

    > 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

    This kind of overzealous corporate submissive pussy is exactly what needs to be rooted out from all kinds of communities online. Stack overflow and sister sites are absolutely full of these idiots.

  22. 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.

  23. 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 Anonymous Coward · · Score: 0

      Wrong. Many states have lemon laws. I, personally, have gotten my money back from a private car purchase. The engine blew 1 week after I received it. If the seller states that the car is in good mechanical condition, you do have recourse.

    9. Re:Seems to me... by Anonymous Coward · · Score: 0

      Plus, even if you were buying them, you can disclaim all the implied warranties as long as you mention them by name or use other appropriate and conspicuous language. Now it is true that some objects cannot have their implied warranties disclaimed, but it would hardly apply with random code off the 'net. This is especially so given that most of the time you are dealing with snippets that you put in a larger project and is done so by someone educated in programming.

    10. Re:Seems to me... by Xyrus · · Score: 1

      Ladies and gentleman, this is Chewbacca...

      --
      ~X~
  24. in related news... by Anonymous Coward · · Score: 0

    artists paintings must provide attribution to the original artist.

  25. Byte me by Anonymous Coward · · Score: 0

    Hmmm. I'm not sure how to respond to this. Let's see. I'm going to go with "bite me".

  26. I always add urls to the comments by Anonymous Coward · · Score: 0

    just to help my OMFG, panic search the web to get this addled hack of a script out by deadline.

  27. 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

  28. 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.

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

      most of them are only partly functional anyway, or only tangentially related to what youre trying to solve, and so requires modification or adaption in order to be actually used. ie, its more like inspiration than actual duplication, and at that point, it's not really plagiarism anyway.

  29. Stackoverflow is a publisher, not an owner by Anonymous Coward · · Score: 0

    Unless and until the author of any code snippet transfers their copyrights to the website, the owner can do with their code as they please. They can release it under any license they want, or dedicate it to the public behind Stackoverflow as they please.

    If someone posts some code answering a question, arguably they've granted an implied license to use and copy that code for every person that reads that answer. Anyone can get to the answer without restriction, so it cannot be said the reader has consented to anything. The website owner/manager has the same kind of implied license to publish a code or an answer -- they have absolutely no rights to restrict further copying, use or distribution.

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

    [nt]

  31. Why would you not include a link in your comments? by Anonymous Coward · · Score: 0

    As a good habit, I try to always include a link to the stack overflow code. Granted, I rarely copy and tweak anything, but when I do I make sure to provide a link. I don't do it for attribution; I provide a link so that I can get back to my original thought process. Also, sometimes people update, comment or provide other solutions to scenarios that might be meaningful.

    Coding with the mindset of "for the next guy/girl" suggests to add a URL in your comments.

  32. Attribution as a substitute for comment by jtayon · · Score: 0

    In my free software project as much as in my job I did not waited for SO to tell me about the moral right
    and putting a link to the point.

    0) short enough IP quotes falls under the international conventional (Bern or Geneva pick wisely) and short citations are commonly accepted (like sampling in music) without reference to the author. And IP only protects originality. The only persons who think that IP are not strict enough are Creative Commons and some freetarded artists thinking that Sampling should be forbidden. I hate CC, I hate freetarded, so I would usually go against their will.

    1) HOWEVER, I consider myself quite a seasoned developer if I need stack overflow it means I had some difficulties so I often put a link because with attribution

    BECAUSE a link to the context worth 1thousands lines of comments and it helps to prevent saying : X hours lost here please update the counter after meaningless optimization

    2) I am french but not daft punk or air or any french touch coder: I like to "give back to Caesar what belongs to Caesar". I am a traditionalist that care about moral rights and ethic.

    I expect myself to do what I expect others to do with my code.

    In fact for my code, I am sometimes in WTFPL. But I don't mind people not being like me and overpermissive.

    The only stuff I hate is DON'T attribute to yourself the paternity of someone's else work. You can use my work, but if so, don't say it is yours...

    Like one of my job trying to patent my free software made on my spare time.

     

  33. 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 Anonymous Coward · · Score: 0

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

      Careful with those percentages. There are currently just shy of 35 million posts on SO. That means there's roughly only one third of a post that is original code, by your count.

    3. 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.

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

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

  35. Re: Practically speaking this amounts to guideline by Anonymous Coward · · Score: 0

    So it should all be legally ambiguous instead?

    I think we all know how problematic that is. It's not 1992 anymore.

  36. 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.
    1. Re:ownership by Anonymous Coward · · Score: 0

      You can't own algorithms.

    2. Re:ownership by Anonymous Coward · · Score: 0

      Assuming the code meets the threshold of originality, its author owns the code. The stackoverflow ToS require you to publish it under the CC-BY-SA license, which is a copyleft license that's not well suited for code. SO is trying to migrate to a permissive license so people can use it without worrying about the share-alike clause.

  37. 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.

  38. 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=-
  39. 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.

  40. 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: 0

      This is such a valid response. I really dislike how heavy handed moderation can be. You can write a literal research paper on the skeptics one and have it be rejected because it didn't fully answer the question or they didn't like the source.

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

      It's the good ol' Wikipedia Moderator Disorder. WMD's have been, in fact, plaguing the world for a over a century now. There has been several wars too where righteous governments have tried to rid oppressing regimes of their WMD's (because they want to be the only ones with WMD's).

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

      Then they grow old to be come HOA administrators.

    4. 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.

    5. Re:This is the least of the problems with SO. by Anonymous Coward · · Score: 0, Offtopic

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

      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. They all lashed out at me saying I was horribly wrong and the variable could be held in registers, among other things, and is only guaranteed to work as intended from the standpoint of a single 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.

      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. Many SO people don't understand anything, only have enough knowledge to superficially seem like they know what they're talking about. They are the poster children of Cargo Cult Programmers.

    6. 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.

    7. 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 /.
    8. Re:This is the least of the problems with SO. by Anonymous Coward · · Score: 0

      So the moderators of a highly-ranked, useful, and popular web site all disagree with you?

      It sounds like you're the idiot.

      Genius-level claims without genius-level results are laughable.

      Microsoft wrote .Net that way because it was right for their implementation. Every hardware platform and OS provides different means of handling concurrency and synchronization. Since you didn't even indicate which language and architecture you were arguing about---a key part of determining how sensible your claims are---you're probably wrong.

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

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

      That's what I was talking about.

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

      It's factual for any cpu with non-infinite registers and a compiler that uses stack-based method calling, and assuming multi-core wide cache-coherency.

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

      I incorrectly meant "semaphoreslim" in .Net parlance, but .Net does nearly all forms of locking primarily in userland, except for the ASM level primitives that build up the locks. "Semaphore" in the context of .Net is not the same as a "semaphore" like in Unix or OS design. It is just a helper class that could be recreated by the programmer if they wanted.

      It seems discussing "advanced" multi-threading topics that requires a understanding fundamentals of cache-coherency, compilers, and CPUs is bit much for most.

    10. 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.
    11. 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.

    12. 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.

    13. 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.

    14. 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.

    15. 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...

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

      Your rant would probably be more impressive if you didn't feel the need to dereference "microgenitalia" in every other sentence. It sounds like you have something of a complex regarding less than sufficient manhood. Channelling, perhaps?

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

      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.

      x86 cache coherency makes certain guarantees about upper-bounds on this. So yes, there is a guarantee, but like you mentioned, no guarantee for a specific time. This is why I explicitly mentioned cache-coherency. In my case, the upper-bound was good enough. It was a situation of lazily assigned values where lost/extra work was perfectly acceptable. All that I cared about is that it was eventually written to memory and that it was done atomically.

    18. Re:This is the least of the problems with SO. by Anonymous Coward · · Score: 0
      I had to read the rest of your post and it was all very informative. Of course I already knew all of that back in my teens. All simple stuff that everyone should know before programming.

      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

      In my defense, I did give a big warning on SO when I mentioned this thought of mine. I warned them it would only work on x86 and only so long as x86 does not change their memory model, which hasn't changed and would break all compiled older multi-threaded software. I don't see that happening.

      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.

      I take the opposite approach. If you're not thinking about them, you're doing it wrong. I don't program languages, I program CPUs. Languages are just syntactic sugar to shorthand the ASM I want to write. I rarely care about the exact ASM being created, but there are cases of bit manipulation and ILSpy

      I think people are mixing up what I am discussing with who I am. Everyone's gut reaction is "OMG, that guy who makes headaches for everyone else!". I don't do that. My track-record is nearly bugless programs for over a decade and I find stuff like multi-threading and distributed computing a natural fit for the way I think. I was writing my own lockless datastructures from scratch within days of reading about mutil-threading. It's simple yet hard. Very rewarding to me. I personally prefer to use builtin .Net datastructures, but I have been known to use my own in a few rare instances.

      Strangely enough, most of what I have written myself was already created back in the 70s and 80s. I just reinvented the wheel most of the time, but I learned a lot while doing it. The funny part is most of the stuff I created myself, I immediately thought of with virtually no effort when I looked at a problem, only to find out that not only was it solved decades ago, but it's considered advanced topics. How is some of this "advanced" when so obvious? I assume it's the sad state of programming. bug free multi-threading at a non-kernel level is easy. The hard part is weighing all of the pros and cons of the myriad of ways to solve an issue and making a subjective decision on which approach to take and hope it doesn't create much headache to support or extend .

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

      Oh hell, Wikipedia. Or Wiktionary for that matter. There are admins there running bots simply rolling back random IP (people not using a user account) contributions. And when they rolled back a legit edit and the IP reverts the roll back? Instant ban for ‘vandalism’. There is almost zero oversight, the admin's activity is often in effect vandalism itself, and the IP user has no recourse at all because he cannot even edit talk pages.
      I don't understand why these projects let such situations develop, it's bad for the project, the admins in question are toxic to the community... anyone with a grain of sense would kick them out and put proper oversight and recourse procedures in place.

  41. 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.

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

      You do not have to comply with the license for elements of the material in the public domain or where your use is permitted by an applicable exception or limitation.

      Posting code snippets on a public website (ie, one that does not require membership to view) certainly qualifies as public domain.

  42. Public Domain by Anonymous Coward · · Score: 0

    Question: How do you print something in C?
    Answer: // This code is released under the MIT license and the Public Domain. You may choose to use either license.
    puts( "Hello, world!" );

  43. That;s bullshit by Anonymous Coward · · Score: 0

    Is the community going to fork off if the problem isn't resolved?

  44. 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

  45. 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.
  46. God... by Anonymous Coward · · Score: 0

    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.
    If I gleam a good idea from SO, I put a link to the question in a comment in the source. This way I have a
    research point if I have to make an additional change or it doesn't do exactly what I expected.

    This doesn't sound onerous to me at all. I suspect people who are objecting are the ones who really don't
    understand the solution they have pasted, and are too embarrassed to admit their stupidity and ignorance,
    maybe hiding that fact from their peers and manager.

    CAP === ''

    BTW, when did /. start using Japanese CAPTCHAs?

    1. 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.

    2. 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.

    3. 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
    4. 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.
  47. Re:Citation is a form of professional respect by Anonymous Coward · · Score: 0

    I think it's not so much that nobody wants to attribute code, it's that this now puts a *huge* burden on software development companies if they want to publish software... have a million lines of code? Now you have to scour them to be sure it's not from stack overflow, and make sure it's been attributed. That's very costly, and likely never going to be right. But then that opens you up to legal issues if anyone used SO.. easiest thing to do? Ban SO. If every software house did that, SO might just die, and something else that worked the old way might appear out of the ashes.

  48. 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".

  49. 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.

  50. Ridiculous. by Anonymous Coward · · Score: 0

    When I post a few lines of code to SO, or anywhere else, in response to some question or other I don't expect any attribution.

    Mostly these things are very short and could be gleaned from the documentation of whatever system anyway.

    If I did want attribution it had better point to me not the medium I used to publish it.

    Yes I know, in the academic world of paper writing citing your sources is de rigueur. But really this is not original research we are talking about. Mostly it's just people having problems with technical details.

    Is SO trying to commit suicide?

  51. 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'
  52. 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
  53. 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").

    1. Re:It doesn't work that way, Stack Overflow... by Anonymous Coward · · Score: 0

      As the author, you're completely free to dual-license. This is no secret to the Stack Overflow community.

      But the license that exists for all posts is CC BY-SA. That's what any reader can assume, even without contacting you the author for alternate permission.

      Stack Overflow plans to change that default to an MIT-lite, for the code portions of posts only.

  54. I Usually Do That Anyway by Anonymous Coward · · Score: 0

    Not a change from SOP for me. I do it; no matter where I get the code.

    If I use the code to provide a pattern, and deviate significantly from it, I may not have much/any of the original code, but I generally attribute it anyway, as it helps to clarify the "why."

    In my opinion, "why" is the most important focus of code comments. Adding a URI to an extended discussion is a way to save a whole lot of typing.

  55. 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.
  56. Re: Fuck 'em by Anonymous Coward · · Score: 0

    Bad move, my friend.

    Leave the cutting off of the balls to the experts.

  57. CC-BY-SA vs. MIT by Anonymous Coward · · Score: 0

    It totally baffles me how many seem to freak out as others have pointed out, the license of Stack Overflow contributions is CC-BY-SA by default, which is a ton more restrictive. My first thought reading the headline was "Finally!"

    At worst interpretation, I think, CC-BY-SA is the GPL-of-the-CC-licenses, add one line of SO CC-BY-SA code to your commercial product and you're now obliged to give out everything under CC-BY-SA or be in breach of license
    (Hint: NEVER use share-alike licenses unless you explicitly want to f* someone)

    MIT is so much more suited, and more liberal, for small code snippets

  58. lunatics are running the asylum by Anonymous Coward · · Score: 0

    Plus, in any case, SO owes its very existence to poor technical documentation.

  59. The smell test. by westlake · · Score: 0

    swapping some of the decision logic to create something that looks original enough to pass a smell test when I cut/paste.

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

    1. 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".

    2. 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

  60. I already did but now.. by Anonymous Coward · · Score: 0

    Surely enough i already did that (linking to my source of information in my comments), if a bit of code originated from some online reference documentation.

    However, if i'm obliged to, i won't. Not because i don't want to, but because i don’t want my ass get stung by possible legal issues, now or later.

    So, as a consequence, developers will do exactly the opposite: avoid linking to them, as it's a legal wasp-nest. Instead they will just alter code to obfuscate the copying, or avoid using code from such site altogether.

    From their point of view i can understand too, but their point isn't mine. Eventually i am the one responsible for the code i produce. Not matters if this is some employer, or, say, some gpl'd code. I don't think they did realize the consequences this potentially has for devvers all around the globe. And that their examples are best seen as public documentation, which should be 'public domain'. Else their's no point in posting and having google index all those questions and answers in the first place.

  61. 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.

  62. 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.

  63. Nope by YoungManKlaus · · Score: 1

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

  64. 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.

  65. Re:Citation is a form of professional respect by Anonymous Coward · · Score: 0

    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.

    You must have unambiguous ownership or rights to all code in your codebase in order to sell it as a commercial product. These attributions need to (at least in theory) be reviewed, at great expense, by your legal team to ensure compliance with the terms under which they are licensed.

    Moreover, the vast hordes of low-skilled, cut-and-paste programmers, who are highly motivated to hide their incompetence, will carefully omit adding these attributions, turning each one into an invisible land mine. Each unattributed snippet represents potential lawsuits should the original author discover that you've violated the terms of the license and decide that they might be able to get some money out of you.

  66. 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.

  67. Re: Fuck 'em by Anonymous Coward · · Score: 0

    You mean those two raisins?

  68. 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.

  69. Implementation has been suspended by Anonymous Coward · · Score: 0

    SO has just announced it is suspended.

  70. 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.

    3. Re:Wow, an uprise about: law and moral ... by Anonymous Coward · · Score: 0

      blah blah blah... shut the fuck up

  71. So dumb it hurts by Anonymous Coward · · Score: 0

    I just lost considerable respect for the sad bastards behind this decision. Maybe they'll see the light...

  72. 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.

  73. I guess it's time for a SO replacement by Anonymous Coward · · Score: 0

    I think Stack Overflow currently has a lot of issues such as:
    - Tutorials / API / ressources question are off-topic since 2012 which goes against the "Don't reinvent the wheel" programming pattern.
    - A lack of consistency of moderation standards accross several tags (ie: what's not permissible in C/C++ questions isn't applied for .Net questions). Making it confusing if you ask questions/answers questions with different tags.
    - The lack of code features to support the moderation standards (ie: the site shouldn't let you accept an answer 10 minutes after you posted the question if the standard is 24h. The code shouldn't let new users edit their questions because they tend to ask 30 follow-up questions.

    Is it time for a new site with the pros of SO but without its problems?

  74. There is a solution to this by Anonymous Coward · · Score: 0

    "Installing this extension in your Chrome browser (or perhaps a lazy co-worker's...) will prevent you from selecting (and therefore also copy+pasting) any text from stackoverflow.com."

    https://chrome.google.com/webstore/detail/anti-copy-pasta/bpmjllnllinemdobdpbphdnoaanjpkkb?hl=en

    Its bypassable, but requires someone to care enough to bypass.

  75. 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
  76. Re:Citation is a form of professional respect by angel'o'sphere · · Score: 0

    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.

    --
    Cost free eBook I read (by iBook/Kobo/Amazon/ObookO/Gutenberg etc.): "The Green Odyssey" by Philip Jose Farmer.
  77. 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.

  78. 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.

  79. 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.

  80. Re:Citation is a form of professional respect by Anonymous Coward · · Score: 0

    The other strenuous objection is taking snippets of fair use level code written by someone else (say a framework or libraries author, written as examples) than the stack overflow contributor and having to glean through their comments to find the original source, which may object to their code being relicensed in the manner stack overflow is doing. Then having to doubly attribute the code. Another is when one writes a snippet that represents best practices. Say a range check routine that is so minimal that in order to write it there is one logical code structure in the given language that is obvious. Should that API, let alone the whole of the 3 to 5 lines (depending on style) to implement it be a separately

  81. 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.

  82. 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
  83. 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.

  84. 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.

  85. 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.

  86. 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...
  87. Can't copyright algorithims by Anonymous Coward · · Score: 0

    algorithims cannot be copyrighted

  88. Of Course I Will by Anonymous Coward · · Score: 0

    I am such a lazy and inadequate programmer, I get all my code snippets from StackOverflow. I can't write anything worth a damn.

  89. I already do this. by Anonymous Coward · · Score: 0

    I generally cite where it came from anyways, including SO. It is just common professional courtesy. And, it is useful later on if someone goes back to the article and finds it updated or rebuked.

  90. There is a hierarchy of use and citation by Anonymous Coward · · Score: 0

    Poor coders plagiarize
    Good coders cite
    Great coders steal

  91. 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.

  92. Re: Citation is a form of professional respect by Anonymous Coward · · Score: 0

    Nope. Trivial non copyrightable. Also altos cannot be copyrighted. Idiot sjw.

  93. 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.

  94. Re: Depends on whether the answer is trivial or no by Anonymous Coward · · Score: 0

    Algorithims are algorithms And are not protected by copyright nor patent you idiot.

  95. 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.

  96. 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.

  97. SO relicensing code, lawsuit in 3, 2, 1 by Anonymous Coward · · Score: 0

    Dis is gunna b gud.

  98. 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!

  99. 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.

  100. Re: Fuck 'em by Anonymous Coward · · Score: 0

    Nice one, bigot-boy.

  101. Enforcement by Anonymous Coward · · Score: 0

    Good luck enforcing this, LOL

    Copy/Paste is rampant, and I expect will continue, and damn well SHOULD continue. Efforts involved in re-inventing the wheel are wasted time. If I see a good library, or even piece of code, I'm going to copy it, without attribution, and NO ONE is going to stop me, and that's true EVEN if the product the code gets into is a commercial for-profit product.

    So na-na-na-na-na

  102. Missing the point. by Anonymous Coward · · Score: 0

    The only reason for this attribution requirement is so that Stack Overflow can have millions of back-links to its pages. Just consider what portion of that code may end up on GitHub or other open repositories....

  103. Get the Popcorn, People! by Anonymous Coward · · Score: 0

    I just felt a great disturbance in the Force, as if millions of indian programmers and milennials suddenly cried out in terror and were suddenly butthurt.

  104. 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.

  105. 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.

  106. Copyright has length restrictions. by Anonymous Coward · · Score: 0

    You can only legally copyright code that is 25 pages or longer anyways. Most of the paragraph sized snippets from StackOverflow don't qualify anyways. Carry on.

  107. Re:Citation is a form of professional respect by Anonymous Coward · · Score: 0

    Have a look at the code snippets posted on Stack Exchange. Most of them doesn't even qualify to be protected by copyright.

  108. Re: Citation is a form of professional respect by Anonymous Coward · · Score: 0

    please cite the books you have read to make a statement like this

  109. 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."

  110. Thank you, MRA loon by Anonymous Coward · · Score: 0

    Thank you for this ludicrous strawman. Thank you for an imbecilic argument. You have done more damage to your cause by being yourself than anyone else could possibly have done by reasoned argument.

    Children can tell the difference between hate and respect, between tolerance and bigotry. And it is the children and young people of today who will choose what the future world will look like. Thanks to you, they will choose correctly.

  111. Stopped using SO ages ago - nannying web-site by Anonymous Coward · · Score: 0

    I used to post all the time.

    Then the SO devs, who by the looks of it had too much free time, added more and more "features", each of which was unnecessary and annoying and often patronizing.

    The site in the end (and this was years ago) because *so* irritating to use.

    Then a mod did something - I remember not what now - to a post of mine, and I discovered there's nothing you can do. Community moderated means small-group-of-dictators moderated. You're fine, so long as you don't run into one of them.

    So I quit.

    As an aside, the reputation system on SO is absolutely and totally broken, and obviously so. It's been like that for years. Never been fixed, never will be.

    The problem is this : if I answer a complex question on a difficult and esoteric subject which takes years to learn, I might get one or two upvotes.

    If I tell a newbie how to print to stderr in python, I'll get fifty upvotes.

  112. Re:Citation is a form of professional respect by Anonymous Coward · · Score: 0

    No, you seriously don't; not at that scale. Unless you consider using the common notation for integrals as a de facto citation of the founders of the integral.

    Furthermore, on a university math test, you can, in principle, re-derive the same result as somebody else did without citing them *at all* so long as you perform the derivation correctly.

    Yes, you may be expected to annotate non-obvious identity substitutions that were previously proven elsewhere, but frequently you are expected to either memorize identities without citation, or bring a crib sheet of identities, or even get given some identities as part of the test.

    Textbooks don't even note who discovered many techniques for solving differential equations (in many cases they are unknown).

  113. You should have been doing it all along by Anonymous Coward · · Score: 0

    Who in their right mind would copy code from SO and not add a comment where it came from. That you had to go to SO to find a solution means you were uncertain and then copied something which kinda looked right. Do yourself and whoever comes after you a favor and comment code you pick up off the street. This is true for all code -- if a vendor gives you a code example, document it. If another team give you code demonstrating how to use their package, document it. You do no one a favor pretending you came up with that crazy piece of code on your own. What are you going to do when someone comes to you ('cause blame don't lie) asking how it works or if it works in a slightly different context, what are you going to say?

  114. 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.

  115. 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

  116. Re: Fuck 'em by Anonymous Coward · · Score: 0

    This is the best decision

  117. 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~
  118. 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.

  119. 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.

  120. Christian Bale from the Prestige by Anonymous Coward · · Score: 0

    Look at all the copycats/fake-it-till-you-make-its around here freaking out now that their 'coding skills' gained by stealing others' work are totally flipping out about this! No more stealing others' work and calling it "your own" for your kind boys. To quote Christian Bale from the film "The Prestige" at its termination "It takes nothing to steal another man's work" and I'll add to that amending it for this case "but it will be hard to continue your facade minus doing so" won't it? Yes.

  121. Does anyone copy paste from there? by Anonymous Coward · · Score: 0

    In the past whenever I have found it to be helpful, I don't copy paste but use their example to get the gist of how it is done. After all, the examples almost never do exactly what you want, how you want it done.

  122. 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.

  123. Re:Attribution is needed in source only, not licen by Anonymous Coward · · Score: 0

    The problem is that SO doesn't own all (any>?) of the code on their site, a lot of which is very basic textbook "hello world" type of things, and it's asinine for them to think they can slap some sort of license on it.

    It has nothing to do with what is good or bad code documentation, except in that it possibly tries to steamroll that debate with some sort of "my uncle is a lawyer and works for nintendo and do it my way or else..." argument that makes absolutely no legal sense.

  124. 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.

  125. 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.