Slashdot Mirror


How to Deal With Stolen Code?

greenrom writes "I work for a small company as a software developer. While investigating a bug in one of our products, I found source code on a website that was nearly identical to code used in our product. Even the comments were the same. It's obvious that a developer at our company found some useful code on the web and copied it. The original author didn't attach any particular license to the code. It's just 200 lines of code the author posted in a forum. Is it legitimate to use source code that's publicly available but doesn't fall under any particular license? If not, what's the best way to deal with this kind of situation? Since I'm now the only person working on this code, there's no practical way to report the situation confidentially. I'm new to the company, and the developer who copied the code is the project lead. Reporting him to management doesn't seem like a good career move. I could rewrite the copied code without reporting him, but since the product is very close to release it would be difficult to make a significant change without providing some justification."

799 comments

  1. Uhhhhh by blaster151 · · Score: 1, Insightful

    > Is it legitimate to use source code that's publicly available but doesn't fall under any particular license?

    Of course it is. This kind of thing happens all the time.

    Frankly, I'm glad you don't work for us. The fact that you would consider "rewriting" code that works well just because it was written by someone external to your company doesn't speak well for your sense of business priorities or usage of time.

    > The original author didn't attach any particular license to the code.

    I think that says it all.

    1. Re:Uhhhhh by Anonymous Coward · · Score: 0, Insightful

      This kind of thing happens all the time.

      So does downloading music.

      The original author didn't attach any particular license to the code.

      I think that says it all.


      I don't see any particular license on the mp3 files either.

    2. Re:Uhhhhh by show+me+altoids · · Score: 5, Informative

      If the author of the code posted it in a forum, I would personally call that implicit permission to use the code. Otherwise, why even post it? To show off his great coding ability? Every programmer (myself included) does this all the time and I have never heard of "Forum police" going after them. As to the legality of downloading it, if it is showing in your browser window, you have already downloaded it.

      --
      I feel sorry for people that don't drink, because when they get up in the morning, that's as good as they're gonna feel
    3. Re:Uhhhhh by caerwyn · · Score: 5, Insightful

      Ahh... technically speaking, this could be very bad advice in the business arena. While I'm not a lawyer, AFAIK code is copyrighted at the act of creation, and simply by making it available for viewing the author is not automatically giving up those rights. While it is highly unlikely that such a code snippet would cause problems down the road, it is not impossible that it could.

      Rewriting simply because it was written external to the company isn't a good thing. Rewriting because it was written external to the company and you're not certain of your company's license to legally make use of the code is an *entirely* different thing.

      The author not attaching a particular license to the code is not a blanket license to do with as you will. The author may have intended that, but I don't believe it's true in the legal sense.

      It might make more sense to go as you're suggesting, but given the mess that is current copyright law, a business ought to tread more carefully.

      --
      The ringing of the division bell has begun... -PF
    4. Re:Uhhhhh by morgan_greywolf · · Score: 5, Insightful

      Um, no. If you want to be technical, if there's no license attached to the code, then you can't use it. Copyright happens on an original work from the time it's published. There are no notice requirements. Without a license, you don't have permission to use the work.

      Now, in reality, the author posted it to a forum, probably with the intention of giving away the code. It would be entirely up to the author to sue and whether the author would sue or not -- well, I kinda doubt it.

      But, if I were you, OP, I'd check with your company's legal department and/or an attorney. Asking questions like this on Slashdot is likely to result in you getting a lot of misinformation.

    5. Re:Uhhhhh by Anonymous Coward · · Score: 1, Informative

      The problem is the question has two parts.

      1. Could this (legally) be a problem?

              Ans: Consult a lawyer to be sure. Everything in the US automatically has copyright attached. What the requirements are in such a case may not be well defined - if it is the question definitely needs a sound legal answer.

      2. Would this (practially) be a problem?

              Ans: Probably not, if the author posted it in a context where it was pretty clear he didn't have a concern with reuse (e.g. answering someone a question on how to do X). It's only a problem if someone bugs you about it, really. The legal part in #1 basically boils down to "if we were sued and we fought it out, would we win or lose?" From one standpoint, having to fight the lawsuit in the first place is already a loss...

    6. Re:Uhhhhh by danlyke · · Score: 4, Insightful

      If there's a question on the license, then I think it's totally reasonable for ScuttleMonkey to go to his project lead and say "I'm uncomfortable that we don't have an explicit license for this code, we need to contact the original author and obtain a license or an acknowledgement of a release to the public domain".

      I don't attach a license or explicit release to every piece of code I've posted to forums or newsgroups or what-have-you over the years, and I have had every expectation that many of those would get copied and pasted into applications without attribution. I'd prefer it if, when that stuff ended up inside an app, there were a note saying "here's the original source" because when I've stumbled across such code it's sometimes made it easier to figure out what it's supposed to be doing, but I don't expect it.

      If ScuttleMonkey has an indication that the original license is not something that allows incorporation into the code, then it's totally reasonable to escalate this one over the lead's head early on, but it sounds like this was something picked up off a site like CodeProject.com, where it's completely reasonable to assume that the intent of the poster was that this code be incorporated and adapted without further license terms.

    7. Re:Uhhhhh by mrjimorg · · Score: 1

      If someone posted it in a forum, it's unlikely that they just wrote it on the spot. He more likely copied it from somewhere where it was used (or at least compiled). The question is where did that author get it? You might want to check a couple of places such as related open source projects to make sure that it wasn't copied from open source, else you may be inadvertantly violating license agreements. After doing this, I'd think that you were probably ok - if ever in court you could recount the steps you took. Although, I'm not a lawyer, so take this advice with a grain of salt

    8. Re:Uhhhhh by IceCreamGuy · · Score: 4, Insightful

      The guy is asking a question because he's apparently new to the business and wants some sage advice from people like you who know what they're doing. People aren't born with this information, the only way to get it is either to screw up or ask somebody, and he decided that it was a good idea to ask first. Frankly (if that is your real name), however, I wouldn't put much weight into your vague response even if it wasn't condescending and derisive.

    9. Re:Uhhhhh by Selfbain · · Score: 4, Funny

      Is your hairstyle distinctively pointy by any chance?

      --
      Well, it has never been successfully tested.
    10. Re:Uhhhhh by Thyamine · · Score: 2, Insightful

      Yes, it's terrible to think that someone may consider ethical problems in a business situation. That perhaps he wants to do the right thing, needs some clarification, and doesn't want to get the company or himself in trouble.

      --
      I will shred my adversaries. Pull their eyes out just enough to turn them towards their mewing, mutilated faces. Illyria
    11. Re:Uhhhhh by alecu2 · · Score: 1

      It was not ScuttleMonkey who wrote the parent post. greenrom did it. ScuttleMonkey just posted it into slashdot's homepage.

    12. Re:Uhhhhh by Anonymous Coward · · Score: 1, Informative

      Note that short code segments have often been found to be uncopyrightable. It varies from jurisdiction to jurisdiction, but it's often difficult to claim copyright to less than ~ 10K LOC outside the USA.

    13. Re:Uhhhhh by AlexBirch · · Score: 1

      I could rewrite the copied code without reporting him
      IANAL but rewriting the code doesn't do anything. I remember Bruce Perens and others asking anyone who looked at the stolen MS code not to contribute to Open Source Software.

      The only bigger waste of time of rewriting the source code is reading /.

      I believe things are by default in the public domain, unless someone has Copyrighted it.

    14. Re:Uhhhhh by Jherico · · Score: 4, Informative
      >> Is it legitimate to use source code that's publicly available but doesn't fall under any particular license?

      >Of course it is. This kind of thing happens all the time.

      This may be completely commonplace, but it is certainly not legal. Simply posting something in a public place does NOT put it in the public domain, and contrary to what many people in this forum are saying, failing to attach a copyright notification to something does NOT place it in the public domain either. Assuming the author posted the information after 1976 and is covered by american law, then the copyright act of 1976 provides for automatic copyright protections, unless there is some notification which explicitly puts it under a license which permits it use.

      The original poster will probably never be called out if he leaves the situation as it stands he is still breaking the law. His options for avoiding this are to either find another copy of the code which is listed under a license, contact the author and ask for a license, or to rewrite the code.

      --

      Jherico

      What can the average user can do to ensure his security? "Nothing, you're screwed"

    15. Re:Uhhhhh by SheldonYoung · · Score: 4, Insightful

      > Is it legitimate to use source code that's publicly available but doesn't fall under any particular license?

      Of course it is. This kind of thing happens all the time. So does fraud, burglery and worse but it doesn't mean it's legal.

      Frankly, I'm glad you don't work for us. The fact that you would consider "rewriting" code that works well just because it was written by someone external to your company doesn't speak well for your sense of business priorities or usage of time. Nobody in their right mind would ever purchase your services or products again. They would not rewrite the code because it was created externally, they would rewrite it because legally and ethically they have not been given rights to use the code. I would not do business with anybody who would knowingly use code of dubious license.

      > The original author didn't attach any particular license to the code.

      I think that says it all. Yes, that means they have no license to the code and must ask for one. End of story.
    16. Re:Uhhhhh by mce · · Score: 4, Insightful

      >> The original author didn't attach any particular license to the code.
      > I think that says it all.

      Yes, but it does not say what you seem to imply. If the original author did not grant permission, you can not use the code (but you can implement the same algorithm yourself, at least as long as there is no patent preventing that). Note that the author does not have to include such a permission in every piece of code. It can be in an accompanying file, or it can even be in the Terms of Use of whatever bulletin board or website he used to publish it. But you have to check that.

      Granted, as long as you do not distribute the source, nobody will spot a 200 line piece of code and this kind of copying indeed happens all the time, but that does not make it legal in the strict sense of the word. I once wanted to use a small library that is floating about out there without any license/copyright statement. As it would have been possible for our customers to spot the use, I checked with our legal department and they were very firm: if I could get the author to explicitly approve it, it was OK, otherwise not. He did not reply, so I had to scrap the idea.

    17. Re:Uhhhhh by TechWolfy · · Score: 1

      He still took the time to weigh the aspects of what is the ethically correct thing to do. He is new and quite possibly not aware of all legal jargon that applies to all situations. Your attitude suggests that you put business before ethics, something that should be frowned upon.

      --
      TechWolfy A_A o O U
    18. Re:Uhhhhh by Suicyco · · Score: 0, Flamebait

      Absolutely right. This is programming. If programmers are constantly reinventing the wheel, they are idiots. What about standard libraries, etc?

      Code is meant to be reused. Thats why people put it out there.

      Man, if the original poster worked for me, he wouldn't for long. Thats the exact type of programmer that you DONT want, someone wasting precious time and resources rewriting code thats been written a million times before.

    19. Re:Uhhhhh by elcheesmo · · Score: 1

      The problem is that you don't know the origin of the code. The person who posted the code on the forum isn't guaranteed to be the author. He or she could have taken the code out of a book, another website, or decompiled it from a non-OSS library. And what if the code was taken from a GPLed project? Using external code of an unknown pedigree is always a bad idea.

    20. Re:Uhhhhh by linzeal · · Score: 1
      Do not listen to parent. It is stupid to use code without permission from the author if there is no license.

      First off, there is the legal issues that can arise when you publish your web page. If said code is just floating in the nether of the web, you have NO IDEA who actually wrote the code. It could be copied many times over. You might end up with a fortune 500 company breathing down your neck. A lot of code used internally on the company's private Intraweb turns up on the internet.

      Secondly, you do not know if this code is being used to troll for lawsuits. I can't reveal companies but a networking company I worked for got in this situation with a former developer who lured the company's lead developer to use code he had emailed him in a private email exchange a year after he left the company. 3 months later and they pulled all of the development computers in one feel swoop.

      My suggestion is this. Tell the fuckwad that stole the code that you know. Use it to blackmail him. That is how business works.

    21. Re:Uhhhhh by imgod2u · · Score: 1

      Materials found on the internet, where patents and copyrights are concerned, are not considered information in the public domain. Those who use it are therefore liable for patent/copyright infringement. That being said, the base amount of protection (automatic protection) provided by the current copyright and patent laws are fairly limited I think.

    22. Re:Uhhhhh by morgan_greywolf · · Score: 3, Interesting

      Note that short code segments have often been found to be uncopyrightable. It varies from jurisdiction to jurisdiction, but it's often difficult to claim copyright to less than ~ 10K LOC outside the USA. > 10,000 lines of code? You have to be kidding me. By that definition, there quite a few open source apps that aren't copyrightable.
    23. Re:Uhhhhh by Anonymous Coward · · Score: 0

      This isn't about reinventing the wheel. It is about using code you don't own. "Not reinventing the wheel" is NOT a valid excuse for using code without permission. This guy is exactly the person you DO want working for you, an ethical one. Oh, and by the way, YOU are the idiot.

    24. Re:Uhhhhh by TheWanderingHermit · · Score: 5, Insightful

      I'd also consider the possibility that you don't know the whole story. I found a version of some well known C code for Java and wanted to be sure, before I included it in a FOSS project, that even though it's based on a mathematical algorithm and that the code for that function in other languages has been published in many FOSS programs, that I could include the code in a FOSS project. In the long run, I tracked it down through several people and basically nobody cared what it was included in and I don't think anyone even wanted to bother to license it. In the long run I kept all the emails and notified the project owner. We did make mention of it in the comments, but didn't feel it appropriate to include any guess at licensing info.

      It's possible the project head already has permission to use it or may even know the programmer who posted the code to the forum. There could be any number of legit reasons why nothing was said about it in the code comments. It's even possible that post was made my the project leader under a different name.

      To me, this sounds like the OP is a quite young programmer who is looking for a chance to lead a moral crusade rather than get the job done. In my experience I avoid taking on employees like that because they seem more focused on making sure everyone else follows their ethics than in doing a good job on the task at hand.

    25. Re:Uhhhhh by JustShootMe · · Score: 1

      And I wouldn't work for you. Any boss that puts that little weight on ethics is probably cutting corners on other things that are at the very least not healthy for the company and at the very most could be detrimental to future job security.

      --
      For linux tips: http://www.linuxtipsblog.com
    26. Re:Uhhhhh by king-manic · · Score: 1

      Of course it is. This kind of thing happens all the time.

      Frankly, I'm glad you don't work for us. The fact that you would consider "rewriting" code that works well just because it was written by someone external to your company doesn't speak well for your sense of business priorities or usage of time. Remember a few stories back Sony got in trouble for you are proposing as the best alternative? Yeah it's not a very good idea. It may cause a endless litany of trouble. Remember Rambus, how they "seemed" to give away a lot of designs at a conference which was then implemented and then litigated? there is numerous cases of this. It often goes unnoticed but when it is noticed it's trouble. I'm sure many people are guilty of borrowing small code snippets but 200 lines might be pushing it. a 10 line function maybe just borrowing an algorithm and any resemblance merely coincidental but 200 lines would be noticed and more likely litigated successfully.
      --
      "There are more things in heaven and earth, Horatio, than are dreamt of in your philosophy."
    27. Re:Uhhhhh by superwiz · · Score: 1

      Now, in reality, the author posted it to a forum, probably with the intention of giving away the code. It would be entirely up to the author to sue and whether the author would sue or not -- well, I kinda doubt it. Are you sure now? Because the terms of service of the forum might claim copyright of all posts. In general, letters sent by post are considered property of the recipient. So a statement made for public consumption might be considered property of the public. Otherwise, what is to stop FDR family from claiming copyright on the phrase "we have nothing to fear by fear itself"? I am not a lawyer. Are you?
      --
      Any guest worker system is indistinguishable from indentured servitude.
    28. Re:Uhhhhh by wizardforce · · Score: 1

      jsut for the sake of argument, if this code were GPLed and posted without notice of this and your company incorporates it into their own proprietary software is it fair use of the code, after all you didn't know it was GPLed and it was posted in plain sight.

      --
      Sigs are too short to say anything truly profound so read the above post instead.
    29. Re:Uhhhhh by MaceyHW · · Score: 1

      Copyright attaches the moment you write something down, so there's no question that the original poster has a copyright in the code. Depending on the nature of the forum in which the code was posted and the context of the post itself, there may be an argument for an implied license, but that's a pretty hairy question.

    30. Re:Uhhhhh by Anonymous Coward · · Score: 4, Insightful

      You don't know that the poster had permission to post the code in the first place.

    31. Re:Uhhhhh by MBCook · · Score: 1

      I agree. Rewriting working code is often a bad idea. What you need to do is this (as I see it):

      1. Report it to management/legal
      2. See if you can get permission to use the code (chances are you will)
      3. Then rewrite

      Management may already know. Doing this makes you look above board (as you should be) and covers you just in case ("I reported it, and legal said it was OK").

      Since it was on a form (presumably to help someone else) I would be rather amazed if the author of the code didn't give you permission

      You don't always need permission. Obviously if the code is "how to set a window title in Java" there is only about one way to do that (ignore the various toolkit issues). That you can take, because it's exactly what anyone would have come up with. It's not original. Someone's fast way to sort a list or perform some other action you can't, because it's their work.

      --
      Comment forecast: Bits of genius surrounded by a sea of mediocrity.
    32. Re:Uhhhhh by morgan_greywolf · · Score: 1

      Mod parent up +5, Informative! Totally agree. I just thought of this right after making my last post -- you don't know where the code on the forum came from in the first place. The forum poster could even have pulled it out of a GPL app. That might be bad, depending on how your application is licensed.

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

      "It's not stealing, it's copyright infringement."

      Merely a deflection of course, it doesn't stop anyone here from doing it.

    34. Re:Uhhhhh by raddan · · Score: 1

      Are you serious? Here's a conscientious programmer-- he cares about what happens to the company if someone else finds this code. He's not saying that he wants to rat the company out to their competitors; he explicitly stated that he wanted to talk to management about this. Having people around like this is a good thing, and I'd consider him a model employee.

      Now it may turn out that the best thing for him to do is to keep his mouth shut. You and I obviously have very different takes on this, but I believe that it is important for him to have asked the question. Perhaps what he should do is ask management to clarify their position on unattributed code posted in forums. That would 1) solve the proble, 2) let management know that, hey, this guy cares, and, more importantly 3) it would let the lead programmer off the hook. Good career moves all around. If he goes about this diplomatically, and the lead programmer is vindictive-- well, this isn't a good place to work anyhow.

      I know that we love to pretend that all software design decisions should be made on technical merit, but the reality is that most of them are not. There are always external issues. That's life.

    35. Re:Uhhhhh by king-manic · · Score: 5, Insightful

      To me, this sounds like the OP is a quite young programmer who is looking for a chance to lead a moral crusade rather than get the job done. In my experience I avoid taking on employees like that because they seem more focused on making sure everyone else follows their ethics than in doing a good job on the task at hand. Or he's a young programmer who is afraid he's the scapegoat.
      --
      "There are more things in heaven and earth, Horatio, than are dreamt of in your philosophy."
    36. Re:Uhhhhh by LocalH · · Score: 1

      IANAL, but that is completely untrue. As I understand it, you're mostly just entitled to statutory and actual damages with a registration as opposed to just actual damages without one.

      --
      FC Closer
    37. Re:Uhhhhh by orkysoft · · Score: 1

      IANAL, but I do remember from /. Law School (comments on previous articles) that copyright registration is helpful for when disputes arise, because you have proof of registration.

      On Topic: I don't see why the asker cannot ask the forum poster if it is okay to use that code in a commercial application. The poster most likely posted the code to explain a concept to readers, and probably will not object.

      --

      I suffer from attention surplus disorder.
    38. Re:Uhhhhh by iamacat · · Score: 4, Funny
      Thanks, I always did want to make a buck from Cmdr Taco. The following code is implicitly copyrighted by me and I am not giving slashdot any permission to reproduce it:

      (BOOL)loginWithUsername: userName password: passwd {
          struct pam_conv pam_conv;
          pam_handle_t *pamh;
       
          pam_conv.conv = null_conv;
          pam_conv.appdata_ptr = (void *)[passwd UTF8String];
       
          int r = pam_start("sshd", [userName UTF8String], &pam_conv, &pamh);
          if (r != PAM_SUCCESS) {
              fputs("Unable to initialize PAM\n", stderr);
              return 1;
          }
          r = pam_authenticate(pamh, PAM_SILENT);
          pam_end(pamh, 0);
          return r == PAM_SUCCESS;
      }
    39. Re:Uhhhhh by richie2000 · · Score: 4, Informative

      I thought that although a work is automatically copyrighted at creation, the copyright is lost if the author chooses to publish the work without registering the copyright. That is not correct. If you put patents (even own publication can be prior art) and trademarks (needs to be defended, or they can be lost) in a blender, you might wind up with that situation. Copyright? No way. In fact, in most Berne-signatory states, it's more or less impossible to get rid of a copyright completely without first dying and then waiting 70 years. In some countries, even that isn't enough.
      --
      Money for nothing, pix for free
    40. Re:Uhhhhh by Rakishi · · Score: 2, Informative

      You have copyright on everything you create by default and you never lose it (unless you give it away). If you don't register it the result is that you simplu can't sue for quite as much as you could otherwise (although you can still sue).

      Note however that if you publish in a certain medium you may be providing certain implied license terms even if you explicitly claim otherwise. For example you can't put a notice on a website saying that all copying of it (outside strict fair use) is prohibited as to even read that notice it has to be copied (to the user's ram and browser cache if nothing else). Likewise usenet posts also would have an implied license to be distributed via usenet servers.

    41. Re:Uhhhhh by king-manic · · Score: 1

      Granted, as long as you do not distribute the source, nobody will spot a 200 line piece of code and this kind of copying indeed happens all the time, but that does not make it legal in the strict sense of the word. I once wanted to use a small library that is floating about out there without any license/copyright statement. As it would have been possible for our customers to spot the use, I checked with our legal department and they were very firm: if I could get the author to explicitly approve it, it was OK, otherwise not. He did not reply, so I had to scrap the idea. Unless off course you padded the CD with the contents of ram ala Zelda, or someone decompiles the bins and compares it to their code ala ICO, or internal leaks.
      --
      "There are more things in heaven and earth, Horatio, than are dreamt of in your philosophy."
    42. Re:Uhhhhh by djcinsb · · Score: 1

      Were it my code, I'd be a bit ticked off that it was used this way without accreditation. I agree that it's okay to use the code, since the author did not include a license restricting use (here I'm assuming there is no blanket "Submitted text belongs to submitter" statement at the web site -- and I doubt those would be enforceable anyway), but IMO it's really just good form to give credit to the source for anything that is non-trivial. Taking someone else's work and making it look like your own, even if only passively by leaving off a reference, is just a very poor practice. And it potentially makes maintenance more difficult, since if a problem arises in the code, the reference to the original source could prove quite useful in the debugging process.

      And yes, I do write code for a commercial venture, and I do practice what I preach here.

      --
      A signature always reveals a man's character - and sometimes even his name. -- Evan Esar
    43. Re:Uhhhhh by Anonymous Coward · · Score: 0

      // While it is highly unlikely that such a code snippet would cause problems down the road, it is not impossible that it could.
      Well it could be a lot more likely now, if the original author reads \.

    44. Re:Uhhhhh by thaylin · · Score: 1

      So where exactly do you work? I want to know becuase I would like to steer away from your products for fear of liability over you using nonlicensed work.

      --
      When you cant win, ad hominem.
    45. Re:Uhhhhh by duffbeer703 · · Score: 4, Insightful

      The only issue is that if the author wrote the code at work, it's not his to give away.

      Personally, I'd forget that that I found it.

      --
      Conformity is the jailer of freedom and enemy of growth. -JFK
    46. Re:Uhhhhh by show+me+altoids · · Score: 4, Insightful

      That's true, of course, but there is only so much you can do. Should the submitter do a search for all other code in the application and see if any of it is stolen? I do get your point, though, but this is such a common practice that I think most developers don't even think twice about doing it, which, I concede, doesn't make it automatically legal.

      --
      I feel sorry for people that don't drink, because when they get up in the morning, that's as good as they're gonna feel
    47. Re:Uhhhhh by modecx · · Score: 1

      I'm not a lawyer, either, but much of my business has stuff to do with this area of law, and I've consulted lawyers on these issues. Basically, if you register for the copyright on whatever pieces, and someone willfully breaks the copyright, they could be liable for statutory damages up to $100,000 per infraction, reimbursement of attorneys fees, etc if you go to court. Basically, it gives you more weight to throw around, not a bad thing for a small company/individual.

      If you do not register, you could only hope to win actual damages, and lost profits, which may not be worth pursuing. Registering may also have other benefits, like making it easier to get U.S. Customs to help block the import of knockoffs from other countries, in the event that starts happening.

      --
      Constitutional rights may be respected, repealed, or modified; but they must never be ignored.
    48. Re:Uhhhhh by davetd02 · · Score: 2, Informative

      > Otherwise, what is to stop FDR family from claiming copyright on the phrase "we have nothing to fear by fear itself"?

      About four things:

      First, it's too short to be a likely candidate for copyright protection. Copyright is about creative works, not short phrases. The most protection one can get for a short phrase is trademark, and that's only for use in connection with selling things. For example, if the FDR family sold bear repellent spray, they might be able to use "Nothing to fear but fear itself" as a trademarked slogan in connection with the sale of the bear spray.

      Second, back in FDR's day one had to actually register the copyright to get protection, and renew from time to time. The deadlines to register and renew have all long since passed. The quote comes from his inaugural address in 1933 (in reference to the Great Depression). See chart of copyright by year.

      Third, most use of the phrase would be "fair use." The concept of "fair use" is that I can't stop others from commenting about me or my work, or reporting on the news, or parodying my work. Simply saying "FDR said 'the only thing we have to fear is fear itself'" is definitely reporting on the news and matters of public concern. Quoting the speech in a biography is the same thing.

      And, further, it's possible that there's an exception in this case because the government does not claim copyright on government works. It's a hard sell--while he was a government official, it's not like his job was to produce maps or photos the same way that NASA releases its maps without copyright--but worht a shot.

      (IANAL, but studied IP law)

    49. Re:Uhhhhh by phoey · · Score: 2, Informative

      Copyright is the protection of the expression of an idea, not the idea itself. When you write that short story, or take that picture, your expression of the idea has certain protections when it is created. Registering the copyright is not a condition for protections of copyright.

      Copyright cannot be abandoned unless you explicitly release into public domain. Registration is only to put everyone on notice that you have created something and seek certain advantages from the government if someone takes your copyrighted work. It is easier to prove your case in court if you have registered with USPTO and are seeking to prevent someone from using your work (infringing). Essentially, registering bolsters your claim that the work is your expression and not the opposing parties.

    50. Re:Uhhhhh by maxwell+demon · · Score: 1

      Indeed, if you print 100 lines on a page, you'll fill a 100 page book with that code. I cannot imagine any jurisdiction with copyright where a whole book full of code couldn't be copyrighted.

      --
      The Tao of math: The numbers you can count are not the real numbers.
    51. Re:Uhhhhh by 99BottlesOfBeerInMyF · · Score: 2, Informative

      Are you sure now? Because the terms of service of the forum might claim copyright of all posts.

      They can claim all sorts of things, but that does not mean it will stand up in court. Even if the forum owns the copyright, that does not help the person who has not licensed it from anyone.

      In general, letters sent by post are considered property of the recipient.

      And books are considered the property of the purchaser, but that does not make them the copyright holder.

      So a statement made for public consumption might be considered property of the public.

      Nope, it is assumed all copyrighted material is for public consumption, since copyright law exists to promote publication. Try republishing a story from a large newspaper and see what happens.

      Otherwise, what is to stop FDR family from claiming copyright on the phrase "we have nothing to fear by fear itself"?

      Well, several things. First, that is not the exact words he used, but paraphrase. He said, "...the only thing we have to fear is fear itself." Second, it predates the copyright extension so it has entered the public domain by now. it was said in 1933 and the copyright expired in 1961. Third, Copyright law includes a large and somewhat vague doctrine called "Fair Use" which makes it legal to use parts of or entire works for certain purposes, subject to certain restrictions. Using a quote like this almost always fair use. Finally, Providing attribution, that is FDR said, "...the only thing we have to fear is fear itself..." is a fact, and facts are not copyrightable.

      check out the USCO site for more info.

      I am not a lawyer. Are you?

      Nope, but I can read and I'm not afraid to educate myself on issues that effect me.

    52. Re:Uhhhhh by mrsteveman1 · · Score: 1

      Posting code to get help with it, or show methods, etc, automatically means you have the right to use it for whatever you want? Are you kidding? You are trying to turn a situation that is almost purely a copyright issue, into one of complex reasoning and conjecture.

      Similarly, downloading something and using it in a commercial product are very different.

    53. Re:Uhhhhh by mazanoid · · Score: 1

      This is a generalized view of how many employers view their new hires.

      If you were my new hire, and you spent all your time zealously looking for flaws in others' work, it would probably indicate to me you had no clue how to do your own job. The fact you're looking up code on the internet when your job would quite possibly make me feel as if you didn't understand basic coding, and were an incorrect fit for a particular agency.

      However, if you have some grand moral conviction that is based in the rights of some original developer, or protecting the company's bottom line, you could just rewrite the code, and leave lots of room for buffer overflow attacks (sarcasm). As it's only 200 lines and its from a forum, chances are good that it's highly unoptimized clutter-code to perform an extremely basic function that could be written in fewer lines. That fact in itself will justify the revision and help keep you secure in your comfy dev chair. Unfortunately, it won't explain any gap in covering unfinished aspects of the program to either the underlying hardware architecture, or to the management above you.

    54. Re:Uhhhhh by Antique+Geekmeister · · Score: 1

      A mere 200 lines probably constitutes "fair use", which is built into copyright law. The guidelines are deliberately vague, but please do not cast all such snippets as blatantly illegal. Unless there's some interesting other issue such as a trade secret or patent, then the author is probably OK with such a snippet.

      Contacting the author would be polite, especially to encourage the author to put a license on the software that users could follow. And like your mother telling you to always keep both hands on your bicycle's steering wheel and wear a helmet, it's your corporate lawyer's job to follow every letter of the law, or to at least tell *you* to do so so that he is not liable for telling you it was legal. But it can get excessive, and this case sounds like the author should not be overly concerned about such a small code snippet.

    55. Re:Uhhhhh by thumostheos · · Score: 1

      I don't see how reporting it to management is a bad thing, other than it can create a hostile working environment. Why not go to the team lead and let him know? Perhaps it was a quick workaround in a prototype. Maybe he meant to re-code but has since forgotten since he is now the team lead. There's more than one angle on this whole thing. If the issue becomes confrontational between him and the lead, then take it to management, inform them of the situation and that it would be better for the company not to take the risk without the re-code. This is a molehill; let's not make it a mountain.

    56. Re:Uhhhhh by einhverfr · · Score: 2, Interesting

      IANAL, but I have had to deal with similar situations in open source projects.

      On one hand, I have found that people who post code fragments online generally intend for people to copy and adapt their works. However, obviously you don't want to rely on this norm for protection, even if it was provided specifically as sample code.

      The best option is to first make a good effort to contact the author of the code and express an interest in using the code. You may or may not want to discuss the whole situation with the author without feeling the situation out-- that might be an act of goodwill but it could also put your business more at risk. I would probably initially just state that you are interested in obtaining copyright permission to use this code in your application. See where that goes.

      If you cannot contact the author I would suggest rewriting the code to be on the safe side.

      Also note that there is a chance that you will get a response (like I have) stating something to the effect that "I don't know whether I even wrote the code anymore, but fwiw, go ahead." In that case, I would tend to avoid copying and pasting.

      --

      LedgerSMB: Open source Accounting/ERP
    57. Re:Uhhhhh by mrsteveman1 · · Score: 1

      I don't have any idea about the licensing in this case, but using code with an unclear license opens your business up to a lot of unwanted attention and possible legal action. Thats not a good thing even if you don't want ethical crusaders working for you.

    58. Re:Uhhhhh by aunchaki · · Score: 1

      >> The original author didn't attach any particular license to the code.
      >
      > I think that says it all.

      I'm not so sure it says it *all.* Aren't you assuming the poster is the author. What if he/she posted somebody else's code, which may be covered by a specific license?

    59. Re:Uhhhhh by Anonymous Coward · · Score: 0

      Note also that there may be a third (or fourth, etc.) source of this exact code snippet that predates the one this author discovered. In other words, the person who posted to the forum may not even himself have copyright for the code in question. And on and on.

      How do you know that someone who gives you a license to use "their" code is in fact the legal copyright holder of that code (i.e. did not themselves copy part of it from somewhere else)?

    60. Re:Uhhhhh by SQLGuru · · Score: 1

      I'm sure there's some overriding clause in that terms of service that you didn't read that says that /. has been given blanket permission to reproduce anything you post on /. But then, I didn't read it either, so I don't really know.

      Layne

    61. Re:Uhhhhh by Anonymous Coward · · Score: 1, Interesting

      Simply posting something in a public place does NOT put it in the public domain

      public domain: any work that is not copyright protected is considered to be in the "public domain", and includes materials created prior to 1922, works created for public use, government documents unless otherwise specified, and works whose copyright has expired. Would this not fall under the category of "works created for public use"?
    62. Re:Uhhhhh by Jherico · · Score: 1
      >Absolutely right. This is programming. If programmers are constantly reinventing the wheel, they are idiots. What about standard libraries, etc?

      Standard libraries can leave a lot to be desired. The original poster didn't even specify the language, so if you're dealing with something like C or C++ on Win32, then the standard libraries are woefully lacking. Programmers don't reinvent the wheel because they are idiots, at least not always. They do it because there isn't a publicly available implementation of the code in question for their platform and language or because the time it would take to implement the functionality is less than the time it would take to find such a library.

      >Code is meant to be reused. Thats why people put it out there.

      No, thats one reason people put it out there. But again, posting something in a public place doesn't make it public domain.

      >Man, if the original poster worked for me, he wouldn't for long. Thats the exact type of programmer that you DONT want, someone wasting precious time and resources rewriting code thats been written a million times before.

      Its the kind of programmer who exercises due diligence and ensures that you're not going to end up with a huge public relations disaster and or lawsuit if the copying ever came to light. I work for a major software developer and if one of our products ever went out and someone discovered it was using illegally copied code, it would have a major impact on the bottom line of both the company and myself (stock options), and if it was my copying, it would certainly cost me my job. This precious time and resources you call 'wasted' is what wiser men have referred to as 'an ounce of prevention'.

      --

      Jherico

      What can the average user can do to ensure his security? "Nothing, you're screwed"

    63. Re:Uhhhhh by Anonymous Coward · · Score: 0

      Wait, are you suggesting that new hires should just be let to run free without any supervision whatsoever? Looking over someone's code is a part of the development process and should be encouraged. With help from an experienced mentor they can become better programmers. And I would hope that a programmer who could accidentally torpedo a project by including GPL code (which is what might have happened here) gets supervision before the project is released.

      And I would highly doubt that the OP was just randomly running snippets of code into Google; if the programmer copied the original comments and all then it's quite likely that the style of the code or comments visibly changed at that point. Not everyone comments their code the same way and it's often quite easy to tell sections apart just by measuring how cryptic the comments are. Or, alternatively, the OP and the programmer both got stuck at the same difficult point and went to look up the solution.

      You seem to be the one with the inferiority complex if you're so worried that your supervisors are somehow less good at programming than you are. Get the chip off the shoulder.

    64. Re:Uhhhhh by andphi · · Score: 4, Funny

      If first dying and then waiting 70 years won't do it, will silver stakes or holy water?

      Or should we just start making Xerox copies of the zombie survival guide?

    65. Re:Uhhhhh by Anonymous Coward · · Score: 0

      >>Since I'm now the only person working on this code, there's no practical way to report the situation confidentially.
      Behold:
      http://www.cc.gatech.edu/~yael/ringsig-book.pdf
      This would allow you to leak that without reveling that you were anyone but a company person.

      "Since I'm now the only person working on this code"
      But of course they would immediately suspect you,

      couldn't prove it though.
      You'd also need the public keys of the employees.

    66. Re:Uhhhhh by einhverfr · · Score: 1

      THe original question was just under 200 lines of code. I think that would be long enough to qualify for protection. Also this is likely to vary from application to application.

      --

      LedgerSMB: Open source Accounting/ERP
    67. Re:Uhhhhh by SpaceLifeForm · · Score: 1

      The forum poster could also be his boss and also could be
      the writer of the code in question.

      So, it's possible there is no problem at all, but the
      real answer is to contact the forum poster.

      --
      You are being MICROattacked, from various angles, in a SOFT manner.
    68. Re:Uhhhhh by ceoyoyo · · Score: 1

      You gave Slashdot permission to reproduce it when you typed it into their submission box and hit submit.

      You did NOT give me permission to take it, claim it as my own, and sell it.

    69. Re:Uhhhhh by Anti_Climax · · Score: 2, Funny

      As a service to those of us that are less technically inclined, can you give me an idea of the conversion factor between LOC (lines of code) and LoC (Libraries of Congress)

      --
      Even people that believe in pre-destiny look both ways before crossing the street.
    70. Re:Uhhhhh by Jherico · · Score: 1

      I don't know if you're trying to be funny or trying to point out a perceived flaw in the 'automatically copyrighted' concept being discussed here, but since that code is demonstrably not original, you can't copyright it, and in fact you're violating copyright by reproducing it (yes, even though its publicly available elsewhere).

      --

      Jherico

      What can the average user can do to ensure his security? "Nothing, you're screwed"

    71. Re:Uhhhhh by ceoyoyo · · Score: 1

      I shudder whenever I hear sentences like "looking for a chance to lead a moral crusade rather than get the job done." Getting the job done can apply to all sorts of things (and has).

      Sure, there could be legitimate reasons why the code is copied from a web site. Even so, there should probably be a comment explaining where it came from, and under what circumstances.

      On the other side, there are lots of illegitimate reasons why the code is copied from a web site. The thing to do is find out the circumstances and document them.

    72. Re:Uhhhhh by hedwards · · Score: 2, Insightful

      The forum rules terms may claim that, but the likelihood of them being able to defend that in court is a very different manner.

      Chances are if they didn't pay to have the code snippets coded, or provide an incentive for doing so, that they wouldn't be able to claim the code as a work for hire.

      They would also have to deal with the fact that in most cases the code snippets came from somewhere else. While from time to time the code might be written on the fly for a specific question, in many cases the code is going to come from a project of some sort. Without an explicit agreement to transfer the rights, the forum shouldn't have any claim to copyright on the various snippets.

      More likely, the forum follows orthodoxy and states that the code and posts aren't their responsibility and that they have the right to host the posts. Which buys them some freedom from being sued for somebody else's content. Meaning that as long as they remove any infringing posts when given an appropriate take down notice, they aren't responsible for any infringement.

      But IANAL so YMMV.

    73. Re:Uhhhhh by purpledinoz · · Score: 1

      I second that. You're really just giving yourself and the other developer aggravation for no benefit. It's like if you burn a $20 bill. Everyone loses.

    74. Re:Uhhhhh by vidarh · · Score: 1
      I you'd worked for me, I'd have had someone review everything you'd ever written for copyright infringement. A creative work is automatically copyrighted on publication. If no license is posted with it, you have no rights other than fair use. It's that simple. Copying the code into your own application for commercial use is not fair use.

      To rephrase: The ONLY things giving you a right to copy is fair use or an explicit license. If your use falls outside fair use and you don't have an explicit license, you have infringed.

    75. Re:Uhhhhh by Anonymous Coward · · Score: 0

      It sounds as if the OP has not been hired to audit the code, but rather to support the existing code base and enhance as needed. Consequently he has no need to pursue this issue -- its not his problem, except he does need to take precautions. Chances are, if there are multiple other instances in the code that was 'borrowed' either with or without the requisite permission.

      My advice:
        create a copy of the source for future local reference
        create another copy of the code (encrypt as necessary).
        burn the encrypted copy to a CD
        stuff it in an envelope
        mail it to yourself (hence the encryption if the cd is lost)
        upon receipt, have the returned envelope notorized near the postmark -- DO NOT OPEN IT.
        stash it in a secure location

      The notary and the postmark provide duplicate verification of date and time.

      Now, if in the future there is an issue, you have a local copy for quick reference, and if challenged, you have a duplicate that has dual legally validated date and time stamped.

      OP can now continue at his job (again, not a code auditor), debugging, supporting, enhancing etc.

        --

    76. Re:Uhhhhh by Anonymous Coward · · Score: 0

      And yet... Fundamentally, no. It really is about reinventing the wheel, and the futility of that effort. "Code you don't own"? Pfft. You don't "own" code. This makes me laugh so much. "How to deal with stolen code?" the article asks. Hmm, I hope the dude you "stole" it from had backups otherwise he's pretty screwed isn't he! But oh I guess we have to ask for permission, eh. Yes massa! Right away massa! Because that's what it's actually all about, isn't it?

    77. Re:Uhhhhh by DM9290 · · Score: 0, Troll

      "To me, this sounds like the OP is a quite young programmer who is looking for a chance to lead a moral crusade rather than get the job done. In my experience I avoid taking on employees like that because they seem more focused on making sure everyone else follows their ethics than in doing a good job on the task at hand."

      Thats the problem with hiring ethical employees. They always seem to think that ethics are rules to live your life by, even at work!

      If you want to hire people with no scruples go ahead, but when they start stealing or embezzling from you, lying in their progress reports, and fudging their Q&A testing don't be surprised. You might encourage employees to put morality aside in favor of doing a "good job", but don't assume that they are only going to waive ethics when it favours their boss, its going to be in favour of themselves first and foremost; they'll screw you just like anyone else. It is also a sign that you are going to screw them over at every opportunity. So you can kiss employee moral (loyalty) goodbye.

      --
      No one has a right to their *own* opinion. They have a right to the TRUTH.
    78. Re:Uhhhhh by Jherico · · Score: 1

      Being 'found to be uncopyrightable' is something that only happens after you've spent a mountain on legal fees. If the code in question turns out to originate with a competing company with deep pockets, its probably worth the time and effort for them to litigate it even if they know they will lose in the end.

      --

      Jherico

      What can the average user can do to ensure his security? "Nothing, you're screwed"

    79. Re:Uhhhhh by Anonymous Coward · · Score: 0

      Who's PAM?

    80. Re:Uhhhhh by Anonymous Coward · · Score: 0

      Man, am I in trouble.

      I assumed that if someone posted code in a forum he/she was saying "Go for it."

      Since I have to use .NET my style of programing is google/cut/paste.

    81. Re:Uhhhhh by Java+Pimp · · Score: 1

      While your point may be absolutely 100% correct, the social norm on public forums such as Usenet is typically a free exchange of information. If that were not the case, comp.lang.*, comp.os.* and others would never have been very useful. So while Joe Blogger might not want you to copy his code from his ASP.Net tutorial (blech!), I would expect my answer to a call for help in comp.lang.c be used, poked, prodded and polished by anyone who finds it useful.

      The social norm in places like Usenet seems to provide an implicit non-exclusive license otherwise we would have been seeing copyright lawsuits flying since the early '80s.

      --
      Ascalante: Your bride is over 3,000 years old.
      Kull: She told me she was 19!
    82. Re:Uhhhhh by superwiz · · Score: 1

      The forum rules terms may claim that, but the likelihood of them being able to defend that in court is a very different manner. I don't think they would claim it is work for hire. I think the rules would claim that by posting it here, you give us the right to copy it. Without such a claim, the poster still owns the copyright and the forum can't even put it up on their own website -- thus defeating the whole point of a forum.
      --
      Any guest worker system is indistinguishable from indentured servitude.
    83. Re:Uhhhhh by andreyw · · Score: 1

      Yes. Seriously - tempest in a teacup. Public forum = public domain.

    84. Re:Uhhhhh by SnoopJeDi · · Score: 4, Insightful

      I don't see any particular license on the mp3 files either.


      You don't see a license attached to a bootlegged DVD or game, either. Because the license was attached to the ORIGINAL material, and violated in the distribution of the mp3. As several people have brought up, there's a possibility that this code was taken from something that was licensed, and given away as implicitly free.

      Regarding the OP, I'm siding with the "forget it and leave it be" camp. If you don't make a fuss, the only person that could get in potential trouble if it turned out to be rotten would be the guy who wrote it. There's no assumed responsibility on you to check everybody else's code for licensing issues, and nobody could prove that you'd made this discovery, so you could feign ignorance. Well, unless a vigilante Slashdotter tracks you down and brings the law down on you. You might want to consider hiding.

      Unless you've got some ENORMOUS ethical battle to fight on this particular issue, ignore it. Or rewrite the code on your own time to keep the project on-schedule.
    85. Re:Uhhhhh by vux984 · · Score: 2, Interesting

      The fact you're looking up code on the internet when your job would quite possibly make me feel as if you didn't understand basic coding, and were an incorrect fit for a particular agency.

      I consider myself a pretty good coder, but when I recently was tasked with writing a wrapper to run a shell command and capture stdout, stderr, and redirect a file into stdin. I wasn't sure where to really start...

      This MSDN article (which I found via google) went a long way towards covering the topic:

      http://support.microsoft.com/kb/190351

      And that sample code proved invaluable. It easily saved me several hours. Code like that is very domain specific, and unless you've spent a lot of time around pipes and create process win32, it doesn't matter how good you are at understanding basic coding, or even advanced coding.

      I'd managed to write a basic version of what I wanted using ANSI C's popen but was running into popen's limitations (like the dos box window flashing open). From reading I knew that CreateProcess in the win32 api gave me the control I needed to suppress the window, and this example REALLY helped me out.

    86. Re:Uhhhhh by Wog · · Score: 1

      Actually, if you burn a $20 bill, everyone but you wins.

      The removal of that cash from the economy increases the buying power of all the other dollars.

    87. Re:Uhhhhh by Jherico · · Score: 2, Insightful
      >His options for avoiding this are to either find another copy of the code which is listed under a license, contact the author and ask for a license, or to rewrite the code.

      I've actually left out a lot of caveats here, and IANAL, but most of the caveats are things that only get settled after litigation, which is something you want to avoid. People have replied to me talking about things like 'works created for public use' or talking about how anything in comp.* on usenet is essentially meant to be used. Neither of these are actually strong legal arguments, nor would a judge accept 'well no one has sued anyone over use of code from this source before' as a valid defense. This kind of thinking is hopelessly naive. In point of fact, companies which have used source code under the GPL and failed to follow the terms of that license have run into hot water numerous times before and the GPL is a much less restrictive license than 'no license at all'. My point is that if the OP wants to be in the clear (i.e. no gray areas that might involve litigation down the road, even litigation his employer is likely to win) then he basically has the above listed options.

      --

      Jherico

      What can the average user can do to ensure his security? "Nothing, you're screwed"

    88. Re:Uhhhhh by Jerry+Coffin · · Score: 2, Interesting

      A mere 200 lines probably constitutes "fair use", which is built into copyright law.

      I doubt it. Fair use means convincing a court that the use you're making of the material is really fair. In many cases, that means writing something that's sufficiently different that the court believes you're not really competing directly with the original author -- for example, a book review that quotes a few lines from a book isn't likely to be used as a substitute for buying the original story. Quoting a few particularly telling lines can give a good idea of the book's topic and style, so doing so will generally be considered fair use. This case seems to be almost entirely different however -- it's not writing something new or original about that code, but simply using it as it was originally intended. Even when courts do look at the amount copied, they rarely look exclusively at just the raw amount involved -- they frequently look at both the percentage of the original that was copied, and the percentage that the copied material constitutes of the final work in which it is copied. If I copy 200 lines from War and Peace, it would generally be easier to justify than if the 200 lines being copied were virtually 100% of the original (which sounds like it might easily be the case here). Likewise, if I write a long book and copy one-liners from here and there as titles to chapters and such, it's easier to justify than if all I've done is paste in a single large quote from somewhere, and that's all I'm publishing.

      Even though I doubt this would qualify as fair use, publishing exactly the same code under other circumstances might well be fair use. For example, if I was writing a book on coding style, and included all 200 lines of this snippet as an example, and wrote a line-by-line analysis of how it was written, that would almost certainly improve the chances of its being justified as fair use.

      --
      The universe is a figment of its own imagination.
    89. Re:Uhhhhh by morgan_greywolf · · Score: 1

      Who may not even remember posting the code in question and may be completely uncontactable. Let's say the code was 5 years old. Do you remember every piece of code you posted in to all the forums you've participated in in the last 5 years? Have you used the same e-mail address in forums for the last 5 years? How many e-mail addresses have you never bothered checking in the last 5 years?

    90. Re:Uhhhhh by HTH+NE1 · · Score: 1

      And I would highly doubt that the OP was just randomly running snippets of code into Google; And why not, when Google provides such a tool?
      --
      Oh, say does that Star-Spangled Banner entwine / The myrtle of Venus with Bacchus's vine?
    91. Re:Uhhhhh by LiENUS · · Score: 1

      You could even go so far as to argue that slashdot isn't reproducing it, he is. Slashdot is just the medium he chose to reproduce the code into. hence if the code is really copyrighted by microsoft it isnt slashdot they would sue rather him.

    92. Re:Uhhhhh by E++99 · · Score: 1

      Um, no. If you want to be technical, if there's no license attached to the code, then you can't use it. Copyright happens on an original work from the time it's published. There are no notice requirements. Without a license, you don't have permission to use the work.

      That's like saying if there's no license attached to a book, you can't read it. Copyright law prohibits you from copying and distributing it, not using it! One could claim you're still making an unauthorized copy, but you made a copy simply by downloading the web page! The copyright owner can not limit the use of an authorized copy, only a patent owner can do that. The downloaded web page, cached in to a file by your browser, is either an authorized copy or not. If it's not, it's a violation by the owner of the web site. If it is, there is nothing to prevent you from running your authorized copy of that code through a compiler without making any additional copies (unless there is a patent, of course). Regardless of that, because of the nature of the work, and because of the lack of an effect on the potential market for the potential work, it should fall under fair use anyway.
    93. Re:Uhhhhh by superwiz · · Score: 1

      I'll just go ahead an smack myself over the head for this one. The grandparent was right, of course. If the forum states that the copyright is with the posters, they can make a statement to the effect such and such said the following "...". Which is what a forum is.

      --
      Any guest worker system is indistinguishable from indentured servitude.
    94. Re:Uhhhhh by Anonymous Coward · · Score: 0

      That depends on any agreement he has with the company.

      My employer doesn't care what I do with code written on company time. (Ownership knows that my dept is entirely based on Free Software, and knows that Karma is good. And they know that patches submitted mean I don't have to repatch every new release.)

    95. Re:Uhhhhh by greedyturtle · · Score: 1

      I think I saw that code posted somewhere else on the net...

    96. Re:Uhhhhh by Anonymous Coward · · Score: 0

      You are uninformed and giving bad advice which you are clearly unqualified to offer.

      Copyright is implied and automatic in many countries including the USA, it doesn't need an explicit license, all rights are automatically retained.

      Now if some guy posts it in a forum he's probably intending to give it away but it really depends what he's said and additional details of the law. You CANNOT just use any code you find. It's almost always owned by someone.

    97. Re:Uhhhhh by gnasher719 · · Score: 1

      Here is how it works at my company: No code is included unless a lawyer has checked the license and has checked that the source of the code has the rights to it. So using code that doesn't come with a license is a definite no. Using code that was published with a note "public domain, feel free to use it" is a no until the author has been contacted and confirmed that he has the copyrights. For 200 lines of code, it is obviously easier for me to rewrite it than to get the lawyers involved.

    98. Re:Uhhhhh by ceoyoyo · · Score: 1

      Mmmm... that's a bit of a stretch. Slashdot does reproduce his code anytime someone does a page load.

      Note at the bottom of the page though:

      "All trademarks and copyrights on this page are owned by their respective owners. Comments are owned by the Poster. The Rest © 1997-2007 SourceForge, Inc."

      (also note proper quotation and attribution -- even if you're legally entitled to the code, you still shouldn't misrepresent it as your own creation)

    99. Re:Uhhhhh by Anonymous Coward · · Score: 0

      "You don't find the grail, the grail finds you."

      That should most definetly read "In soviet russia the grail finds you!" :)

    100. Re:Uhhhhh by maxwell+demon · · Score: 3, Insightful

      // While it is highly unlikely that such a code snippet would cause problems down the road, it is not impossible that it could.
      Well it could be a lot more likely now, if the original author reads \. I don't think reading \. will have any impact on any problems the code snippet may or may not cause :-)
      --
      The Tao of math: The numbers you can count are not the real numbers.
    101. Re:Uhhhhh by Catskul · · Score: 4, Insightful

      You *never* know if someone has permission to distribute code, even if they sell it to you.

      --

      Im not here now... Im out KILLING pepperoni
    102. Re:Uhhhhh by Anonymous Coward · · Score: 0

      By that definition, there quite a few open source apps that aren't copyrightable.

      Indeed (and same goes for closed source apps, dunno why you single out open source here). Surprise!

      You can try to claim copyright, most people might accept it. It's just that "insignificance" may be a fair-dealing (a bit like "fair use" in UK/Ireland) defense for anyone you do try to sue for infringement.

      The 10K LOC figure is based on typical C++ and COBOL apps, which are both notoriously long-winded languages. But it would always have to be decided on a case-by-case basis (making only the lawyers richer, of course), you couldn't just assume a 9999 line lisp program, say, was insignificant and uncopyrightable. Well, you could, but you better be able to explain why if you get sued.

    103. Re:Uhhhhh by gnasher719 · · Score: 1

      If the author of the code posted it in a forum, I would personally call that implicit permission to use the code. Otherwise, why even post it? To show off his great coding ability? Every programmer (myself included) does this all the time and I have never heard of "Forum police" going after them. As to the legality of downloading it, if it is showing in your browser window, you have already downloaded it. How do you know it is the author who posted it? Even if it is the author, how do you know he is the copyright holder?
    104. Re:Uhhhhh by Anonymous Coward · · Score: 0

      She must have been the original coder?

    105. Re:Uhhhhh by Anonymous Coward · · Score: 0

      I'm led to believe it's cooking spray, but then again she sounds hot. Pics or GTFO.

    106. Re:Uhhhhh by maxwell+demon · · Score: 1
      Well I just typed

      Lines of Code in Libraries of Congress
      into Google, and the first link was named "1000 Lines of Code". Therefore I conclude the units LoC and KLOC are the same.
      --
      The Tao of math: The numbers you can count are not the real numbers.
    107. Re:Uhhhhh by Anonymous Coward · · Score: 0

      You are a pompous assbag.

      In a day when seemingly trivial actions cause huge lawsuits, expressing your happiness that he doesn't work for you makes you an assbag.

      Lawsuits over this kind of shit happen all the time. The cost of such litigation is staggering. This guy is only trying to cover his ass and the company's ass.

      You should be lucky to have such loyal employees.

    108. Re:Uhhhhh by ctzan · · Score: 1

      Mod parent up.
      <p>
      As long as I didn't give away some of my rights
      with a public license (GPL or BSD) or doing everything as
      a work for hire (for an employer), I retain absolutely
      all the rights to my creation, and nobody can legally
      use it in any way, or distribute it further without my permission.
      <p>
      There's no need to stick any copyright notice + list of rights & obigations or
      other shit. If I do stick one is to let people freely use
      it under some conditions, not to limit its use.

    109. Re:Uhhhhh by fruitbane · · Score: 1

      To me, this sounds like the OP is a quite young programmer who is looking for a chance to lead a moral crusade rather than get the job done. In my experience I avoid taking on employees like that because they seem more focused on making sure everyone else follows their ethics than in doing a good job on the task at hand. It does sound like either an inexperienced programmer or, more simply, someone who's new to this particular situation. The phrasing of the post does not at all suggest to me the OP is on some kind of moral crusade. It sounds like they are trying to develop their sense of ethics and want some guidance. And while ethics, like morals, can vary from person to person, the law of a locale is usually less flexible.

      If a member of a programming team has some concerns about code legality it should absolutely be hashed out and not simply ignored. Older and/or more experience coders don't necessarily have any better grip on the law, just on code.
    110. Re:Uhhhhh by slazzy · · Score: 1

      As long as they use some kind of version control system, there should be a record of who first introduced the code, and the time and date. Since he's very new, chances are the code was added before he worked there which should keep him out of trouble. If he's really worried about legal problems for himself, it might be good to backup some of that information, and document his findings somewhere.

      --
      Website Just Down For Me? Find out
    111. Re:Uhhhhh by Anonymous Coward · · Score: 0

      That is not correct. If you put patents (even own publication can be prior art) and trademarks (needs to be defended, or they can be lost) in a blender, you might wind up with that situation. Copyright? No way. In fact, in most Berne-signatory states, it's more or less impossible to get rid of a copyright completely without first dying and then waiting 70 years. In some countries, even that isn't enough.

      IANAL but This is true, about copyright. I record and produce music as well as visual art, and have been to the entertainment attorney's office to go over this stuff. A copyright is an inherent privilege that you enjoy as soon as you "put something out" and it applies in all 50 states and the U.S. Territories.

      However, unless you register the copyright with the copyright office, in the event of infringement, you need to fight them in every state/territory individually and figure out the damages for each state. A verdict from one state is non-binding in any other and you can only sue for damages that occur in the state the court case is happening.

      By registering the copyright with the copyright office, you are buying the right to fight it in federal court with one case and avoid the whole mess of litigation in all 50 states.

      Alternately, if the infringer has sense they'll settle, but it's not worth the risk when compared to the cost of simply copyrighting something.

      The license for the software is a different matter. It's possible to have GPL code, but even this is also copywritten so that only the author may authorize any distribution method. Most GPL copyright notices give you permission to freely distribute the code as long as the copyright notice is maintained. As well, if you are releasing GPL code, the copyright notice must be GPL compatible for the code to be validly under the GPL. If it isn't it invalidates the code's GPL and the code's GPL status. I have no idea what the implications are for the user...

      As long as the guy isn't somehow distributing the code for others to use, chances are there are no legal issues. If he puts the code up for download on the site and distributes it for other people to use, that's not fair use and he could get sued unless the code is GPL.

      The license tells you what, how, and where you can use the code.
      Copyright restricts who you can give it to and the copyright notice tells you who invented and wrote the code, and the author generally outlines how he wants the code distributed here.

      Aside from that, good artists innovate. Great artists steal. Same for developers. If there's a job I need done, and there's an open source project that does this job well, I'm using it if it's really GPL. Do you waste 80 hours of company time to reinvent the wheel? No you don't. If you do you won't be working in the field very successfully because everyone else will be coding circles around you and getting their projects done a lot faster.

      You are using other people's code for everything. PHP? someone else wrote the language. Still others wrote the system libraries that PHP taps to provide all that functionality. It didn't just appear one day XD. If you can justify using Perl or PHP to write code, how can you not justify using GPL libraries written in Perl and PHP? It's all the same license.

      To the OP:
      I suggest you ask the developer. He may have been the one that posted the code on the forum in the first place. He may have posted it before he started working there and decided to use it. If this code is not specifically GPL or LGPL, and he's not the one that posted it, you should suggest that you write your own library and replace it before something bad happens. You can get sued if the code is not FOSS and there's no specific permission given to use it.

      It's always better to work something like this out among yourselves than it is to report it to management. Going straight to management makes you what some of us like to call a "rat". The reality of the si

    112. Re:Uhhhhh by jasen666 · · Score: 1

      If someone posted it in a forum, it's unlikely that they just wrote it on the spot.

      Why make that assumption? I've written tons of small code examples on the spot on forums before. I've also copy/pasted out of the IDE for a more complex example I wrote that required more debug tinkering.
      I'll go as far to say that someone who posts their own code on the internet, as an example, or to help someone would have to be daft to expect it won't be copied and used in some manner, by someone. If you're that concerned about keeping a couple hundred lines of code private, don't post it.

    113. Re:Uhhhhh by 3dr · · Score: 1
      I don't have any idea about the licensing in this case, but using code with an unclear license opens your business up to a lot of unwanted attention and possible legal action. Thats not a good thing even if you don't want ethical crusaders working for you.

      That's just it, using code with unclear permissions is just a bad idea IMO. It takes such a small effort to ask permission, and if not granted, not too much time to rewrite the 200 lines from the original example.

      I've been in a similar situation. I used to do a *lot* of Mac OS hacking from about 1990-1994, and shared my code on Usenet, got it published on CD-ROM collections, etc. Most of the comments I received was just banter from other developers, some great code improvements, etc. A few years later, probably 97 or so, I received a frantic email from a company that used some of my custom UI control code in a just-about-released commercial product. On the one hand, since they admitted this, I had them by the short hairs -- if I wanted to. My intention in sharing the code, however, was to just share the code. I told them to use it if they wanted, I provided it as-is without support, and I require a copy of their product, which I did receive a couple months later.

      My point is, code snippets posted in developer forums are intended to demonstrate an idea, and I believe the expectation is for others to use the code. (Especially if someone asks how to do something and another posts code to do so.) But at the same time, it's usually fairly easy to confirm with the author the intention, and to get explicit permission. What if that 200 lines of code was 2000 lines of fairly complicated computation? You should probably give the author *some* compensation since the code was so useful or shortened your development time.

    114. Re:Uhhhhh by Doctor+Faustus · · Score: 1

      10,000 lines of code? You have to be kidding me. By that definition, there quite a few open source apps that aren't copyrightable.
      That does seem pretty high. I spent most of a full-time job for five years on a program for creating telephone bills. If you don't count the PostScript library that went with the early versions or the XSL library that went with the later ones, it never got bigger than about 8,500 lines.

    115. Re:Uhhhhh by mabhatter654 · · Score: 1

      will the copyright lawyers outlive the zombies?

      or will there zombie lawyers! to continue copyright... man this would have made a good episode of Angel.

    116. Re:Uhhhhh by richlv · · Score: 1

      command > stdout.txt 2> stderr.txt ? ;>

      --
      Rich
    117. Re:Uhhhhh by noidentity · · Score: 1

      Just to add another important twist, how do you know the person who posted it to the forum is the author (copyright holder)? It really is a good idea to be sure you have a license for any code you use. If it's very little code, just rewrite it "in your own words", since the copyright applies to the expression of the algorithm, not the algorithm itself (of course if it's patented, then you can't use even the algorithm without a license).

    118. Re:Uhhhhh by Anonymous Coward · · Score: 0

      We need a new moderation type: INCORRECT. You are a misleading fool.

    119. Re:Uhhhhh by Mr.+Slippery · · Score: 1

      I retain absolutely all the rights to my creation, and nobody can legally use it in any way, or distribute it further without my permission.

      No, sorry. We have fair use rights - such as the right to copy an except from your post that I just exercised.

      Copying a code snippet from a book or posting, that does not have any further restrictions on it, almost certainly falls under fair use.

      --
      Tom Swiss | the infamous tms | my blog
      You cannot wash away blood with blood
    120. Re:Uhhhhh by Anonymous Coward · · Score: 0

      Wow, what a great sense of character. Outstanding example of honor and doing what is right.

      It is people like you that have made this world into the money-grubbing hell-hole it is today. Shame on you. You need to look in the mirror and reevaluate yourself as a human being.

    121. Re:Uhhhhh by Alzheimers · · Score: 2, Funny

      Or should we just start making Xerox copies of the zombie survival guide?

      They're called photocopies, you trademark infringer!

    122. Re:Uhhhhh by mqduck · · Score: 1

      Frankly, I'm glad you don't work for us. The fact that you would consider "rewriting" code that works well just because it was written by someone external to your company doesn't speak well for your sense of business priorities or usage of time. Don't be a dick. The guy was asking about a legal matter. Frankly, I'm glad I don't work for you.
      --
      Property is theft.
    123. Re:Uhhhhh by orkysoft · · Score: 1

      Thank you, Captain Obvious!

      --

      I suffer from attention surplus disorder.
    124. Re:Uhhhhh by ultranova · · Score: 1

      Is it legitimate to use source code that's publicly available but doesn't fall under any particular license?

      Of course it is. This kind of thing happens all the time.

      I think he meant "legal". And no, of course it isn't; the code is copyrighted, so it is illegal to distribute it in the original or compiled version as part of your program without a license to do so from the copyright holder.

      Of course the whole thing is utterly ridiculous, but that's how the law goes.

      Frankly, I'm glad you don't work for us. The fact that you would consider "rewriting" code that works well just because it was written by someone external to your company doesn't speak well for your sense of business priorities or usage of time.

      That's fine and good, just as long as you remember that the same applies to the finished program when it's floating around the P2P networks.

      The original author didn't attach any particular license to the code.

      I think that says it all.

      True. It means that you have no license whatsoever to redistribute the code, in original or compiled form, and are guilty of copyright violation if you do.

      Disclaimer: I am not a lawyer, and this is not legal advice.

      --

      Forget magic. Any technology distinguishable from divine power is insufficiently advanced.

    125. Re:Uhhhhh by yogibeaty · · Score: 1

      Oh, so there's only and exactly one set of morals and ethics, and if you don't agree, you'll start stealing or embezzeling? Glad you don't work for me.

    126. Re:Uhhhhh by surgen · · Score: 1

      >Frankly, I'm glad you don't work for us. Yeah, who wants someone that wants to make sure that they are using code they are allowed to? Or do you just want to put GPL code in your products and hope none of the developers ever say anything about it? >The fact that you would consider "rewriting" code that works well just because it was written by someone external to your company doesn't speak well for your sense of business priorities or usage of time. Thats not the only reason, you seem to have left out the part where he was worried about the legal ramifications the company might face.

    127. Re:Uhhhhh by Anonymous Coward · · Score: 0

      Public domain has no copyright. He posted it publicly without a copyright notice. It could be assumed that the author meant to make it public domain.

    128. Re:Uhhhhh by pugugly · · Score: 1

      Not since we signed the Berne convention in '89.

      One of our many problems with copyright.

      Pug

      --
      An Invisible Entity of Vast Power whose existence must be taken on faith alone: Liberal Media
    129. Re:Uhhhhh by Rene+S.+Hollan · · Score: 1

      To me, this sounds like the OP is a quite young programmer who is looking for a chance to lead a moral crusade rather than get the job done. In my experience I avoid taking on employees like that because they seem more focused on making sure everyone else follows their ethics than in doing a good job on the task at hand.

      Or perhaps someone who knows that withholding knowledge of a crime makes one an accessory after the fact. Copyright infringement is criminal.

      In fact, a perfectly good excuse for firing him or her would be that they engaged in criminal behavior on company time to the potential detriment of the company if they co-conspired to hide the potential infringement.

      He (or she) should get an independent legal opinion on his (or her) own time and expense, and act accordingly. Most likely he will be advised to report his concern in writing, and then let it go.

      There may very well be good reasons why the code can be legitimately used (e.g. permission was already obtained). But, in a shop with many people looking at code, and some new ones, it makes sense to mark such code as "used with permission" to some degree to avoid such misunderstandings in the future.

      --
      In Liberty, Rene
    130. Re:Uhhhhh by Chapter80 · · Score: 1
      The facts are that you probably aren't licensed to use the code.

      Reality in business is that businesses take risks every day. Smart risks are part of business. As an employee, your duty is to make sure that management is aware of the risks, and is making a conscious risk/cost assessment (that is, the probabilistic cost of the risk, vs. the cost to mitigate the risk - i.e. re-write the software).

      Realistically, the chances of getting penalized using merely 200 lines of code that was published so freely is probably minimal, so possibly not worth the costs to re-write.

      You can let your management know that you have ethical concerns, and if they are growing their business based on theft, you have a problem with that, but really the question for management is one of weighted risk vs. mitigation.

    131. Re:Uhhhhh by vidarh · · Score: 1
      AFAIK "works created for public use" in the US would refer to works created by a US government agency.

      It most certainly does NOT refer to works that are publicly posted, as in that case it would effectively negate copyright protection entirely, as the purpose of copyright is to protect exactly works that are published.

    132. Re:Uhhhhh by vidarh · · Score: 1

      200 lines of code is sufficient to express fairly complex ideas. While there may be 200 line snippets that may constitute "fair use" if those 200 lines where a cohesive enough piece of work to be worth copying, I very much doubt it.

    133. Re:Uhhhhh by withears · · Score: 0

      It's all about exposure. Is it really worth exposing your company to a potential lawsuit over 200 lines of code? Rewrite it, teach your engineers to avoid problems, and move on.

    134. Re:Uhhhhh by iamacat · · Score: 1

      Go ahead, demonstrate then. I wrote it from scratch and I can not help it if there are only 2 ways to authenticate users in Leopard.

    135. Re:Uhhhhh by Orestesx · · Score: 1

      That's true, but it's also possible that the whole story is that the person who posted the code in fact stole it from someone else.

      It's the same reason why a comedian shouldn't use a joke he heard from a friend, even if the friend gives him permission to use the joke in his act. It's possible that the friend didn't invent the joke in the first place.

    136. Re:Uhhhhh by uhhhhhhhhhhDuh · · Score: 1

      To me, this sounds like the OP is a quite young programmer who is looking for a chance to lead a moral crusade rather than get the job done. In my experience I avoid taking on employees like that because they seem more focused on making sure everyone else follows their ethics than in doing a good job on the task at hand.
      Or he's a young programmer who is afraid he's the scapegoat.
      I'm betting it's the second option, too. I work at IBM and with as much money is involved with the stuff that happens here, all the departments I see are more concerned with liability and CYA rather than just getting the job done. Small mistakes around here quickly turn into multi-million dollar lawsuits, and no one ever wants to be responsible for something like that.

      Hell, a few months ago I saw a situation where a customer was asking one of our operators to turn a machine off and on. The operator had been told that we as a policy never do that, so declined. The customer got irate and started threatening the operator. Later when the entire episode was escalated, I heard our department manager say "Fuck the customer."

      I haven't been in the working world for long, but it just seems that in big business, Liability > Customer Service.

    137. Re:Uhhhhh by Anonymous Coward · · Score: 0

      I'd also consider the possibility that you don't know the whole story.


      Probable enough.

      From what little info is on the post, probably the best thing to do is to ask politely about the code, rather than assume it was 'stolen'.

      Another possibility is that the code on the website was not the original, and both sets of code has a common, liberally licensed or public-domain, source.
      Depending on the type and amount of code, a lot of what you find in websites/forums explaining issues are actually samples from books, external documentation, etc. (or their derivatives) and those books often include a "use the code as you please" license.

      The code may have been copied verbatim, but it may have come from another source that explicitly allowed such use.

    138. Re:Uhhhhh by Anonymous+Brave+Guy · · Score: 4, Insightful

      You make a valid point, which is why the concept of due diligence exists. Exhibiting due diligence is one thing that tends to set the professionals apart from the amateurs. But any way you cut it, just grabbing a substantial, unattributed bit of code off a web site and using it in a commercial product doesn't sound much like performing due diligence, and the OP is right to be concerned.

      To the OP: If I were in your position, for a start I wouldn't touch the code that already exists so it's very clear I didn't put it there or have anything to do with using someone else's copyrighted code. An informal approach drawing it to management's attention is probably a reasonable first action to try and restore compliance. If it's a larger company, they might have a dedicated compliance contact in the legal department you could approach if management is unresponsive. In any case, if the situation is not resolved quickly and appropriately, I would be planning on finding another job as soon as possible, since you really don't want to get caught up in any potential legal action, and it sounds like you're in the optimum position to become the fall guy.

      --
      If you disagree, post your argument. (-1, Overrated) isn't your personal censorship tool for views you don't like.
    139. Re:Uhhhhh by andphi · · Score: 2, Funny

      Actually, they did have zombie lawyers. The Beast killed everyone at Wolfram & Hart and they all came back as zombies.

    140. Re:Uhhhhh by mabhatter654 · · Score: 1

      "moral crusades" are what business ethics are all about... the idea is to be ethically transparent and follow your companies rules so that if you do get sued, you can point to FACTS that workers follow the rules.. sure you may have not had the correct interpretation, and the law may still fine you, but showing a culture that every person in the company is committed to following the law and best practices makes a big impression on judges... the difference between fines and jail time in some cases.

      If this company makes primarily software, they really should have addressed these issues up front. There should be a Lot of training of newbies in IP rules... most programmers don't read slashdot and know how capricious the IP rules really are. Perhaps the issue is nothing to the company lawyers, the bigger problem is that the lawyers will take it more seriously that it really is and THEY will start a crusade.

      This OP seems to want to do the ethical thing and report the issue to somebody to do his duty to the company so he will have a job in 10 years and not watch the place get shutdown by lawyers! Obviously the company has not made available a good channel in which to report ethics concerns and a method to vet IP resource issues of any kind. If IP is their product they should get on the ball because these issues don't go away, and ignoring them only allows the other lawyers to stack up the charges if something bad does happen.

    141. Re:Uhhhhh by Anonymous+Brave+Guy · · Score: 1

      If you don't register it the result is that you simplu can't sue for quite as much as you could otherwise (although you can still sue).

      Specific jurisdiction and citation, please?

      --
      If you disagree, post your argument. (-1, Overrated) isn't your personal censorship tool for views you don't like.
    142. Re:Uhhhhh by SQLGuru · · Score: 3, Informative
      Here's the relevant paragraph from here: http://web.sourceforge.com/terms.php

      With respect to text or data entered into and stored by publicly-accessible site features such as forums, comments and bug trackers ("SourceForge Public Content"), the submitting user retains ownership of such SourceForge Public Content; with respect to publicly-available statistical content which is generated by the site to monitor and display content activity, such content is owned by SourceForge. In each such case, the submitting user grants SourceForge the royalty-free, perpetual, irrevocable, non-exclusive, transferable license to use, reproduce, modify, adapt, publish, translate, create derivative works from, distribute, perform, and display such Content (in whole or part) worldwide and/or to incorporate it in other works in any form, media, or technology now known or later developed, all subject to the terms of any applicable license.


      Layne

    143. Re:Uhhhhh by vux984 · · Score: 1

      Clever.

      Beleive it or not, I am not an idiot.

      I needed to do that -programmatically- in C++. Which, like I said I did with ANSI C's popen. Which, to do your command looks pretty much like this:

      FILE * fp = popen( "command >stdout.txt 2> stderr.txt", "r");

      Not hard at all, right? Right. But I found that solution on my own.

      However try to get it to suppress the flashing of the DOS box whenever you call it, something that users don't like much by the way, and you end up using CreateProcess and writing something like whats in that MSDN article I linked.

    144. Re:Uhhhhh by Java+Pimp · · Score: 1

      Disclaimer: IANAL either. First, GPL licensed code != questionably licenced code. Obviously, if GPLed code is posted in a response to a newsgroup posting, it is likely accompanied by the GPL license (or indication of such a license) which moots the whole argument. Whether or not GPLed code has been litigated in court is irrelevant.

      Not being a lawyer, I am not aware of case law that may involve use of code posted to a public forum without notice of license. It likely isn't very common or groups like comp.lang.foo would not have existed very long and this question wouldn't have been asked here.

      Yes, copyright is still owned by the author. That being said, the author would have been unlikely to provide help if he was concerned said help might actually be used.

      As I said, it's the social norm in some forums like Usenet. Perhaps the code came from here or maybe even here? My point is that sharing of pieces of code like this has been done for years on a share and share-alike basis without the ugliness of first legalizing, licensing and contract signing in triplicate.

      --
      Ascalante: Your bride is over 3,000 years old.
      Kull: She told me she was 19!
    145. Re:Uhhhhh by Anonymous Coward · · Score: 0

      Oh come on. Ethically, they HAVE been given rights. You know it and I know it. That code was pasted in the spirit of free sharing.

      Legally, they have not.

    146. Re:Uhhhhh by ThisNukes4u · · Score: 1

      Wrong, at the bottom of every page reads "All trademarks and copyrights on this page are owned by their respective owners. Comments are owned by the Poster. The Rest © 1997-2007 SourceForge, Inc."

      --
      thisnukes4u.net
    147. Re:Uhhhhh by Tweekster · · Score: 1

      Because when the heat comes down that will somehow matter? it might seem like it should, but it wont

      --
      The phrase "more better" is acceptable English. suck it grammar Nazis
    148. Re:Uhhhhh by Jherico · · Score: 2, Insightful

      I'm sorry, I misinterpreted what you meant by 'make a buck from cmdr taco' and assumed you were cutting and pasting auth code from the code for slashdot. In the corrected case, you can't sue someone for reproducing something if you knew the natural result of performing an action would be that the item would be reproduced (you know exactly what the post button does). In addition, if the code you are writing can't be substantially implemented in any other way, or more than 1 or 2 ways, then its not copyrightable. I can't copyright code that does some simple thing like deleting a file in java because its simply not possible to do it in more than a couple different ways. The same would apply to this auth snippet I imagine. Note that in a real world situation (one in which it wasn't patently clear that your goal in posting code was to enable litigation, and one in which it was a bit more ambiguous whether the code could only be implemented in X many ways), both of these situations are likely to leave you open to being sued by some asshat who wants to tie up your company in red tape, whether or not the law eventually comes down on your side. Its safer just to steer clear of such situations entirely, whenever reasonably possible.

      --

      Jherico

      What can the average user can do to ensure his security? "Nothing, you're screwed"

    149. Re:Uhhhhh by msslc3 · · Score: 5, Informative
      I am a lawyer, and while this is not legal advice to anyone I would personally contact the poster and ask to buy a license to reuse the code in a commercial product. Sure you could rewrite the code but the time saved in not having to do that could be worth a reasonable price for a license. If you bought a license you could also ask for proof of authorship and ownership.

      If you instead rewrite the code, you face the possible claim that your new code is a derivative work which is also covered by the original author's copyright. The "cleanroom" approach is sometimes used to avoid this. Have someone who has seen the original code spec the functions, and give the spec but not the original code to a programmer who has never seen the original. Document carefully what you have done and why. If the programmer who writes the code has no access to the original, he can't copy it. Then you only have to worry about software patents -- but that's a separate issue.

    150. Re:Uhhhhh by mollymoo · · Score: 1

      Copyright infringement is criminal.

      Actually, it's usually a civil matter.

      --
      Chernobyl 'not a wildlife haven' - BBC News
    151. Re:Uhhhhh by SQLGuru · · Score: 1

      Check again.....right below the statement you quote is a link that says terms of service.....read it...section 6 in particular.

      Layne

    152. Re:Uhhhhh by Anti_Climax · · Score: 1

      Seems reasonable, though their syntax seems a bit messed up. Maybe we should submit a bug report.

      --
      Even people that believe in pre-destiny look both ways before crossing the street.
    153. Re:Uhhhhh by BotnetZombie · · Score: 1

      Zombie survival guide? As an eternally uninformed underworld creature, could you please provide one with directions on where to find this sort of treasure?

    154. Re:Uhhhhh by duffbeer703 · · Score: 1

      You're the exception -- most employers don't think that way.

      The OP didn't copy the offending code, and probably doesn't own the company, so he should delete that link.

      --
      Conformity is the jailer of freedom and enemy of growth. -JFK
    155. Re:Uhhhhh by Gr8Apes · · Score: 1
      However, there's the other side of that coin. Almost every forum I know of has text like the following, from our own wonderful /. TOS:

      With respect to text or data entered into and stored ...such as forums, comments ..., the submitting user retains ownership of such SourceForge Public Content; ... In each such case, the submitting user grants SourceForge the royalty-free, perpetual, irrevocable, non-exclusive, transferable license to use, reproduce, modify, adapt, publish, translate, create derivative works from, distribute, perform, and display such Content (in whole or part) worldwide and/or to incorporate it in other works in any form, media, or technology now known or later developed, all subject to the terms of any applicable license. (emphasis mine) It would appear that the submitter retains ownership for purposes of slander/libel, but for everything else SourceForge//. can do whatever they please, including making it available for others to use freely.

      I think it would be very difficult to bring a copyright case against someone using code snippets published on such a site, as a reader is technically part of the site's organization, and therefore part of the site (yes, the standard disclaimer applies, but I'm sure this could be a pretty successful tact to use) or the site could just permit snippets to be used in such ways.
      --
      The cesspool just got a check and balance.
    156. Re:Uhhhhh by JoelKatz · · Score: 3, Insightful

      I hope you don't take this wrong, but you're an *idiot*. I really hope nobody takes your advice.

      It's entirely possible the guy wrote the code and also posted it to the forum, perhaps under another name. It's also possible he obtained permission to use the code.

      But posting code publicly most certainly does not license other people to use or copy it and professional software development organizations take such things *very* seriously.

    157. Re:Uhhhhh by kbielefe · · Score: 1

      I don't attach a license or explicit release to every piece of code I've posted to forums or newsgroups or what-have-you over the years

      Come on, I can't be the only one who used to GPL his homework assignments.

      --
      This space intentionally left blank.
    158. Re:Uhhhhh by zotz · · Score: 2, Informative

      "You have copyright on everything you create by default and you never lose it (unless you give it away)."

      I have had people, I think on the Creative Commons mailing lists, tell me that this is not the case in their countries... That the work must be original or creative or something along those lines and that things like a recording of water cooler conversations and the like would likely fail this and not get copyright protection.

      I don't claim to understand this at this point, but if so, there are some things you can create in some places which don't get automatic copyright. But in that case, I guess you wouldn't get a copyright even if you tried to register it...

      Can anyone give any insight into this for the layman?

      all the best,

      drew

      --
      FreeMusicPush If you want to see more Free Music made, listen to Free
    159. Re:Uhhhhh by Rene+S.+Hollan · · Score: 1

      There are both potential civil and criminal penalties for copyright infringement, particularly if it is *willfull*. In any case, conspiring to comit a crime (which is what he might be doing in this case), is criminal.

      --
      In Liberty, Rene
    160. Re:Uhhhhh by andphi · · Score: 4, Funny

      Step One: Get in Taxi
      Step Two: Do not bite driver
      Step Three: Tell Final Destination to Driver
      Step Four: Do not nibble on driver
      Step Four 1/2: Go to Bookstore
      Step Five: Exit Vehicle after biting driver (Zombies don't pay)
      Step Six: Find book in bookstore
      Step Six 4/5: Take book without paying. See Step Five.
      Step Seven: Bite other patrons as desired, being careful to avoid anyone with a knife or anyone standing in the Military History section. Such patrons may already know how to kill Zombies and should be avoided.
      Step Eight: Shamble home, avoiding law enforcement officers and other armed humans.

    161. Re:Uhhhhh by dhasenan · · Score: 1

      The first thing to do is check the commit logs to find who added that code. Then you ask him about it. After that, you can contact the forum poster if necessary -- though it might be the coworker, which is a degenerate case.

    162. Re:Uhhhhh by Anonymous Coward · · Score: 0

      Or should we just start making Xerox copies of the zombie survival guide?

      They're called photocopies, you trademark infringer!

      YOU trademark infringer! It's Xerox TM!

    163. Re:Uhhhhh by Dretep · · Score: 2, Interesting

      AFAIK code is copyrighted at the act of creation, and simply by making it available Damn, I've used copyrighted code in almost every programming lanugage I've learned. Who ever first created "HELLO WORLD!" must be quite wealthy!
    164. Re:Uhhhhh by Rakishi · · Score: 1

      Well I apparently wasn't accurate, apparently you have to register to sue but it seems you can register at any time (even after infringement). To quote the US copyright office webpage:

      -In general, copyright registration is a legal formality intended to make a public record of the basic facts of a particular copyright. However, registration is not a condition of copyright protection.
      -Before an infringement suit may be filed in court, registration is necessary for works of U.S. origin.
      -If registration is made within 3 months after publication of the work or prior to an infringement of the work, statutory damages and attorney's fees will be available to the copyright owner in court actions. Otherwise, only an award of actual damages and profits is available to the copyright owner.
      -Registration may be made at any time within the life of the copyright. Unlike the law before 1978, when a work has been registered in unpublished form, it is not necessary to make another registration when the work becomes published, although the copyright owner may register the published edition, if desired.

    165. Re:Uhhhhh by Rakishi · · Score: 1

      I have had people, I think on the Creative Commons mailing lists, tell me that this is not the case in their countries... That the work must be original or creative or something along those lines and that things like a recording of water cooler conversations and the like would likely fail this and not get copyright protection. Good point, there probably are many things which don't count. My point was as you mentioned that anything that you can get copyright for you get copyright for automatically in the US. It used to be that you didn't I think.
    166. Re:Uhhhhh by BotnetZombie · · Score: 1

      Ah, thank you. So many steps... But no: Step Nine: ??? Step Ten: Profit!!! Note to self: must not nibble on andphi, at least save him till last

    167. Re:Uhhhhh by DragonWriter · · Score: 2, Insightful

      If you don't make a fuss, the only person that could get in potential trouble if it turned out to be rotten would be the guy who wrote it.


      Actually, the company could be in potential trouble, and depending how critical the code is (and whether the one example is an isolated case or part of a pervasive trend), everyone who depends on the company for their livelihood could be negatively impacted.

    168. Re:Uhhhhh by Anonymous Coward · · Score: 0

      Odd... your statement explicitly copyrights the work.

    169. Re:Uhhhhh by HiThere · · Score: 5, Insightful

      I believe that you are a lawyer.

      Your advice is, indeed, a legal way to proceed. It is also impossible for the poster. That's not one of his choices.

      Were I him, I would not admit to having noticed anything. Possibly, depending on personality factors, I might get into a discussion with the other code about copyrights, laws, and ethics, but I would be very careful to not admit having noticed that he might have done anything improper.

      You are talking here of a new hire. The low man on the totem pole. And this is a case where the proprietaries aren't entirely clear. (E.g., this person should definitely not attempt to acquire a commercial license, as he wouldn't have the right to comit his company to anything.)

      FWIW, I consider there to be a fair chance that the example is from a standard text on algorithms. I certainly have no proof that this is true, but it might well be. If so, the PURPOSE of the book was to share how to do various things, say Shell sorts. (Probably not, as that's now commonly built into languages.)

      That which you are suggesting is probably something that even the lead programmer wouldn't be able to get the department to do. Yes, it's the legal approach. And it's total impracticality is a small part of what's wrong with the legal approach, and why essentially nobody uses it.

      Personally, my favored way of avoiding this problem is to use GPL software...but it doesn't totally get around the problems that the legal approach has saddled us with. We weren't told what license the issued product would be under, and it might BE under GPL. This wouldn't solve any of the problems in this case...this case where there shouldn't BE any problems.

      Text published in a public forum without an attached license should BE public domain, with all liability resting on the person or entity who published it. (I'll grant that this would make the GPL a lot more like the BSD license, but in an ideal world those two would be identical in effect. It's the imperfections that cause me to adhere to the GPL.)

      --

      I think we've pushed this "anyone can grow up to be president" thing too far.
    170. Re:Uhhhhh by shankarunni · · Score: 1

      Um, no. If you want to be technical, if there's no license attached to the code, then you can't use it. But then, there's also two other questions that arise:
      * fair use of small snippets of code - trivial expressions of basic algorithms like "quicksort". Remember that simply copying code and changing variable names has been held to be copying in the context of copyright violations, so technically even if you write a quicksort from scratch, it'll be very much like some "copyrighted quicksort". But fair use will cover this situation.
      * If the snippet is small enough, it's too trivial to be covered. Otherwise I could just publish a blog entry with the line "i = i+1;" and you'd never be able to use that in your own work :-).
    171. Re:Uhhhhh by king-manic · · Score: 1

      Because when the heat comes down that will somehow matter? it might seem like it should, but it wont It's the difference between getting a new project lead and getting a new resume typed up.

      A lawsuit may disrupt that product but isn't necessarily going to destroy that company.
      --
      "There are more things in heaven and earth, Horatio, than are dreamt of in your philosophy."
    172. Re:Uhhhhh by HiThere · · Score: 1

      So if the code was published on /., then there's not problem.

      We don't know which public forum the code was published on, or what it's terms of service are, however, so there may BE a problem. But that does sound like a standard paragraph from "Terms of Service", so they may well NOT be a problem.

      In other words, the best advice appears as "Don't make waves until you're certain of your position. Then use your judgement."

      --

      I think we've pushed this "anyone can grow up to be president" thing too far.
    173. Re:Uhhhhh by harlows_monkeys · · Score: 1

      Frankly, I'm glad you don't work for us. The fact that you would consider "rewriting" code that works well just because it was written by someone external to your company doesn't speak well for your sense of business priorities or usage of time

      And I'm glad you don't work for us. The fact that you would open your employer up to significant legal risk rather than rewrite 200 lines of code doesn't speak well for your sense of business priorities.

      The code in question is under copyright. They have not secured permission from the copyright holder to use it. How could you even consider continuing to use such code in a business setting?????

    174. Re:Uhhhhh by VeteranNoob · · Score: 1

      Without a license, you don't have permission to use the work.

      Technically, copyright does nothing to limit how he uses the work, only how he (re)distributes it.

      --
      Adapt, adopt, or get out of the way!
    175. Re:Uhhhhh by davetd02 · · Score: 1

      Nobody is claiming that's a copyright violation to LOOK at the code in the browser window. The question was can he copy the code, paste it into a project, and then make copies of the project. There are undoubtedly copies made in that process.

      Your argument is like saying that since the copyright holder can't control my use of a book, I can photocopy it and then distribute the photocopies as a form of "using" it. Putting the code into a project and selling the project is like photocopying a book and selling the copies.

      And it's impossible to know if this is fair use or not without knowing more about the code.

    176. Re:Uhhhhh by harlows_monkeys · · Score: 1

      Copying a code snippet from a book or posting, that does not have any further restrictions on it, almost certainly falls under fair use

      Unlikely. There are several factors that go into fair use analysis, and they mostly go against fair use in this situation. I think you are only considering one of the factors (the amount of the work copied).

    177. Re:Uhhhhh by turbidostato · · Score: 3, Interesting

      "If the author of the code posted it in a forum, I would personally call that implicit permission to use the code.Otherwise, why even post it? "

      If the author of the song threw it in *a lot* of public mass media, I would personally call that implicit permission to use the song. Otherwise, why make it so public?

      "As to the legality of downloading it, if it is showing in your browser window, you have already downloaded it."

      As to the legality of downloading it, if it going out your speakers, you have already downloaded it.

    178. Re:Uhhhhh by davetd02 · · Score: 1

      Yes, but if they sell you something they don't have a right to sell then you get to sue them. If you sell my "your" car and the bank shows up the next day to repo it because you don't own it then I get to sue you and get my money back.

      If random Internet Forum Guy posts code without explaining whether he has the ability to sell it or not, then you're SOL if SCO comes and sues you (or if somebody tries to enforce the GPL on you).

      IANAL.

    179. Re:Uhhhhh by Joe+Snipe · · Score: 1

      heh, shamble. I LQTM'ed

      --
      Sometimes, life itself is sarcasm...
    180. Re:Uhhhhh by Anonymous Coward · · Score: 0

      IIALBNYLANACS (I am a lawyer, but not your lawyer and not a copyright specialist)

      Here's a brief article discussing the abandonment issue and how simply publishing without a copyright claim may not dedicate a work to the public domain.

      http://www.edwardsamuels.com/copyright/beyond/articles/public.html

      My speculation as to the likely outcome of any disputation: Posting code snippets without copyright in an online forum is evidence of intent to allow free copying and reuse of the code even if it does not result in the forfieture of the copyright and dedication to the public domain. Without relying on public domain, a theory of implied license, reliance or estoppel based on the apparent intent of the author to allow the code to be freely reused would probably protect you against a copyright claim for past infringement. You would need to remove the code or get a license going forward.

    181. Re:Uhhhhh by turbidostato · · Score: 1

      "The only issue is that if the author wrote the code at work, it's not his to give away."

      Check your facts.

      The only issue is that if the author didn't stamp a license into his code, then legal "defaults" apply. And regarding software there's no country on the first world I know of that "default" is other than "you can't touch this, not even with the end of a ten foot pole".

    182. Re:Uhhhhh by pushf+popf · · Score: 1

      Chances are excellent that the code isn't rocket science and anybody of average skill in the language of choice could implement it. In this case, I'd forget I saw it and get on with my life.

      If it turns out that the code is some new method for spinning straw into gold, consider it a benefit to humanity and forget you saw it.

      No matter what it is, the cat is already out of the bag and any action to retrieve it will turn a relatively anonymous, little used piece of code into a cause that geeks all over the world will rally behind and spread around faster than flu in winter.

      In any case, it's not your problem. Any other action besides "ignore" will have effects ranging from getting people fired (including maybe you) to preventing you from getting a decent job in the future because nobody wants to hire a snitch.

      Also, since you don't know the origin of the code. It's entirely possible it was not developed internally, and could have come from some other project somewhere else, which opens up an entirely new can of worms for your company, who may discover that one or more critical core system contain infringing code, and that an advisary could easily put them out of business.

      Unless you're independently wealthy and don't need a job and don't care what business or lives you ruin, the answer would be "forget it".

      The only time I'd change this advice is if you were an outside contractor specifically hired to do a software audit. Terry

    183. Re:Uhhhhh by orasio · · Score: 1

      > Is it legitimate to use source code that's publicly available but doesn't fall under any particular license?

      Of course it is. This kind of thing happens all the time.

      Frankly, I'm glad you don't work for us. The fact that you would consider "rewriting" code that works well just because it was written by someone external to your company doesn't speak well for your sense of business priorities or usage of time. It's much more important to cut the legal risks than to make the deadline. Focusing only on meeting your personal deadline, and not about damaging your company makes you an irresponsible employee. You are a liability.

      > The original author didn't attach any particular license to the code.

      I think that says it all. That just shows that you know nothing about copyright.

      I don't see how this is "insightful".
      What I think the guy should do would be just notify the guy responsible by internal mail. After that you can expect that he solves the issue. Refuse to commit the issue until he has agreed to take responsibility in front of the next tier of management. Don't commit your fixes until he does so.
    184. Re:Uhhhhh by twiddlingbits · · Score: 1

      Did you EVER stop to think that there was a REASON the policy said don't turn it off? Customers are often morons about technology, thats why they hire IBM [Side note..I am an ex-IBMer] and then IBM hires and trains operators. The appropriate action would be for the customer to submit a request to IBM to turn the machine off against policy and in the request they agree to hold IBM harmless from any negative action that may result. Yelling at an operator is way out of line and your department manager should have a talk with the manager of the person who went ballistic. Either there may be a reason and the guy is normally easy to get along with or this person is a problem and the customer needs to address it before he goes postal the next time.

      "Fuck the customer" was the right reply in the context that IBM should NOT turn that machine off until they can CYA. When you are IBM (or other big vendors) mistakes can turn into lawsuits just because they think IBM will use thier deep pockets to settle the issue. Then IBM fires the Manager AND the Operator. Better to say NO and let the Management handle it than screw up by turning it off.

      In your case, better to remain silent about such issues in a public forum until you are more experienced and can understand how this could play out. Or if you want to learn go ask your boss/mentor how things like this should be handled if you were in the shoes of the operator. Could be a good learning tool for you.

    185. Re:Uhhhhh by DragonWriter · · Score: 1

      Would this not fall under the category of "works created for public use"?


      If its not a government work or one that has fallen out of copyright by action of time, the only way it is public domain is if the copyright holder has explicitly dedicated it to the public domain (that's what makes it "created for public use"). At least for works created relatively recently.

      The context and absence of notice might allow an infringer to claim "innocent infringement" in mitigation of damages, but doesn't provide a license to infringe.
    186. Re:Uhhhhh by turbidostato · · Score: 2, Funny

      "Therefore I conclude the units LoC and KLOC are the same."

      Unless, of course, one KLOC means 1024 LOC.

    187. Re:Uhhhhh by twiddlingbits · · Score: 1

      You should NOT be marked Troll, as you have a very valid point EXCEPT the Ethics to be applied should NOT be the personal ethics but the CORPORATE Ethics. If they perceive an ethical conflict they need to go to the Management to clear it up IAW company policy. Lacking a set of corporate ethics or policies to guide someone in a case like this is a different problem. You DO want employees who don't cheat, steal, etc. But those are MORALS you talk about not Ethics. The company has to set the standard as they bear the ultimate burden of responsibilty in this case. You never want someone who cuts ethical corners to do a "good job" as I've seen that come back and bite projects severely. My job is going into troubled projects, discovering and correcting the problems and puting them back on track. You will be amazed at the times people avoid the ethical thing to do in order to meet deadlines and "do a good job". Sure you met one deadline but you put the whole project at risk and perhaps the company too!

    188. Re:Uhhhhh by Anonymous Coward · · Score: 0

      No, but you do have legal recourse given that you purchase rights to use the code, and hence seller does imply (s)he has the proper authority to grant you such rights (which would be rather easy to argue in court if necessary). Unless you have specific reason to suspect otherwise, you should be able to trust the seller and you have done your due diligence.

      This is very different from downloading random piece of code from the Internet and assume it's just fine -- in latter case you should assume someone somewhere does hold copyright to the piece, unless there is something to indicate intention to either grant use licenses, or explicitly declare it is public domain (which copyright owner, usually author, can do).

    189. Re:Uhhhhh by Acrimonymous · · Score: 0

      Frankly, I'm glad you don't work for us. The fact that you would consider "rewriting" code that works well just because it was written by someone external to your company doesn't speak well for your sense of business priorities or usage of time.


      You're either massively incompetent or getting your jollies out of intentionally misleading people.

      The code is copyrighted. Who owns the copyright, how it came to be in the first place, and what sort of legal trouble the real owner of the code has the power to stir up are all unknowns. If you wouldn't sacrifice 4 or 5 hours of developer time to completely eliminate what has the potential to be a company-ending legal threat, you have no business talking about priorities.

      If that post was an honest statement of your thoughts on the matter, you're an imbecile and you need to be removed from whatever position of authority you may hold at your current place of employment.
      --
      Talk to me about WoW and I'll punch your faggot face.
    190. Re:Uhhhhh by outer0rb · · Score: 1

      do the right thing. copyright law requires you to obtain permission from the original author to copy/reproduce/distribute any work -- unless it falls under fair use (e.g. parody, education, etc.) or it has been 70 years since the author's demise, which is not the case here.

      so, ask for permission first (and get the response in writing with a signature). if the author says no, just rewrite it. if you don't get a response within a reasonable time frame, assume you do not have permission; rewrite it. if the author wants reimbursement, and its a reasonable amount, pay him.

    191. Re:Uhhhhh by jeremyp · · Score: 1

      Unfortunately, when they've decided to sue you for breach of copyright because they can't be bothered to make an ethical buck, it's legally that counts.

      --
      All I want is a secure system where it's easy to do anything I want. Is that too much to ask ~~ Randall Munroe
    192. Re:Uhhhhh by Wolvey · · Score: 1

      I bet you never go 1 mile an hour over the speed limit either. Rules were made to be broken.

    193. Re:Uhhhhh by Tweekster · · Score: 1

      For the person posting this question, he wont have a chance a chance to explain, the project lead will pass the buck, and that will be it.

      Documentation is meaningless when you are low man

      --
      The phrase "more better" is acceptable English. suck it grammar Nazis
    194. Re:Uhhhhh by aminorex · · Score: 1

      > So does fraud, burglery and worse but it doesn't mean it's legal.

      So does snarkiness, arrogance and misspellyng, but that doesn't make it illegal.

      --
      -I like my women like I like my tea: green-
    195. Re:Uhhhhh by theshowmecanuck · · Score: 3, Insightful

      How many angels can sit on the head of a pin?

      Just because you don't know the source of this expression doesn't mean it is offtopic.

      --
      -- I ignore anonymous replies to my comments and postings.
    196. Re:Uhhhhh by rspress · · Score: 1

      Of course if you found that some had stolen code and put it into your product......would probably get you fired from Microsoft if you told anybody about it.

    197. Re:Uhhhhh by ClosedSource · · Score: 1

      "If you instead rewrite the code, you face the possible claim that your new code is a derivative work which is also covered by the original author's copyright. The "cleanroom" approach is sometimes used to avoid this."

      If there's no common code I don't see how anybody could successfully claim it as a derivative work. It's not like writing a story about a boy with a scar who attends a 7 year wizard school.

      In addition, the cleanroom approach is really more relevent to a trade secret - it proves that you had no knowledge of the secret. If somehow you accidently recreated somebody else's copyrighted work without any knowledge of the original, I doubt that you could use that as a defense.

    198. Re:Uhhhhh by gordguide · · Score: 1

      Some might call it nit-picking (and I have no issue with your points, which are well taken), but the distinction is critically important, so ...

      " ... Copyright happens on an original work from the time it's published. ..."

      Actually, it "happens" as soon as the original work is placed in "a fixed form". This does not mean published, per se; it could be scribbled on a napkin which now lies under the bed with the other dust bunnies. Of course, publishing it is also a kind of "fixed form", it's just not the only kind.

    199. Re:Uhhhhh by FurryFeet · · Score: 1

      You have to multiply by VW Bugs. (Or was that divide? I always get those two confused).

    200. Re:Uhhhhh by Jherico · · Score: 1

      Perhaps the code was posted by magical faries, but that doesn't mean shit. The OP didn't say where it came from, and the implication was that there was no explicit license associated with the code, otherwise why bother asking. That being the case, social norms don't mean shit when you go before a judge. It may be the social norm trade music whether by cassette or on the internet, but 'social norms' doesn't make something legal.

      --

      Jherico

      What can the average user can do to ensure his security? "Nothing, you're screwed"

    201. Re:Uhhhhh by Fryth · · Score: 1

      I agree with everything except the "Frankly...". That's kind of harsh. He's trying to do the right thing, but doesn't know what it is yet, so he's asking his peers (or Slashdot) for the correct answer. He's trying to do the right thing for his career, while at the same time protecting his company.

      There are a lot worse types of people you'd want working for you.

    202. Re:Uhhhhh by danlyke · · Score: 1

      Doh. Thank you. Will read more carefully next time.

      And I'm not sure what it adds to the discussion, but I did recently go through exactly this problem, although I was the one who wanted to incorporate the code. I eventually ended up solving the problem in other ways because Microsoft's ways of writing COM objects had changed in the intervening years so it was reasonable to just rewrite, but I did send an email to the original author asking for, among other things, explicit license.

      Never got a response, so if anything maybe that's an indication that I need to start attaching "Released To The Public Domain" on things that I consider one-offs that I don't care if people use.

      Or, as the other poster down a bit mentioned about homework assignments, have my email sig GPL everything just to make a point.

    203. Re:Uhhhhh by ady1 · · Score: 1

      Of course it is. This kind of thing happens all the time.
      So does fraud, burglery and worse but it doesn't mean it's legal.
      Oh really? In that case, it seems like you've already committed fraud and burglary.
    204. Re:Uhhhhh by fatwilbur · · Score: 2, Funny

      An informal approach drawing it to management's attention is probably a reasonable first action to try and restore compliance. Holy hell, someone finds some useful code posted on a forum, uses it, and you report them to management?? And you call this professional behavior? Please everyone out there writing code on a project - do not listen to this guy.
    205. Re:Uhhhhh by mysidia · · Score: 1

      Keep in mind; the fact you saw the code on a forum is no evidence of the authorship. How can you be sure the poster is the author, and that they are authorized to post where they did? How do you know the code on the website wasn't originally written by the project leader? Maybe someone with access to your company's code repository leaked the code to that website? A reasonable person could assume the author gave some sort of permission to actually repeat the code (with proper attribution), when they published it in a public place. But maybe the publisher wasn't authorized, and by using the code (even if the post had included permission), you could _still_ be unwittingly infringing upon some third party's rights.

      Slashdot posters make the situation look like it's a lot cleaner cut than it really is.

      I don't see any particular license on the mp3 files either.

      Do you think it's copyright infringment for me to quote that line above from what you just posted?

      When considering whether use of the work could be defensible as fair use, the nature of the work comes in to play. A 50-line snippet of code someone posted on a website is nowhere near the same thing as a MP3 file. Comparing the two is equivalent to comparing someone quoting a paragraph from another book to quoting an entire book.

      Quoting another work is copyright infringement too, but often it's defensible under fair use doctrine. The author could sue if they chose to, but the chance of success would be remote: they won't choose to sue, because it will only cost the author money (expensive legal fees).

      Unauthorized mp3 files weren't made by the author. The mp3 would be a copy of original media that had a copyright notice printed on it. It's very clear how distributing for free, something the author is charging cash for harms the author.

      Unauthorized mp3 files weren't placed by the author on a public website where anyone could search for them and access the content.

      If the author was distributing copies of the mp3 freely; it could in theory be very well defensible to share this with your friends. There's no theory that shows a way in which you cause damage to the author by sharing these files downloaded from author's public open web site.

      The same wouldn't be true for posting it on a website of your own (this could have commercial impact on the author, by driving page views and advertising $$$ away from their site).

      The decision on whether to extricate that code or not is a legal decision. The decision should be made by your legal department. Depending on how long it would take to rewrite the code VS how much time it would take to ascertain the risk; it may make sense to be safe and just rewrite, saving the extra time and energy required to possibly still come to the very same conclusion.

    206. Re:Uhhhhh by Anonymous Coward · · Score: 0

      To me, this sounds like the OP is a quite young programmer who is looking for a chance to lead a moral crusade rather than get the job done. In my experience I avoid taking on employees like that because they seem more focused on making sure everyone else follows their ethics than in doing a good job on the task at hand. Well, I sure hope that the police force where you live takes on a similar approach to hiring... Those damn rookie cops trying to make sure that other policemen are following stupid ideas like 'ethics' and 'morality'....
    207. Re:Uhhhhh by m2943 · · Score: 1

      To me, this sounds like the OP is a quite young programmer who is looking for a chance to lead a moral crusade rather than get the job done.

      He has his head screwed on right, you don't. It's ethics it's about potentially big liabilities that you expose your company to by using source code without a license.

    208. Re:Uhhhhh by er3s · · Score: 1

      The person who your team lead cut/pasted from probably will never find out. If you feel it's an issue or it will bring maintenance issues if he does not "understand" what the code is doing, you have a problem.

      If you're team lead cuts/pastes code to "learn" is one thing, but to give no mention where it was obtained, and then passing it off as his own, forgive me if I'm wrong, but isn't that plagiarism?

      To use code samples in production and then ship and charge your clients for use of it, is wrong. If someone who is a team lead can't give credit where credit is due, I surely don't want them on my team.

      If you're worried you can't approach the team lead without repercussions, you don't' have open lines of communication.

    209. Re:Uhhhhh by Java+Pimp · · Score: 1

      Perhaps the code was posted by magical faries

      Nice! Just when I thought I was participating in an insightful conversation you had to pull that out. Nice chatting with you.
      --
      Ascalante: Your bride is over 3,000 years old.
      Kull: She told me she was 19!
    210. Re:Uhhhhh by xPsi · · Score: 1

      Now, in reality, the author posted it to a forum, probably with the intention of giving away the code. It would be entirely up to the author to sue and whether the author would sue or not -- well, I kinda doubt it. Good point, but intention is hard to gauge. For example, each poster on slashdot owns the copyright to their comments, but I doubt it is people's intention to let others use their posts on this forum for corporate or for-profit purposes without their permission. Many probably wouldn't care, but always best to check with the poster.
      --
      i\hbar\dot{\psi}=\hat{H}\psi
    211. Re:Uhhhhh by tubapro12 · · Score: 1

      If you really want to feel good inside, replace all the x++'s with ++x and delete/reword the comments. Viola! I'm a professional slacker

    212. Re:Uhhhhh by el+americano · · Score: 1

      I like your advice right up to the end - definitely don't touch it - but planning on leaving your position over someone else's mistake is rather drastic. If you decide that you never saw it, it's unlikely that the issue will ever come up, especially if they don't distribute their source. The author may not care. He might not be looking for violators. He might look but not find this case.

      OP said he was up against a release deadline and that the potential violator was in a position senior to his own. The survival guide says you saw nothing.

      --
      Those are my principles. If you don't like them I have others. -Groucho Marx
    213. Re:Uhhhhh by pclminion · · Score: 1

      The only issue is that if the author wrote the code at work, it's not his to give away.

      That may be true now, but plenty of the old-timers I work with have brought code in that they originally developed elsewhere. At the time this was done (early '90s) I don't think people saw much wrong in taking "boilerplate" or otherwise generally useful code from site to site. It's the kind of toolset that makes a person more useful as a programmer. I find it odd that today this fundamental boilerplate is fiercely guarded by companies along with the truly innovative code, and the result is that people keep reinventing the wheel every place they are employed.

      It's one thing to steal a piece of code that is actually innovative. But what if we're talking about something a little more mundane, like a logging layer? Maybe company policy says you can't take it with you, but that's just stupid from an engineering standpoint. The whole world would benefit if we could just stop writing this damn boilerplate all the time and get to the good stuff.

    214. Re:Uhhhhh by DarkMantle · · Score: 3, Interesting

      Remember the windows 2000 source code link. Most of the code in the TCP/IP stacks were from Novell. But did they have permission to use it? Who knows.
      In this case though, I'd say public forum is public use. I've posted lots of code in forums as tutorials or tips. I'm not going to write a EULA or specify it must be GPL, LGPL, Mozilla Public License, EULA, BSD License, or make up my own. If I post it, and you find it useful, use it.

      That said, if you have a really guilty conscience about it, they use the forum to contact the poster and see what he says. I'm sure he'll "say, yeah.. sure, whatever."

      --
      DarkMantle I been bored, so I started a blog.
    215. Re:Uhhhhh by belmolis · · Score: 1

      Using a snippet will generally satisfy a second fair use factor, namely detracting minimally from the market for the original work.

    216. Re:Uhhhhh by katchins · · Score: 1

      I compiled this code, and it gave me the message "Syntax Error: line 5"...

      --
      if (!sig) { printf("Signature Unavailable\n"); }
    217. Re:Uhhhhh by zotz · · Score: 1

      My point was as you mentioned that anything that you can get copyright for you get copyright for automatically in the US. It used to be that you didn't I think.


      I think that at one time you needed to register or at least put a copyright notice on the work. Perhaps at one time you had to do the first and at a later time, the second. My memory is fuzzy on the matter.

      all the best,

      drew
      --
      FreeMusicPush If you want to see more Free Music made, listen to Free
    218. Re:Uhhhhh by leabre · · Score: 1

      And why would he be a scapegoat if the company isn't being persued legally or shows no signs of impeding litigation?

      The real question here is what is he not telling us in the summary that is causing so much fear about being litigated (potentially)? I doubt the company would want a rat. And even merely mentioning such a problem when there is so little evidence that a specific copyright intent is being violated might cause the management to be so fearful that a) the code gets rewritten and everyone keeps their jobs but team lead no longer wants you on his team, b) management gets fearful that the complainer will rat the company out and lets the complainer go, c) complainer talks too much about it (coworkers somehow associate this slashdot post to the individual) and loses team-coherance as a result from others in the company or d) nothing.

      I think a) and b) are most likely.

      Now, if it was a blatent GPL violation or MS Read-Only type license or some commercial licensing that is quite prohibitive, that might be another story... but over unattributed code in a public forum where the intention of the post implies some reasonable expectation that others are going to use the code in their own project is just plain overreacting, plain and simple.

      Thanks,
      Leabre

    219. Re:Uhhhhh by unitron · · Score: 1

      I thought it was supposed to be how many can dance on the head of a pin?

      --

      I see even classic Slashdot is now pretty much unusable on dial up anymore.

    220. Re:Uhhhhh by tixxit · · Score: 1

      Worry not, there are ethical coders out there. I've been e-mailed a couple of times from people asking for a copy of my code I posted on the internet w/ a proper license attached. I've just sent them the files w/ an ISC license attached. The OP should probably do this as well (as someone already mentioned above). You could probably get away without even having to pay.

    221. Re:Uhhhhh by Anonymous Coward · · Score: 0

      Same thing, right?

    222. Re:Uhhhhh by wkitchen · · Score: 1

      ...but it sounds like this was something picked up off a site like CodeProject.com, where it's completely reasonable to assume that the intent of the poster was that this code be incorporated and adapted without further license terms.
      I agree that's a very reasonable thing to assume. But will "reasonable to assume" work as a legal defense in the unlikely case that the original poster discovers the code in your commercial product and decides to sue? (Not a rhetorical question. I'd really like to know.)
    223. Re:Uhhhhh by urcreepyneighbor · · Score: 1

      I would not do business with anybody who would knowingly use code of dubious license. I spewed coffee on my brand new monitor because of that line.

      There's just something about it.... I can't explain it, but it's the most hilarious thing I've heard in a long time.

      Not attacking you or questioning what you said, but it just sounds funny.

      Again, thank you for the laugh.
      --
      "The fight for freedom has only just begun." - Geert Wilders
    224. Re:Uhhhhh by Workaphobia · · Score: 1

      Is... Is that sarcasm? You ARE joking in some manner, right? No? This is Slashdot; I would've thought almost everyone here understood copyright law.

      Perhaps ripping code from publicly viewable sources without consent is a common business practice in your company, but it is certainly not legitimate, and in any environment where the someone within the company actually gives a damn about liability, it goes without explanation that this is a huge no-no. Code is copyrightable. Copyrightable materials are, by default, copyrighted by their creators. You can't put copyrighted code in your own software product and distribute it without permission in the form of some contract or license from the original author, unless you intend to violate the law. Please explain to me what set of assumptions would contradict this logic. You could potentially argue that the length of the code is too short for copyright to be applicable, but that's a dangerous decision when you actually do have the option to fix this before shipping.

      --
      Evidently, the key to understanding recursion is to begin by understanding recursion. The rest is easy.
    225. Re:Uhhhhh by slash.duncan · · Score: 1

      ... which is the whole point of Free(dom) software, of course, and why some people strongly prefer to work in a Freedom software based environment, where as long as they stay within the compatible license community, cross-company and cross-product code reuse is not only allowed but encouraged. In fact, some people strongly prefer it to the point where they won't do closed source, and pass up jobs that would require them to keep their work closed.

      --
      Duncan
      "Every nonfree program has a lord, a master,
      and if you use the program, he is your master."
      R Stallman
    226. Re:Uhhhhh by Cairnarvon · · Score: 1

      Comments posted on forums that don't explicitly state in their rules that all comments are licensed in this way or that are automatically considered copyrighted by the comment author, and just using the code in your own product is a copyright violation.

      There's a difference between posting some code for public discussion and granting people a license to use said code in whatever way they like, including commercial products.
      It's no different from taking a lengthy essay someone posts on a forum and publishing it under your own name. It's theft, plain and simple.

    227. Re:Uhhhhh by gerrysteele · · Score: 1

      > You *never* know if someone has permission to distribute code, even if they sell it to you.

      SCO FTW! Oh wait.

    228. Re:Uhhhhh by jandersen · · Score: 1

      Actually, you're wrong - or you are right in saying that it is OK in this case, but not because 'it happens all the time'; the author had placed it in the public domain, and that's why it is OK.

      And to be quite frank - I think I am glad I don't have many employees with your attitude. ScuttleMonkey asked a very valid question, and he shows a responsible and thoughtful attitude, which are qualities any employer should value; you, on the other hand, seem all too willing to take what is not yours and jump the fence where it is lowest. How could anybody trust you with a task that is important to a company?

    229. Re:Uhhhhh by Malevolyn · · Score: 1

      You must be new here. And not a programmer.

      --
      Your ad here.
    230. Re:Uhhhhh by debackerl · · Score: 1

      So you prefer to employ people who do not care about using external code regardless of the license? The guy just did not know whether it is legal or not. So, he just asked. No business problem here. On the other hand, there are people who wouldn't care taking GPL code in a proprietary program. But I suppose it would be okay for you because he would have the "sense of business priorities or usage of time". Or maybe you just avoid employing people without legal experience yet, which imply that you have to pay more for more experienced employees. If that's you sense of business to loose cash by only employing experienced developers :D

    231. Re:Uhhhhh by Anonymous Coward · · Score: 0

      And for fsm sake, try to get rid of the turkey vultures 'coz they're a dead giveaway!

    232. Re:Uhhhhh by sw155kn1f3 · · Score: 1

      >> Most of the code in the TCP/IP stacks were from Novell

      Do you have any link to support your claim?
      Most of TCP/IP stack both in Novell and MS Windows is from BSD code. And yes, they can use as they want.

      --
      - Arwen, I'm your father, Agent Smith.
      - Well, you're just Smith, but my father is Aerosmith!
    233. Re:Uhhhhh by Fred_A · · Score: 1

      You don't know that the poster had permission to post the code in the first place. The obvious thing to do would be to sue the web site and let the judge sort it out in that case.

      "Hey, that guy stole our code ! look, even the comments are the same, we want (raise pinkie) a MILLION DOLLARS !"

      --

      May contain traces of nut.
      Made from the freshest electrons.
    234. Re:Uhhhhh by Skrynesaver · · Score: 1

      I believe they were actually debating whether a finite or infinite number of angels could dance on the head of a pin, but the expression has moved from the world of theology into general use for discussions about minutiae that have no real world relevance

      --
      "Linux is for noobs"-The new MS fud strategy
    235. Re:Uhhhhh by montyzooooma · · Score: 2, Funny

      I thought it was supposed to be how many can dance on the head of a pin?

      The HR dept told them to stop for H&S reasons.

    236. Re:Uhhhhh by paeanblack · · Score: 1

      Rewriting simply because it was written external to the company isn't a good thing. Rewriting because it was written external to the company and you're not certain of your company's license to legally make use of the code is an *entirely* different thing.

      It's also a waste of time. Rewriting code that you have looked at will raise the legal fees for both parties, but it will not fix the violation.

      Career advice: Talk to your manager. Let him or her know what is going on. If there is a disagreement, document it, write a CYA memo if you are worth more as a scapegoat than a programmer, and move on. Show a little trust in your co-workers. If you can't do that, your best career move is to get a new job.

    237. Re:Uhhhhh by Le_mini · · Score: 1

      You are so wright. Eventualy the person who posted the code is not even the owner of the code... lets see Pieter wants to write a specific program the contains a word edit function. Pieter's brother works at Mickysoft... Pieter take a part of his bother code, & has he wants to use it ask some question about it on internet. you see the code... is Mickysoft code protected??? Of course.

    238. Re:Uhhhhh by Anonymous Coward · · Score: 0

      In every country you can only protect works. What a work is depends on the country. Often those rules arethings like:
      - a human must have made it (opposed to a animal or machine)
      - include some thought
      - may not be part of an interface
      - ... anything else some country legislative thinks ...

      Note that in every country I know of almost all of those rules are not in effect for software by some exception rules. I think this is mostly the US "persuading" other countries in the past. (Without those exceptions for software, compiled code would not be protectable in most countries).

    239. Re:Uhhhhh by jonadab · · Score: 1

      > I don't claim to understand this at this point, but if so, there are some
      > things you can create in some places which don't get automatic copyright.
      > But in that case, I guess you wouldn't get a copyright even if you tried
      > to register it...

      IANAL, but that matches my understanding. In the US, some examples of things that are not copyrightable include very short bits of text (on the order of a couple of words, but note that they _can_ be trademarked), photographic reproductions of two-dimensional art that is in the public domain, and lists of ingredients (it is the instructions in a recipe that are copyrightable, not the ingredients list). I don't know exactly how much this varies from country to country, but there may be some things that are copyrightable in some countries but not in others.

      --
      Cut that out, or I will ship you to Norilsk in a box.
    240. Re:Uhhhhh by Anonymous+Brave+Guy · · Score: 1

      I like your advice right up to the end - definitely don't touch it - but planning on leaving your position over someone else's mistake is rather drastic.

      I wouldn't be planning on leaving because of someone else's mistake. I'd be planning on leaving because (a) the culture at the company is obviously not strong on ethics, and (b) one way or another, I look like being the fall guy if anything does go wrong as a result of that mistake.

      OP said he was up against a release deadline and that the potential violator was in a position senior to his own. The survival guide says you saw nothing.

      Whose survival guide is that? Both legally and ethically, turning a blind eye to this is at least questionable. Seeing no evil may let you last a bit longer with one employer of dubious ethics, but having been tangled up in some legal mess (even if you personally were entirely innocent) is not going to look good on your resume.

      --
      If you disagree, post your argument. (-1, Overrated) isn't your personal censorship tool for views you don't like.
    241. Re:Uhhhhh by Xiaran · · Score: 1

      somehow you accidently recreated somebody else's copyrighted work without any knowledge of the original, I doubt that you could use that as a defense.

      Why not? Who invented The Calculus? No idea is 100% unique dude.

    242. Re:Uhhhhh by Lumpy · · Score: 2, Interesting

      you are 100% correct. we stopped contracting indian firms for Coding on the cheap because every time we got something back more OSS code was shoveled in. They would even strip most of the comments. We had one product come back with most of ffmpeg embedded in it.

      This happened so much we stopped doing out of house programming and went back to internal programmers. Yes we tried several different companies... I swear tow of them were the same company operating under different names. The code style, comments, etc were identical in style to the first company.

      If you want your app to be sanitized and 100% your companies property, you MUST hire in house programmers and instruct them that they can not use any OSS, snippets, etc... Their bag of tricks they bring with them must ALSO be not used. Programmer X brings his bag of tricks and suddenly your app has some of the same code that 4 other companies have in their apps.

      But there lies the problem. management wants unrealistic deadlines and 100% origional code. they cant have both so programmers slip in things they find to make the deadline. Maybe if management actually get's educated and understands that writing code takes far longer than they think then they can get what they ask for.

      --
      Do not look at laser with remaining good eye.
    243. Re:Uhhhhh by Anonymous+Brave+Guy · · Score: 2, Insightful

      Holy hell, someone finds some useful code posted on a forum, uses it illegally , and you report them to management??

      There, fixed that for you. No charge.

      --
      If you disagree, post your argument. (-1, Overrated) isn't your personal censorship tool for views you don't like.
    244. Re:Uhhhhh by CheShACat · · Score: 1

      "Otherwise, why even post it? To show off his great coding ability?"

      How about to exemplify a solution to a problem? To show another coder how I had gone about dealing with a problem I had come across so they could read it, understand it, and implement the ideas in the solution they were looking for help with. I agree that not tying a licence to the posted code was a mistake on the part of the poster, but if the orihinal source they Ctrl+c'd from had a licence attached, that leaves both the forum poster and anyone else who copies from the forum up the creek, no?

    245. Re:Uhhhhh by gallen1234 · · Score: 2, Interesting

      I think the context matters. If some one posts a question on a forum, "How do I do x?" and some posts a reply, "This is how you do it . . ." then I think it's safe to assume that the code is going to be used.

    246. Re:Uhhhhh by Anonymous Coward · · Score: 0

      Yeah - it would be horrible to hire a person that wants to make sure any code in your product is properly licensed! What a terrible thing!

    247. Re:Uhhhhh by morgan_greywolf · · Score: 1

      and same goes for closed source apps, dunno why you single out open source here True. I used open source apps as an example because that what code I've had the most exposure to. That being said, I personally worked on code for 3 years for a big auto company and that program was like maybe 8,000 lines total of ANSI C code. Each module carried it's own copyright though, and each module was like maybe 500-600 lines on average.

      Different languages can do much more complicated tasks with fewer lines of code these days, too. Compare processing a two dimensional array in C vs. a Python dictionary for instance.

    248. Re:Uhhhhh by apt142 · · Score: 1

      I think it's funny because it's a bit insane. Legal, ethical, but a bit insane.

      Code is built on code which is built on code.

      In modern programing, just using built in libraries means you're reusing somebody's code. And that library may be referencing another library which may or may not have snippets of code that some programmer copied out of a book 20 years ago. The point is there is no sane way to be completely sure that all of your code is written above board with all the licenses known. This especially includes proprietary code. You have to make a reasonable trust at some point. But, how can you really be sure?

    249. Re:Uhhhhh by Anonymous Coward · · Score: 1, Insightful

      A teaching assistant asks a question on how to teach a certain subject on a forum and some other TA at another university replies with an "Here is how I did it..." answer with his lecture slides and such. This doesn't automatically mean the original TA can automatically just lift the exact answer and use the material directly in his lectures.

      I see your point, and that is exactly what you would argue in court. But the counter would be that the TA should have made his own material using the answer as a guidance. The judge can lean either way. It becomes even more dangerious if the TA didn't attribute the material he used to the source (even if the source is anonymous, you can still explain where/how you got it).

      For code, if it is very generic, it is understandable that you lifted it right off as you can easily make the arguement that it is generic, and public domain. But for complex algorithms, you are seriously taking a risk. Either way, you must always attribute it to your source.

      The issue is copyright law, which in the US, automatically reserves ALL rights to the creator at the time of creation. Fair use and such open up some rights (such as being able to read it), but most rights remain withheld on a case by case basis till granted. Programmers need to think these things before assuming, cause it will get them in hot water.

      The safest route is to always ask for permission before using or reimplement from your understanding (more than just changing lables). And if you are posting, leaving a line like "You are free to what you want with this" or similar really helps. Also, you can ask the entity managing the forum system cause many times they get full rights to whatever users put up there.

    250. Re:Uhhhhh by Anonymous Coward · · Score: 1, Funny

      You're going to get an honest answer about IP theft from the Linux trolls. Can I have some of what you are smoking?

    251. Re:Uhhhhh by u-235-sentinel · · Score: 1

      > Is it legitimate to use source code that's publicly available but doesn't fall under any particular license?

      Of course it is. This kind of thing happens all the time.

      Frankly, I'm glad you don't work for us. The fact that you would consider "rewriting" code that works well just because it was written by someone external to your company doesn't speak well for your sense of business priorities or usage of time.


      Let me guess. You work for Microsoft Corp? ;-)

      --
      Has Comcast disconnected your Internet account? Same here. You can read about it at http://comcastissue.blogspot.com
    252. Re:Uhhhhh by Anonymous Coward · · Score: 0

      int main()
      { (c) owned by me!

      HA good luck now i own all your codes :P Ooo msn look out i think i hear my lawyer calling. good old void for you now!

      And just in case

      push (c) me
      pop (c) me

    253. Re:Uhhhhh by Anonymous+Brave+Guy · · Score: 2, Insightful

      This discussion is pretty scary. Of those posts I've read, a clear majority seem to be blatantly misrepresenting the most basic principles of copyright law. Whether this is out of ignorance or malice I don't know, but in many cases, it has now been moderated informative and/or insightful. Attempting to describe possible ethical actions the OP could take at this point seems to meet more derision and laughter than acknowledgement and agreement. And apparently some of our mods think it's funny to break the law, but trolling to point this out.

      Slashdot used to be better than this, but it seems almost impossible to have any reasoned, objective discussion about copyright-related issues here now. Go ahead and mod me to hell for saying it; I've got karma to burn, and it has to be said.

      --
      If you disagree, post your argument. (-1, Overrated) isn't your personal censorship tool for views you don't like.
    254. Re:Uhhhhh by __aayurq3262 · · Score: 1

      In fact, in most Berne-signatory states, it's more or less impossible to get rid of a copyright completely without first dying and then waiting 70 years. In some countries, even that isn't enough. For those who love to bash the United States, it's worth noting that the pre-Berne Convention copyright system in the U.S. gave creative copyrightable output to the public by default. All creative output automatically was free for the public to use unless the author placed a copyright notice on his work. The Berne convention was based on the European system where every creative work is locked into non-copyable copyrighted status by default. It's the difference between opt-in and opt-out.

      In the U.S. prior to Berne, if you wanted to know whether you could freely use something you could check to see if there was a copyright notice. If not, it was not protected by default. If there was, you could check the date on the notice to see if copyright had expired. It wasn't a perfect system, but IMHO it was better for the public and it was saner than the Berne convention system that the U.S. unwillingly accepted in exchange for recognition of U.S. copyright rights outside the U.S.

    255. Re:Uhhhhh by BasharTeg · · Score: 2, Insightful

      Posting code publicly, aka in the public domain, aka distributing it without a license, does not put the code in the public domain? That's news to me!

    256. Re:Uhhhhh by 1u3hr · · Score: 1
      In any case, if the situation is not resolved quickly and appropriately, I would be planning on finding another job as soon as possible, since you really don't want to get caught up in any potential legal action

      It's 200 lines of code someone published, deliberately, without any copyright or other notice. While that is not quite the same as public domain, the author has very little claim to anything aside from attribution.

      That "even the comments are the same" suggests the guy who copied it wasn't trying to cover his tracks. Every Comp Sci student knows that when copying someone else's homework you change the comments and variable names at least. In other words, forget about it. No one was hurt, nothing was "stolen". If it comes to light, play dumb.

      But when I read some of these "Ask Slashdot" scenarios, I often suspect they're carefully constructed fairy tales, made up to provoke controversy, not to solve a real world problem. Since the poster has gone public with this posting, he would be in deep shit should he do anything except make a full report of it to his superiors. And making this embarrassing transgression public would probably mean the end of his career. But as I said, likely none of this is real.

    257. Re:Uhhhhh by blueskies · · Score: 1

      Correct. In the US that is the case. A license just grants additional right to people. Once you affix your creation to media, it automatically receives copyright protections.

    258. Re:Uhhhhh by Anonymous+Brave+Guy · · Score: 1

      I'm sorry, but your statement about the author having little claim to anything simply isn't true.

      As for your advice, you're advocating breaking the law because you think you can get away with it, in reply to a question from someone who seems to want to do the right thing. That's unhelpful, unethical, and if things go wrong, dangerous legally as well.

      As for your "it's all just a fairy tale" theory, that sounds like someone who's never seen a colleague get screwed because of something like this even though it wasn't really their fault. The result can be summed up in two words: career dead. Why on earth would you advise someone to risk it, when right now they've done nothing wrong and have several practical ways to avoid getting shafted?

      --
      If you disagree, post your argument. (-1, Overrated) isn't your personal censorship tool for views you don't like.
    259. Re:Uhhhhh by JoelKatz · · Score: 3, Insightful

      "Posting code publicly, aka in the public domain, aka distributing it without a license, does not put the code in the public domain? That's news to me!"

      Then you've been under a rock for the past 35 years or so. A split second of common sense would show how crazy your claim is. Songs are played on the radio, which is precisely akin to a public post. So can I record them off the radio and sell copies?

    260. Re:Uhhhhh by Anonymous Coward · · Score: 1, Funny

      >Do you have any link to support your claim?
      >Most of TCP/IP stack both in Novell and MS Windows is from BSD code.

      Do YOU have any link to support your claim?

    261. Re:Uhhhhh by Java+Pimp · · Score: 3, Insightful

      Slashdot used to be better than this, but it seems almost impossible to have any reasoned, objective discussion about copyright-related issues here now.


      The sad part is 3 or 4 years ago, the Slashdot groupthink would be all in favor of sharing free information in public forums because information wanted to be free. That was the foundation of the internet and the origin of Usenet in the first place... i.e. a Users Network. But today, with copyrighted this and imaginary property that and patented other thing..., the consensus is no longer in support of the free exchange of information that was so dominant but rather the brainwashed "damnit you better adhere to the letter of the law or face serious consequences" groupthink.

      Meanwhile, while this flame war is taking place here on slashdot, the users over at Usenet continue sharing information with each other freely as has been done for nearly 30 years now without concern and without thought of the cold chill of a copyright lawsuit crawling up their spine.
      --
      Ascalante: Your bride is over 3,000 years old.
      Kull: She told me she was 19!
    262. Re:Uhhhhh by baxissimo · · Score: 2, Informative

      I think Aunt Tillie and her recipe for gingerbread cookies is a better analogy.
      Or Bob Villa's instructions for how to build a deck.

      Computer code is a series of instructions for how to do something. It's not a work of art.

      I don't think Aunt Tilly or Bob can refuse others the right to use the series of instructions for making a cookie or building a deck. That would be ridiculous. The cookie police knocking on your door saying "sorry but you have to add the flour *after* the sugar or you owe Aunt Tillie a licensing fee". Absurd.

      That said both Aunt Tillie and Bob *do* have a copyright on the exact words they wrote. So you can't just paste their instructions verbatim into the new cookbook or home improvement guide you're writing without their permission.

      IANAL

    263. Re:Uhhhhh by ClosedSource · · Score: 1

      We're not talking here about copying an idea or a mathematical result, but a word for word duplication.

    264. Re:Uhhhhh by JoelKatz · · Score: 1

      I agree. If they had followed the recipe in his code in their own code, they'd be just fine. But they took his instructions verbatim and incorporated them into their own. *That* requires permission.

      They didn't take his ideas, they took the precise way he chose to express those ideas.

    265. Re:Uhhhhh by 1u3hr · · Score: 1
      As for your advice, you're advocating breaking the law

      What law, in particular? I know a little about copyright law. I'm pretty sure if it came to court, damages if any would be minimal considering the way the orignal author openly published his code. Of course, just going to court would be immensely time consuming and expensive, so it's a situation to be avoided if at all possible. Because of that, I'd just talk to the guy who used the code and if he didn't want to do anything about it, I'd send him a memo to put it on the record that he was responsible.

      As for your "it's all just a fairy tale" theory, that sounds like someone who's never seen a colleague get screwed because of something like this even though it wasn't really their fault

      I didn't say that this situation could not have occurred. But it strains my credulity to believe that it happened to the poster. If it had, he would be a compete idiot to share it with the world on "Ask Slashdot". He would be almost sure to lose his job now whatever he does, as he's publically admitted liability and just about invited a law suit from someone who would have otherwise been totally unaware of the situation. If he existed.

    266. Re:Uhhhhh by Anonymous+Brave+Guy · · Score: 1

      What law, in particular? I know a little about copyright law.

      Apparently not, since you're openly advocating an obvious infringement of it in pretty much any nation that is a signatory to the Berne Convention. It's not as though this is a particularly technical question: the work is automatically subject to copyright, the company has copied it without permission, and the copy does not appear to be fair use/fair dealing/whatever it's called in their jurisdiction.

      I'm pretty sure if it came to court, damages if any would be minimal considering the way the orignal author openly published his code.

      I don't see how you can possibly know that without knowing the nature of the code and any value it might have had for the copyright holder, whether any statutory damages might apply, and more generally the legal environment in whatever jurisdiction we are talking about.

      In any case, even if there are only token actual damages, you might wind up incurring heavy legal costs (particularly if you're in a loser-pays legal system) and/or suffering indirect damage if the court prohibits further distribution of the work at an inconvenient time.

      As I noted in another post, one of the differences between the professionals and the amateurs is that the pros are generally smarter than this. It just isn't worth risking this sort of thing for 200 lines of code. For that matter, it's not even worth paying your lawyers to track down what agreements apply to such a short snippet. Just get your own developer(s) to write the equivalent in-house instead.

      I didn't say that this situation could not have occurred. But it strains my credulity to believe that it happened to the poster.

      Why would he make it up? TFA seemed reasonable enough, and I've certainly encountered similar situations from a third party perspective more than once during my career.

      --
      If you disagree, post your argument. (-1, Overrated) isn't your personal censorship tool for views you don't like.
    267. Re:Uhhhhh by Anonymous+Brave+Guy · · Score: 3, Insightful

      Extreme groupthink isn't healthy in any direction, precisely because it tends to trample on any dissenting views, no matter how valid.

      Information doesn't want to be free. Information doesn't want anything at all. It simply exists, and it can be shared by those who have it. (The argument that "you can't prevent it being shared, so sharing it must be OK" is unhelpful: you can't realistically prevent me committing many evil acts, but that doesn't mean society should condone my doing so by legalising them.)

      Similarly, empty-headed support for any copyright law is unhelpful, because you start equating the current law with ethics, which is always a dangerous path to follow. The law should follow ethics, not the other way around.

      However, in this discussion, the original question seems to relate to a real situation, and therefore what is called for is a real answer based on real laws as they stand today. Misrepresenting those laws, whether because you happen to disagree with them or because you simply don't know what you're talking about, doesn't help the OP to solve his problem, and that's why I object to many of the replies and moderations in this discussion.

      --
      If you disagree, post your argument. (-1, Overrated) isn't your personal censorship tool for views you don't like.
    268. Re:Uhhhhh by mr_e_cat · · Score: 1

      Surely if no copyright notice attached then anyone can copy it? Otherwise what is the point of a copyright notice?

    269. Re:Uhhhhh by 1u3hr · · Score: 1
      Apparently not,

      I've actually dealt with real world copyright contracts and disputes.

      I don't see how you can possibly know that

      According to TFA, it was 200 lines posted in a newsgroup, by the author. That pretty much shows how much he valued it. It would be easy to show a court that whole newsgroups are devoted to similar sharing, in the real sense, when the person offering the code created it. Copyright cases do take into account the value of the thing being copied, and particularly any loss sustained by the creator. In this case, no loss could be shown, and his posting it in a newsgroup without any copyright notice precludes him from claiming statutory damages.

      Why would he make it up?

      To get on Slashdot. Same as any "FP!" idiot. As I said, you would be insane to expose this to the world, as it will be now on record forever after.

      Just look at older "Ask Slashdot" posts and tell me how many you think are embellished if not completely fictional. A high percentage of stories with sources turn out to be lies, hoaxes, or completely misrepresented, let alone these anonymous little anecdotes.

    270. Re:Uhhhhh by Eivind+Eklund · · Score: 1

      Perhaps the code was posted by magical faries, but that doesn't mean shit. The OP didn't say where it came from, and the implication was that there was no explicit license associated with the code, otherwise why bother asking. That being the case, social norms don't mean shit when you go before a judge. Actually, they can give rise to Estoppel. The definition of estoppel (from Wikipedia):

      Estoppel is a legal doctrine recognised both at common law and in equity in various forms. It is meant to complement the requirement of consideration in contract law. In general it protects a party who would suffer detriment if: * The defendant has done or said something to induce an expectation * The plaintiff relied (reasonably) on the expectation... * ...and would suffer detriment if that expectation were false. Perfectly reasonable for this case. Of course, this assumes that it was the original author that posted the code, not somebody else.

      Eivind.

      --
      Doubting the existence of evolution is like doubting the existence of China: It just shows that you're uninformed.
    271. Re:Uhhhhh by LiENUS · · Score: 1

      Mmmm... that's a bit of a stretch. Slashdot does reproduce his code anytime someone does a page load.

      They do so on his behalf at his request.

    272. Re:Uhhhhh by JoelKatz · · Score: 1

      It's really clear that you don't understand the first thing about copyright and haven't spent even a minute thinking about what you post. On the off chance that you're not trolling, consider for a second what would happen if what you said were true.

      Someone copies something I wrote, without permission, and posts it with no copyright notice. Other people see that post and assume they can copy it. What happens?

      No, a copyright notice is not necessary. Have you been under a rock for 35 years? A copyright notice, as it name suggests, is just a *notice* of the copyright. It tells you who holds the copyright and the date of the copyright. If it wasn't copyrighted already, there would be nothing for the notice to give you notice *of*.

      When was the last time you heard a song on the radio with a copyright notice in it? Can you copy them?

    273. Re:Uhhhhh by OSPolicy · · Score: 1

      (As a side note, it's entirely possible based on what you've told us that someone took the code from your company and posted it on the web, thus making your guy blameless and the web site the infringer.)

      Do you want practical advice or legal advice? As a practical matter, if the original author posted his code with no license and no way to contact him and no instructions about how to get rights to make a copy, he doesn't care. He intends that people will use the code however they use it and that's the end of the matter. If the version that you have at work has deleted the name of the author from the comments then that probably wasn't what the original author would have wanted, but other than that leave it alone.

      So if you want practical advice, that's it. Case closed, stop reading. If you want legal advice then do you want practical legal advice or theoretical legal advice? If you want practical legal advice, start with 17 USC 501(b): The legal or beneficial owner of an exclusive right under a copyright is entitled... to institute an action for any infringement of that particular right committed while he or she is the owner of it.

      That means that the police aren't going to come knocking on your door. You get in trouble only if the copyright owner "institutes an action," meaning files a lawsuit. As a practical matter, it isn't going to happen, case closed, stop reading.

      Why isn't that going to happen? Because the remedy (the cash that the copyright owner gets *IF* he wins) is defined in 17 USC 504(c) and could be as low as $200. It could be in the range of "not less than $750 or more than $30,000 as the court considers just." However, the key there is not "$30,000." The key is "as the court considers just." Does the court want to encourage every bozo who ever posted something to the web to clog the courts with paper? No. Here, what "the court considers just" is more likely to be "the court considers just having the bailiff throw all of your asses out of here and smack you upside yo' heads just for good measure to be a damned fine idea."

      Also, "[i]n a case where the infringer ... was not aware and had no reason to believe that his or her acts constituted an infringement of copyright, the court in its discretion may reduce the award of statutory damages to a sum of not less than $200." This is an interesting clause because it uses what is called a subjective standard. That means that the court does not look to some objective measure of reasonableness, but rather considers what the subject thought. It talks about whether the "infringer was not aware" and whether the infringer "had no reason to believe." Is your colleague a copyright lawyer? If he is, he probably had reason to know the details of copyright protection for things on the web. If not, there's a decent chance that the judge is going to drop the penalty to $200 (see discussion above about the judge wanting to send a message about the likelihood of getting rich by clogging his courtroom with borderline frivolous claims).

      So that's your practical legal advice.

      Do you want ironclad legal advice on how to absolutely avoid liability? Here it is: go kill yourself now. If you do anything else, there's going to be some legal theory somewhere that will allow someone to impose some sort of legal liability for something at some time.

    274. Re:Uhhhhh by Anonymous Coward · · Score: 0

      >I shudder whenever I hear sentences like "looking for a chance to lead a moral
      >crusade rather than get the job done." Getting the job done can apply to all
      >sorts of things (and has).

      ooohhhh...you shudder....

      Let me tell you something. For those of us with a half-way decent work ethic, "getting the job done" implicitly means doing it the most proper sense.

      So don't your panties in a wad as you shudder in your moral outrage over a trite phrase.

      If you can't get the job done, get the hell out of here.

    275. Re:Uhhhhh by rhendershot · · Score: 2, Interesting

      Regarding the OP, I'm siding with the "forget it and leave it be" camp. If you don't make a fuss, the only person that could get in potential trouble if it turned out to be rotten would be the guy who wrote it.


      "Leaving It Be" isn't an option either. The OP found the problem in researching a bug. Since that needs to be fixed and since the forum post came up in his search it's possible that he'll need to use fixes from forum replies. It then becomes obvious that he perpetuated the original mistake (if there was one- as others have pointed out the code may have originated with the lead developer who posted to the forum as well as using some of his base code in the company project).

      I think he has reason to be careful. It's not clear from the OP, greenrom, how old the code is. Even a few years ago there was much less attention paid to the ethics of using publicly posted code. Greenrom's management might very well be more concerned about this in today's climate than when the original decision was made.

      I think he has reason to be concerned as well. One smell. Could there be two? Maybe there is a lot of code lifted by the lead developer. It's every associate's responsibility to act to protect the company. Not knowing that answer makes approaching the developer one-on-one a risky proposition. To protect himself the LD may well begin finding fault with greenrom's work in an effort to have him fired. Flank assaults like that are harder to fight than head-on attacks in some kind of audit or investigatory situation.

      My action (given the brevity of information) and this is not legal or other type of advice, would be to email boss, Cc the lead, subject: need clarification for license. body: While researching for a bug fix I stumbled on code significantly similar to ours. Pls be aware that some fault may exist in at . ref: These code blocks are nearly identical.

      Simple, factual and non-accusatory. No further explanation about what was being searched or the possible impact or anything else as that is a management problem. Also, managers tend to only read the first three sentences. btw- redundancy intended. Make sure the point is clear.

      As to the poster who proclaimed some defect in the OP for having used the internet to help him fix the bug. That's just ridiculous. It's a HUGE time saver.
    276. Re:Uhhhhh by rhendershot · · Score: 1

      that was supposed to be ...fault may exist in: CODEFILE at: CODEBLOCKS ref: FORUMURL

    277. Re:Uhhhhh by pla · · Score: 1

      Their bag of tricks they bring with them must ALSO be not used.

      I don't mean this rudely, but... Good luck with that.

      Granted, good programmers don't just depend on a personal library of preexisting solutions, they excel at turning big problems into smaller easily-solveable problems. When it comes time to actually implement those solutions in code, however, even the best of coders use their own personal "bag of tricks". Whether explicitly, by actually importing source snippets, or implicitly by virtue of simply "knowing" how to do something in code, you physically can't avoid someone using what makes them good at their job to do their job.

      Put another way - I know (in the "understand the math behind" sense) perhaps half a dozen ways to do an FFT. If you stuck me at a computer and asked me to implement one of those for you cold, it would still look very similar to every previous time I used that same algorithm - Which in turn would look vaguely similar to the manner in which my original source presented the algorithm. You just can't get away from that, and "corporate policies" have no say in the matter.


      As about the only way you could achieve that stated goal, you would need to hire non-programmers and make them do clean-room implementations of whatever algorithms you need. Otherwise, you get their preexisting skills - All of them.

    278. Re:Uhhhhh by dynamo · · Score: 1

      Are you fucking kidding me?

      The only thing you are required to do when using publicly available, non-restricted code in your work code, is the same thing you would be required to do when not using it: make damn sure that it does what it's supposed to do, does it well, and doesn't do anything else.

      If you rewrite it, and want the same level of reliability as you can expect from code posted in a forum for a while, make sure to post your rewritten code for peer review and then wait for the flood of corrections.

      - Paul

    279. Re:Uhhhhh by dynamo · · Score: 1

      Uh, brave guy, your correction is wrong. There is nothing illegal about sharing of accumulated information in a technical discipline.

      science != crime

    280. Re:Uhhhhh by dynamo · · Score: 1

      It just isn't worth risking this sort of thing for 200 lines of code. For that matter, it's not even worth paying your lawyers to track down what agreements apply to such a short snippet. Just get your own developer(s) to write the equivalent in-house instead. Do you work for Microsoft?
    281. Re:Uhhhhh by Anonymous+Brave+Guy · · Score: 1

      No. The code in question is not unrestricted just because it's available for viewing on the Internet. Publishing on-line does not mean giving up copyright, and no matter how much sarcasm and profanity you put in your posts, this does not change.

      --
      If you disagree, post your argument. (-1, Overrated) isn't your personal censorship tool for views you don't like.
    282. Re:Uhhhhh by shentino · · Score: 1

      Teehee.

      It would actually be true if it weren't for such a thing as "prior art" :)

    283. Re:Uhhhhh by Naitraen · · Score: 1

      The point of a copyright notice, is exactly to let other people know what they are allowed to do with the information that is being released. It's in some respects like a party invitation - being invited to someone's house on a certain date and time, does NOT give you permission to come into that person's home without notice at any other time. Even if I use the traditional phrase of departure to you, and say "my home is always open to you," that does not mean I want you to come uninvited into my house and keep my wife company when I am gone. Doing that in many places around the world is a license to getting yourself killed without a question. Likewise, posting something in a public place is not only NOT an invitation to use it as if it were yours, but is traditionally, especially in the US and other UK-influenced countries, the means to make sure that others CANNOT use it as if it were freely available. A copyright notice is used to let other people know that it is okay to do certain things with the revealed information. A warning is just a courtesy to remind someone that it is not okay to treat that something as if it had not author/owner/protector.

      --
      "Distrust those, in whom the impulse to punish is great." -- Friedrich Nietsche
    284. Re:Uhhhhh by babbling · · Score: 1

      You incited the "infringement" because you posted it. Good luck with that case.

      If you had posted some code on your website and someone else decided to copy it and put it on their own website, you would probably have a case.

  2. I can help by Anonymous Coward · · Score: 5, Funny

    I'm a lawyer. Please contact me about suing some people for lots of money.

    1. Re:I can help by maxwell+demon · · Score: 1

      I'm a lawyer. Please contact me about suing some people for lots of money. Well, I for one would prefer if my lawyer is no coward, especially not an anonymous ones.
      --
      The Tao of math: The numbers you can count are not the real numbers.
    2. Re:I can help by Anonymous Coward · · Score: 0

      This fool didn't shoot, shovel, and shut up - like any normal farm..err programmer would do. Alberta beef anyone?

      Why doesn't the OP go cry to his mommy - in the real world you survive on the backs of other people. Do like any other normal person and file in your "possible blackmail & extortion" folder and protect your own ass. Think of it as a possible get out of jail free card (but I don't see how anyone can defend code posted in an open forum as IP).

    3. Re:I can help by Anonymous Coward · · Score: 0

      I am a lawyer also, please contact me about giving all your money to me.

    4. Re:I can help by Anonymous Coward · · Score: 0

      Damn you, I was busy chasing an ambulance.

      Some partner.

  3. Ask a lawyer, not Slashdot by sconeu · · Score: 1, Insightful

    n/t.

    --
    General Relativity: Space-time tells matter where to go; Matter tells space-time what shape to be.
    1. Re:Ask a lawyer, not Slashdot by d34thm0nk3y · · Score: 1

      Ask a lawyer, not Slashdot

      Normally, such a redundant comment does not add to the discussion but I have seen several posts in this thread with factually incorrect legal information modded up. I would exercise liberal salt usage...

  4. Bigger problem by Anonymous Coward · · Score: 0

    Lead: How does the code work?

    Developer: I don't know.

    1. Re:Bigger problem by maxwell+demon · · Score: 1

      Lead: How does the code work?
      Developer: Very well.

      SCNR

      --
      The Tao of math: The numbers you can count are not the real numbers.
  5. Well... by Anonymous Coward · · Score: 5, Informative

    No license == normal copyright rules apply. You can't do anything with it unless the author gives you permission (licenses do this). What you need to do is either 1) Replace the offending code or 2) Contact the author and find out what the terms on the code are / negotiate a deal.

    1. Re:Well... by Anonymous Coward · · Score: 0

      Wouldn't 200 loc fall under fair use?

    2. Re:Well... by Kittown · · Score: 1

      I've been assigned a task to find all occurrences of borrowed code in the project on my previous job and handle all related issues. First I tried to remove the code in each case (is is very often not really needed anymore). Second thing to is to try to find the license. If that does not help, try to find another source for the same code with a liberal license (which often happens to be the original source with multiple derived copies on the web). Next step is to clarify issue with the author if there is no license but you have reason to believe that the original intention of the author was to share code freely. If that does not help, return to step three and go backwards down to step one.

      Is is pretty boring most of the time, but there was a case where I had to talk one of the very well known MSDN Magazine column authors into changing/clarifying the text of his license by contacting him. He had ambiguous license but obvious intention to share code freely, so the only problem was to get the attention.

    3. Re:Well... by mqduck · · Score: 1
      Hopefully overzealous mods won't mod me down as Offtopic (to boost their self-esteem? I don't know) but...

      No license == normal copyright rules apply I don't get why everyone here on Slashdot uses the double equal signs in cases like this. Doesn't that make your sentence a question?

      if(No license == normal copyright rules apply)
      {
              what goes here?
      } Now this means what I think you want to mean:

      No license = normal copyright rules apply;
      --
      Property is theft.
    4. Re:Well... by maxwell+demon · · Score: 1

      Hopefully overzealous mods won't mod me down as Offtopic (to boost their self-esteem? I don't know) but...

      No license == normal copyright rules apply I don't get why everyone here on Slashdot uses the double equal signs in cases like this. From C syntax. Or from C++, C#, Clean, D, Java, Haskell, MAXScript, Perl, PHP, Python, Tcl, and probably a bunch of other languages.

      Doesn't that make your sentence a question? No. It makes it a boolean expression. Or an integer expression, if you are using C.

      if(No license == normal copyright rules apply)
      {

              what goes here?
      } There's no if. The implied statement is

      assert(No license == normal copyright rules apply);

      Now this means what I think you want to mean:

      No license = normal copyright rules apply; No. That would be an assignment, i.e. an attempt to change "No license".
      --
      The Tao of math: The numbers you can count are not the real numbers.
    5. Re:Well... by JoelKatz · · Score: 1


      No, fair use doesn't work that way. I'm assuming he took the entire piece of code, so he only took 200 lines because there only were 200 lines.

      Now, someone might argue that because the work is so short it isn't entitled to copyright protection. But I don't think 200 lines is anywhere near short enough.

      If he took 200 lines from a 560,000 line work, that would weigh in favor of a finding of fair use but wouldn't make it fair use automatically.

      One of the biggest problems with fair use is that the rules for deciding what is or isn't fair use are so complicated and randomly applied and enforced that it's almost impossible to know ahead of time whether any particular use is fair or not.

    6. Re:Well... by Eric+Smith · · Score: 1

      If he took 200 lines from a 560,000 line work, that would weigh in favor of a finding of fair use but wouldn't make it fair use automatically.
      If the proposed reuse is commercial (e.g., going into a product offered for sale), it is much less likely to be fair use than a non-commercial use would be. That's one of the four prongs of the fair use test applied by courts.

      On the other hand, if the source code was posted in a public forum, that might make it less likely that a court would find that reusing it would deprive the owner of revenue, and that's another prong.

    7. Re:Well... by Anonymous Coward · · Score: 0

      If you publish code in the public arena without a copyright notice it is assumed to be public and without copyright. This is why TV programs broadcast over the public airwaves have copyright notices.

      Besides, why do people publish snipets of code on the Internet in the first place? They are trying to give an example of how to do X or they are asking what they did wrong. In the first case if you publish code showing how to do X your intent is to make it available for use.

      Just think of all the "how to write" C++, Java, PHP, Python, assembler, Pascal, LISP, etc, etc, etc postings over the years. If there were a legal issue with this 99.99999% of software engineers would be in sued or in jail.

    8. Re:Well... by mqduck · · Score: 1

      Doesn't that make your sentence a question?

      No. It makes it a boolean expression. Or an integer expression, if you are using C. Well I was trying to make analogies. Point is, the statement "No license == normal copyright rules apply" evaluates to true or false, and neither "true" nor "false" was the meaning intended.
      --
      Property is theft.
    9. Re:Well... by Anonymous Coward · · Score: 0

      Didn't the original author publish the code on a public forum? hasn't he therefore voluntarily placed it in the public domain?

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

      No license == normal copyright rules apply You == full of it.

      If you post code on the web to a server that you don't own, either with or without a "license", it can be used by anyone for any purpose. If you post it to your own server and at least include a "re-distribution license", then you might be able to go after those who take a copy from your server for the purpose of making more copies available to others via means you don't control. Get it? Got it? Good.

    11. Re:Well... by Anonymous Coward · · Score: 0

      Bullshit. If it's posted publicly, without a copyright notice, then it's fair game. OTOH, if it has a copyright notice, then you comment is not bullshit.

    12. Re:Well... by skraps · · Score: 1

      "My dog is black." is a true sentence. Every declarative sentence you write is something that you are asserting to be true.

      In C, the == operator compares two things for equality and results in a boolean--the truth value of the equality. It's a perfect match for declarative sentences.

      "color(my_dog) == black" evaluates to true.

      Same thing.

      Using a single equals sign makes sense if you are reading it as the equals of mathematics, which test for equality in the same way the C double-equals tests for equality. But if you use a single equals sign to mean C's assignment operator, then that doesn't make any sense. Unless you are omnipotent or something and you can change the color of your dog just by uttering a sentence.

      --
      Karma: -2147483648 (Mostly affected by integer overflow)
    13. Re:Well... by mqduck · · Score: 1

      Well, as I said to the reply before you, "point is, the statement "No license == normal copyright rules apply" evaluates to true or false, and neither "true" nor "false" was the meaning intended." I suppose I should have added from the beginning the point that it doesn't imply whether is IS true or false.

      --
      Property is theft.
    14. Re:Well... by maxwell+demon · · Score: 1
      "Well I was trying to make analogies." Is a statement. As such, it's logically either true or false. Your intent of course was to claim that it's true. That's how natural language works: By making statements, you actually claim them to be true. So if someone using pseudo-C "No license == normal copyright rules apply", he also claims that this is true. Which makes sense, since it's indeed a boolean expression, i.e. something which can be true or false.

      The closest in C is indeed the assert statement: You assert that what you write is true. So basically if you wanted to write your post in pseudo-C, it would look like this:

      assert(Well I was trying to make analogies);
      assert(Point is, the statement "No license == normal copyright rules apply" evaluates to true or false, and neither "true" nor "false" was the meaning intended.);
      --
      The Tao of math: The numbers you can count are not the real numbers.
  6. Due dilligence and move on by dedazo · · Score: 1, Informative
    If there is no copyright claim by the original author then I don't see what the problem is. AFAIK that means it's in the public domain (I'd check the website's disclaimer or terms of use though). Moreover, if the source code for your application is not being released, who the heck cares? It's not like you're shipping some GPL code or library that might nail you to the wall. And I would assume that the person who published it intended for it to be used? I guess I just don't see the problem here. I'm not sure you can even call it "stolen".

    Personally I'd attach a clear comment to that piece of code that reads something like Seems to be derived from [TheUrl]; no license issues as far as I can see. Original adaptation by [YourLeadNameGoesHere] - [YourNameGoesHere] ([Today'sDate])

    At least you'd be doing some due dilligence and making sure no one thinks you're the one who did the copy&paste job. In the unlikely even that there's a problem, at least you'd have something to fall back on that can be audited off your source control repository.

    Applications are full of snippet'ed code copied from all over teh internets, much of which is technically in the public domain since no copyright is claimed (or practically enforced). I don't think anyone cares. Hell, I've seen people copy code from sites that were ripping off original authors on other sites (i.e, codeproject.com). The problem is when you incorporate large swaths of functionality and don't bother to follow the original licenses.

    --
    Web2.0: I love when people Flickr my cuil and digg my boingboing until my google is reddit and I start to yahoo
    1. Re:Due dilligence and move on by Nevo · · Score: 5, Informative
      If there is no copyright claim by the original author then I don't see what the problem is. AFAIK that means it's in the public domain....

      You'd be wrong. (At least in the United States you would.)

      From http://www.copyright.gov/circs/circ1.html: "Copyright protection subsists from the time the work is created in fixed form. The copyright in the work of authorship immediately becomes the property of the author who created the work" and "The use of a copyright notice is no longer required under U.S. law...."

    2. Re:Due dilligence and move on by EvanED · · Score: 2, Insightful

      If there is no copyright claim by the original author then I don't see what the problem is. AFAIK that means it's in the public domain (I'd check the website's disclaimer or terms of use though)

      You'd better take a refresher course in copyright law. The lack of a copyright notice means little; your creations are implicitly copyrighted.

      I may agree with you elsewhere, but you are flat out wrong on that point.

    3. Re:Due dilligence and move on by dedazo · · Score: 1

      You're right, I shouldn't have used the term "public domain". I meant that the code would be freely usable without specific restrictions or conditions.

      --
      Web2.0: I love when people Flickr my cuil and digg my boingboing until my google is reddit and I start to yahoo
    4. Re:Due dilligence and move on by Chuckstar · · Score: 4, Insightful

      I like the idea of commenting the code and moving on.

      Note, though, that posting code on a forum with no copyright notice does not put it in the public domain. IIRC, the lack of copyright notice means that the first move of the copyright owner can not be to sue you, they must first notify you of the violation and give you a chance to fix it. In other words, the law takes into consideration that without a copyright notice you might accidentally copy something you shouldn't and allows for the violator to fix the problem once notified.

      So the worst case is that the copyright owner makes your company change the code at some point in the future. If you put the recommended comment in, your company will know (i) its not your fault and (ii) you were heads-up enough to look into the issue a little further when you noticed it.

    5. Re:Due dilligence and move on by EvanED · · Score: 1

      Also likely not true. Without explicit permission your rights to use copyrighted work begin and end at fair use.

      You could argue that this would be fair use, but I'd imagine it would be hard since it's in a commercial product and, it sounds like, copied entirely and without attribution.

    6. Re:Due dilligence and move on by SheldonYoung · · Score: 1

      Kudos for giving credit, but bad karma to you for completely misunderstanding copyright law. An item is copyright the instant it is created, even if no such copyright statement is present. Without an explicit license stating otherwise you have to assume you are NOT granted a license to use the work in any way.

      Seriously people, many of your posts sound make you sound like high school kids copying each others homework. Have some pride in your work and the work of others.

    7. Re:Due dilligence and move on by Merk · · Score: 1

      Which isn't true either. You have zero right to copy it or use it in any way until the author gives you those permissions.

    8. Re:Due dilligence and move on by Idaho · · Score: 1

      Is it legitimate to use source code that's publicly available but doesn't fall under any particular license?


      No. In principle, because you don't own the copyright, you are not permitted it to use it in any way unless you obtain a license or written permission from the original author.

      If not, what's the best way to deal with this kind of situation?


      Have the same functionality rewritten by someone who did not see the original ("stolen") code.

      If there is no copyright claim by the original author then I don't see what the problem is. AFAIK that means it's in the public domain


      This is, of course, utter bullshit.

      You don't need to "claim" copyright in any way to have it. Whenever you write anything, you automatically have the copyright on it. Whether enforcing it is feasible (or easy) is another matter, certainly it will help to prove it's yours by putting your name on it, yes.

      In addition, things cannot end up "in the public domain" just because nobody put a copyright notice on it. The public domain is said to be the body of works of which the copyright has expired (i.e. which are written or published over 70 years ago). Apparently it is not even technically possible (according to copyright law, that is) to put things in the public domain by simply stating that they are; although such a written statement could probably be considered a license that allows anyone to do whatever they want with that code.

      IANAL fortunately, so I may be slightly of on the details, but what you're stating above is utterly and completely wrong, that much I'm sure of.

      Moreover, if the source code for your application is not being released, who the heck cares?


      Hopefully you are aware that several GPL copyright cases (e.g. look at busybox) have been won (or settled because it was blatantly obvious they would be won otherwise) by looking at binaries only? For example, by looking at the strings contained in both binaries, or by testing the presence of identical undocumented command line options, features, or easter eggs.

      That being said, I agree with the part that 200 lines is probably considered a trivial amount of code, you could also just write it over from a textbook or whatever, surely nobody is ever going to make a problem about it (that still doesn't mean it's OK btw, just that its very unlikely to get you into any kind of trouble). However it's also the principle of the thing. If copying 200 literal lines of code that you didn't write (and then putting your companies copyright on it) is OK, how about 500 lines? 1000? 2000? Where are you going to draw the line?
      --
      Every expression is true, for a given value of 'true'
    9. Re:Due dilligence and move on by dedazo · · Score: 1
      It depends on the context. If we want to take this to extremes, I would argue that since the code was published as part of an article that details how to achieve something with [insert language/technology here] then implicit copyright (where none is claimed) does not also prohibit "fair use". That does not defeat or circumvent the original copyright in any way.

      But I have no idea where this code was found or how it was obtained, so it's pointless to speculate.

      Didn't Cory Doctorow or someone else publish an article a few days ago detailing how Joe Business violates copyright law to the tune of ninety bazillion dollars every other week by sending emails and scratching his ass? I think the submitter's question is just overreaction. He should just make a note of it and move on.

      --
      Web2.0: I love when people Flickr my cuil and digg my boingboing until my google is reddit and I start to yahoo
    10. Re:Due dilligence and move on by tokul · · Score: 2, Informative

      If there is no copyright claim by the original author then I don't see what the problem is.

      TRIPS.

      • ...
      • Copyright must be granted automatically, and not based upon any "formality", such as registrations or systems of renewal.
      • Computer programs must be regarded as "literary works" under copyright law and receive the same terms of protection.
    11. Re:Due dilligence and move on by Anonymous Coward · · Score: 1, Informative

      You'd be wrong. (At least in the United States you would.)

      It's not just the United States. Here's a map showing countries which have signed the BerneConvention, under which copyright "must be automatic; it is prohibited to require formal registration".

      Hmm, I think I see why the United States had to invade Afghanistan and Iraq and is gearing up to take on Iran...

    12. Re:Due dilligence and move on by Ibag · · Score: 1

      If there is no copyright claim by the original author then I don't see what the problem is. AFAIK that means it's in the public domain

      This is completely incorrect. In the United States, everything is automatically copyright by it's author, regardless of whether they explicitly say so or not. Depending on the forum agreement, they author might have given up the copyright to the forum itself, but it is highly unlikely that the forum agreement gives everybody the right to use the code as they wish. The fact that the code did not come with a license means that you have no license to use the code.

      If code is released under the GPL, then one can use it subject to certain restrictions. If you use GPL'd code without actually abiding by those restrictions, the GPL just says that the license is revoked and that you are committing the exact same crime (subject to the exact same penalties) as using code with no license.

      You might be right that nobody cares, and if that is the case, then nothing will come of this theft of code. However, saying that it is in the public domain and that one should use it without fear is perhaps the worse legal/business advice I have ever seen on slashdot.

    13. Re:Due dilligence and move on by mr_zorg · · Score: 2, Interesting

      Sure, it might be copyrighted inherently, but clearly the public posting of source code in a self-help forum provides an implied license to use...

    14. Re:Due dilligence and move on by RightSaidFred99 · · Score: 1

      Huh? In high school, there is an expectation that I do my own work so I can learn the material. In "real life", it's kind of stupid to be all high minded and waste a bunch of time on some little task if someone's already done the work. Legally, I wouldn't give a shit in this instance because the author won't ever know and it would be a 1:1,000,000,000 shot that he could/would sue. Ethically, using the code causes no one harm. Ergo, just use the damn code and shut up about it.

    15. Re:Due dilligence and move on by powerlord · · Score: 1
      Exactly. We also don't have any idea how 'simple' the code is.

      ex.

      # Check if I has a value
      if ($i) {
      } else {
      }

      Anyone with the above lines of code in their Perl scripts must immediately cease and desist their use of my Copyrighted material.
      --
      This space for rent. All reasonable inquiries will be entertained at proprietors discretion.
    16. Re:Due dilligence and move on by dedazo · · Score: 1

      If copying 200 literal lines of code that you didn't write (and then putting your companies copyright on it) is OK, how about 500 lines? 1000? 2000? Where are you going to draw the line?

      I don't know. The MPAA for example might be the right people to ask, since they keep redefining what constitutes "fair use" with DMCA takedowns to YouTube for video and movie clips. 5 minutes of a 2-hour movie or 200 lines out of a 20,000 LOC application, what do you think is the limit?

      The reality is that under current copyright law the limit is whatever the copyright owner says it is, unfortunately. But in the case of code, if there is no explicit license attached to it then it probably constitutes fair use. So, it's one thing to copy 200 lines off a blog post and quite another to yank them from a source file in the SVN repository of a project on SourceForge, which is much more likely to have a license restricting use or distribution, or both. Thus the point about context I made elsewhere in this thread. The submitter of this question didn't really provide any information about that.

      And yes, you're right. I shouldn't have used "public domain" there.

      --
      Web2.0: I love when people Flickr my cuil and digg my boingboing until my google is reddit and I start to yahoo
    17. Re:Due dilligence and move on by Merk · · Score: 1

      You're right, fair use is always an option, but fair use would probably never cover taking a bit of code and using it unchanged in a commercial application.

      Since we don't know where the code comes from, etc. the best assumption is that you have no rights to do anything with it.

      I'm sure it's true that the average person breaks tons of laws every day, in particular copyright violations. That doesn't mean they're safe from lawsuits. The average person might get the Jammie Whatzerface treatment and suddenly be liable for hundreds of thousands in damages.

    18. Re:Due dilligence and move on by LiENUS · · Score: 2, Interesting

      So the worst case is that the copyright owner makes your company change the code at some point in the future. If you put the recommended comment in, your company will know (i) its not your fault and (ii) you were heads-up enough to look into the issue a little further when you noticed it.

      Bad idea, the comment is enough to acknowledge that the company (or an agent on its behalf) knew that the ownership of the code was legally questionable and could be used to remove any protection that the company could have to claim permission to distribute the code. If the copyright owner decides to sue, best case scenario hes able to sue the company successfully, worst case scenario hes able to sue the person who wrote the comment acknowledging the muddied ownership of the code.

    19. Re:Due dilligence and move on by Jerry+Coffin · · Score: 1

      If there is no copyright claim by the original author then I don't see what the problem is. /

      Then you have no clue of what you're talking about. Many of the other posts in the thread have bad information as well though, so don't feel too badly about it.

      For those in the United States, the definitive source would be the Library of Congress copyright web site. Since you're talking about code, you probably also want to read Circular 61, devoted to "Copyright Registration for Computer Programs".

      For those outside the United States, the details change, but in most countries the basics remain the same. Specifically, the copyright laws in most countries follow the rules of the Berne convention. Of course, that's only the law itself -- enforcement varies much more widely. In some countries, it's hardly enforced at all, while in others (e.g. the US) there's almost no question the other laws are routinely broken to help enforcement even when there's little or no real evidence of copyright infringement having taken place at all (e.g. tens of thousands of RIAA cases).

      --
      The universe is a figment of its own imagination.
    20. Re:Due dilligence and move on by SheldonYoung · · Score: 1

      Please send me all the code you have created, ever. I want to give it to someone who may want to use it some day.

    21. Re:Due dilligence and move on by 99BottlesOfBeerInMyF · · Score: 2, Informative

      Sure, it might be copyrighted inherently, but clearly the public posting of source code in a self-help forum provides an implied license to use...

      Nope.

    22. Re:Due dilligence and move on by JavaRob · · Score: 1

      Not so clearly, and it's not legal even if that *was* the poster's intention.

      First, was the poster copying their *own* code into the forum post? Or was it out of an open source project, or out of his paid corporate work? You don't know. They could have very easily been posting from an OSS project they were currently working on.

      Second, if you don't specifically give license details, the legal license is "none". This is how the law works, regardless of how logical or illogical it is, and you can get just as screwed even if the law seems illogical to either person involved. If I post code here on Slashdot (somehow getting it past the lameness filters...) in reply to a question you specifically asked... you *still* have to ask for licensing details before you can use it. Look at the bottom of this page - they clarify it there.

    23. Re:Due dilligence and move on by maxwell+demon · · Score: 1

      IANAL, but I think that posting code without explicit license on the forum, unless the rules of the forum explicitly say otherwise, only gives you a permission to read the code (e.g. to learn from it, or to allow you to help him with the code, f.ex. by pointing out errors). Of course the context in which the code was given may imply a more permissive license (e.g. I guess if it was an answer to a question like "does anyone have some code I could use", posting the code in the answer probably implies a license to use it).

      --
      The Tao of math: The numbers you can count are not the real numbers.
    24. Re:Due dilligence and move on by Anonymous Coward · · Score: 0

      That would be the same as saying: He posted an image on his web site, as long as he doesn't provide a license, it must be in the public domain and i can do whatever I want with it.

    25. Re:Due dilligence and move on by moderatorrater · · Score: 1

      The forum itself might have a disclaimer where the person posting in it relinquishes all claim of copyright on the post. While it's true that it's automatically under copyright, it's equally true that they can give the right away as soon as they post it to a forum.

    26. Re:Due dilligence and move on by ceoyoyo · · Score: 1

      Let's see, this code was posted to a public web site. That means it's public domain, right?

      GPLed code is posted on public web sites, so it's public domain too, right?

      Wrong. Without an explicit statement granting rights, any work is copyrighted with all rights reserved by the author.

      It's possible as a condition of posting to the web site that posters transfer the contents of their posts to the public domain, or grant the right to use contents without attribution, but it's doubtful.

    27. Re:Due dilligence and move on by einhverfr · · Score: 1

      This might be an interesting question though: If the code is in the public forum providing help for a problem, then one wonders if there is an implicit license to it. Better ask a lawyer in this case, and I would probably avoid relying on such.

      --

      LedgerSMB: Open source Accounting/ERP
    28. Re:Due dilligence and move on by Anonymous Coward · · Score: 0

      Comment the code as to where you found that it was originally posted.

      Check the terms for that site. They may require that all proprietary rights be waived for all posts that are made to the site, in which case, your questions and concerns are moot. Any liability arising from use of the code would most likely be the responsibility of whomever posted the code to the forum.

    29. Re:Due dilligence and move on by Jherico · · Score: 1
      >(e.g. I guess if it was an answer to a question like "does anyone have some code I could use", posting the code in the answer probably implies a license to use it).

      Seems like it should be, but isn't. Maybe the responder is taunting the person making the request. No license is no license, period.

      --

      Jherico

      What can the average user can do to ensure his security? "Nothing, you're screwed"

    30. Re:Due dilligence and move on by dkixk · · Score: 1

      i++ Ha! Now all your for loops are belong to us!

    31. Re:Due dilligence and move on by jasen666 · · Score: 1

      Black, meet white. We banished gray, he was too annoying.

    32. Re:Due dilligence and move on by RightSaidFred99 · · Score: 1

      If I post it on a forum somewhere of my own free will (which I have done sometimes), you are certainly welcome to it. It's kind of like how if I put out a non-working dishwasher in front of my house like trash and someone takes it, I'm not too bloody likely to be successful in prosecuting them for theft.

    33. Re:Due dilligence and move on by Anonymous Coward · · Score: 0

      While it's true that it's automatically under copyright, it's equally true that they can give the right away as soon as they post it to a forum. ..with the glaring exception that the poster may not have been legally allowed to release the code
    34. Re:Due dilligence and move on by Jherico · · Score: 1

      In the case of 'black' is free and clear with no chance of being sued, and white is 'doing something clearly illegal, open and shut case', gray usually means 'spend $$$ and time finding out whether you're in the black or in the white'. In this case, you want to avoid both white and gray, so they might as well be the same thing.

      --

      Jherico

      What can the average user can do to ensure his security? "Nothing, you're screwed"

    35. Re:Due dilligence and move on by Jherico · · Score: 1

      This is actually probably the worst thing you can do. Commenting the code makes it clear you knew about the violation and did it anyway, which opens you up to all sorts of new damages.

      --

      Jherico

      What can the average user can do to ensure his security? "Nothing, you're screwed"

    36. Re:Due dilligence and move on by DragonWriter · · Score: 1

      IIRC, the lack of copyright notice means that the first move of the copyright owner can not be to sue you, they must first notify you of the violation and give you a chance to fix it.


      This is incorrect. The lack of copyright registration prevents most suits, but the registration must only be filed before suing, not before the infringement occurs. The presence of the notice is an bar to most defenses of innocent infringement to mitigate damages, but the absence of the notice has no bearing on whether or not the copyright holder can sue. This has been the law in effect since March 1, 1989. (see 17 USC Sec. 401 and Pub.L. 100-568.)

      So the worst case is that the copyright owner makes your company change the code at some point in the future.


      No, the worst that could happen is that the company and particular employees are found guilty both of criminal (as any willful infringement for commercial gain is criminal, see 17 USC Sec. 506) and civil copyright infringement, fined, ordered to pay damages, forced to turn over and have destroyed all copies of the infringing program, and specific people involved imprisoned.

      If you put the recommended comment in, your company will know (i) its not your fault and (ii) you were heads-up enough to look into the issue a little further when you noticed it.


      Or they'll know you were aware of a situation that exposed the company to risk, and failed to notify the appropriate people to make a decision about managing that risk.

    37. Re:Due dilligence and move on by Anonymous Coward · · Score: 0

      One issue they talk about at my company is that you do not know for sure that the person who posted the code actually wrote it...maybe they copied it from somewhere else, and maybe it was issued under license. That means that if someone identifies code in your project as being under license, your company could be in legal trouble that way. Food for thought.

    38. Re:Due dilligence and move on by Eivind+Eklund · · Score: 1

      Note, though, that posting code on a forum with no copyright notice does not put it in the public domain. But it may effectively do so, through estoppel.

      Eivind.

      --
      Doubting the existence of evolution is like doubting the existence of China: It just shows that you're uninformed.
  7. It's common sense by Fierythrasher · · Score: 5, Insightful

    When I was in grad school for programming my instructor taught us how to search for the code we needed on the web.

    Moreover in my professional career as a programmer I ran into several stumbling blocks where I couldn't figure something out. I'd google for code, or use helper sites like Tek-Tips where people could either correct my code or provide me new code.

    I'm paid for results, not for originality. If people provide code on the web as tutorial purposes or just as a friendly piece of help then I would be going against my job to not use it.

    Moreover, I ask: If you bought a book on, say, ASP and it had sample code that did exactly what you wanted, would you then rewrite that code so it was not what was in the book? Of course you wouldn't!

    1. Re:It's common sense by Nevo · · Score: 1
      I'm paid for results, not for originality.

      Of course, your employer could be sued for your lack of originality. If you use others' work without their permission, that's a copyright violation. What's so hard to understand about that?

    2. Re:It's common sense by Fierythrasher · · Score: 1, Interesting

      You're saying there's an implicit copyright in every web post, then? So this post I'm typing now, if someone put it in a newsletter, I could then sue them for taking my post which is my copyright? Moreover, again as I stated above, most code samples are found in online tutorials. They're THERE for the purpose of helping you code through a problem. They explain the code step by step and give you the code. Finally, there's only so many ways to code something. Given that I doubt you will find full programs online, what people are taking are usually subroutines at most, a few lines of code to accomplish a specific task at least. When parsing it down to that small of a step, how many ways to write it are there? From my own experience, how many ways are there to code a call to a specific Window handler in Access VBA? I had to look up 2 lines of code to do it, which I found in an online tutorial. Final thought: If you aren't intended to use the code, why is it that most sites have a disclaimer at the bottom that says "Not liable for any problems you have when using this code"

    3. Re:It's common sense by Merk · · Score: 4, Insightful

      If you buy a book on ASP, generally the sample code in there has a license that allows everybody (or at least people who bought the book) to use the code in any way they want. The same can't be said for virtually any code you find out on the web. The default for any new work is for it to be copyrighted and with no license. Unless your use of the copyrighted material falls under Fair Use, you're not allowed to use it; copying the entirety of a code snippet for use in a commercial application is not Fair Use.

      You'll probably never get in trouble for doing this, because probably most people (90%+) would say their posts are in the public domain if asked about it -- but until you've asked them, you have to assume that it's "look but don't touch".

    4. Re:It's common sense by Anonymous Coward · · Score: 1, Informative

      You're saying there's an implicit copyright in every web post, then? So this post I'm typing now, if someone put it in a newsletter, I could then sue them for taking my post which is my copyright?

      That is precisely correct. When you create a written work in the US, you are automatically granted a copyright. No one can use that material unless you expressly allow it. If you read to the bottom of all Slashdot articles you'll see the following notice.

      "All trademarks and copyrights on this page are owned by their respective owners. Comments are owned by the Poster. The Rest © 1997-2007 SourceForge, Inc."

      SF cannot copyright something that belongs to you unless you expressly grant them the right. Therefore the bit about "The rest (c)..."

    5. Re:It's common sense by ducomputergeek · · Score: 1

      Unfortunately, copyright law isn't written by people with common sense.

      --
      "The problem with socialism is eventually you run out of other people's money" - Thatcher.
    6. Re:It's common sense by Se7enLC · · Score: 3, Informative

      Just because you bought a book that came with sample code doesn't mean you are allowed to use it:

      Numerical Recipes (in C, C++, etc), has a restrictive license that only allows you to use the code for personal non-commercial uses. There doesn't seem to be any provision for using those samples in commercial products.

    7. Re:It's common sense by d34thm0nk3y · · Score: 1

      Moreover, I ask: If you bought a book on, say, ASP and it had sample code that did exactly what you wanted, would you then rewrite that code so it was not what was in the book? Of course you wouldn't!

      Most programming books give you an explicit license for any examples. It is usually located in the back or on any discs that come with the book.

    8. Re:It's common sense by Anonymous Coward · · Score: 0
      scroll down:

      All trademarks and copyrights on this page are owned by their respective owners. Comments are owned by the Poster. The Rest © 1997-2007 SourceForge, Inc.
    9. Re:It's common sense by Joe+the+Lesser · · Score: 1

      I agree.

      First of all, what's most important in an algorithm, and most code that is looked online up is not an algorithm but particular obscure library calls that can't possibly be copyrighted.

      But what if you do look upon an algorithm. Changing variables names doesn't make something original anyway, but once you've looked at an algorithm, how can you possibly not steal it???? You can't paraphrase an algorithm. I'm sorry, even if you make it look different, it's still the same thing to the computer.

      How can you tell your boss you have a solution but you can't use it because you didn't think of it yourself. You'd probably get fired. In this way, you can only remain ethical by not searching the net, because once you see the solution, you will use it in one form or another.

      --
      "I only speak the truth"
      Karma: null(Mostly affected by an unassigned variable)
    10. Re:It's common sense by ceoyoyo · · Score: 1

      I hope your instructor in grad school also taught you how to attribute and reference others' work, otherwise you narrowly avoided getting booted out for plagiarism.

    11. Re:It's common sense by Anonymous Coward · · Score: 0

      Yes, exactly.

    12. Re:It's common sense by Fierythrasher · · Score: 1
      Actually he taught us this but told us "you can do this in the real world, but not in college. College is a 'worse than real world' scenario. In college you can't search the net, you can't ask your co-worker, and you can't extend your deadline."

      Smart man, that. So no, I never got through any college assignments, programming or otherwise, by finding the answers on the 'net'. But it has helped me in the "real world."

    13. Re:It's common sense by ceoyoyo · · Score: 1

      Course based masters then? Sure you can search the net and ask your co-worker. But you can't copy exactly what they say, only take their advice. Yes, it's worse than the real world.

      In research you can do all of the above AND use the results, verbatim if you want, but you have to be honest about where that code came from. You can't misrepresent it as your own. I suppose that might be "worse" than the real world, as in, the penalties for unethical behaviour are both more severe and more common. That sounds like "better" to me though, not "worse."

    14. Re:It's common sense by samkass · · Score: 5, Informative

      You're saying there's an implicit copyright in every web post, then? So this post I'm typing now, if someone put it in a newsletter, I could then sue them for taking my post which is my copyright?

      Yes! Now you're catching on! There *is* an implicit Copyright (at least in the United States) on *everything*. Unless the author has agreed to some other license, you need to ask their permission to reproduce it in its entirety (or any use that goes beyond "Fair Use"). Some sites have blanket licenses to everything posted on them that implicitly assigns copyrights of all contributions-- Wikipedia, for example. But if the site hasn't made such arrangements, and the author hasn't made such arrangements, and the "borrower" hasn't made such arrangements, Copyright has been violated.

      As for books, some books grant a license for all sample code in the book to be used by the purchaser of the book in any way. Some don't (Numerical Recipies is the most commonly cited example-- it's an entire book of stuff you're not allowed to use. It's a very annoying book that way, needless to say).

      It sounds like you seriously need to learn a little bit about Copyrights before you get yourself and your employer in serious trouble.

      --
      E pluribus unum
    15. Re:It's common sense by SydShamino · · Score: 1

      probably most people (90%+) would say their posts are in the public domain if asked about it

      Not public domain, no, but with a license that allows quoting and republication on the internet with attribution. (I'm sure one of the Creative Commons licenses would work wonderfully.) Public domain works don't require attribution, so someone else could use my words as their own. That's not acceptable to me or most other posters, I'd assume.

      Whether most posters would allow someone to take their words and include them in a written publication (for example, my new book The Words and Wisdom of Merk (25521)) is a separate consideration.

      --
      It doesn't hurt to be nice.
    16. Re:It's common sense by Anonymous Coward · · Score: 0

      aah, gotta love the flexible morals in closed source, windows development... THERE ARE NONE!

    17. Re:It's common sense by Zironic · · Score: 1

      Yes you could sue them and the tutorial most likely has a text where they explicitly allow you to use their code, if they don't you're actually not allowed to use it.

    18. Re:It's common sense by maxwell+demon · · Score: 2, Insightful

      First of all, what's most important in an algorithm, and most code that is looked online up is not an algorithm but particular obscure library calls that can't possibly be copyrighted.


      The algorithm cannot be copyrighted (it may be patented, though). It's the expression of the algorithm which is copyrighted. So if you take some code, understand the algorithm, and then implement the algorithm with your own code, it's not copyright violation. But if you take the code and copy/paste it into yours, it may be copyright violation.
      --
      The Tao of math: The numbers you can count are not the real numbers.
    19. Re:It's common sense by syousef · · Score: 1

      I'm paid for results, not for originality. If people provide code on the web as tutorial purposes or just as a friendly piece of help then I would be going against my job to not use it.

      Presumably you're also paid to behave ethically and protect your company from exposure to litigation. Just because someone's allowed you to look at their code, it doesn't give you the right to use it without permission or contrary to the permission given.

      Personally I don't believe copyright in it's current form is a good thing. I believe that an author should be entitled to compensation for their work, but not to control over it's use once made public. However that is NOT how the current legal system operates and pretending that it is exposes you and your company to danger. I'm glad you're not my employee.

      --
      These posts express my own personal views, not those of my employer
    20. Re:It's common sense by Anonymous Coward · · Score: 0

      The difference is that you paid for the book... if you downloaded the book illegally it would be a different matter.

    21. Re:It's common sense by Anonymous Coward · · Score: 0

      But the code mentioned in the article wasn't posted on a public domain. One would assume if you post it on a website or in a book you expect people to use it. I don't expect somebody to take code from a project I've been working on.

    22. Re:It's common sense by gillbates · · Score: 1

      When I was in grad school for programming my instructor taught us how to search for the code we needed on the web.

      Hopefully, he taught you more than that. I can understand using another programmer's libraries and code snippets for research purposes, but hopefully you learned something more in school than just how to copy and paste...

      Moreover in my professional career as a programmer I ran into several stumbling blocks where I couldn't figure something out. I'd google for code...

      Oops. Apparently not. At this point I don't know if you're deliberately trolling or honestly clueless. I'm hoping that you googled for code to find the details you didn't know, rather than searching for code which solved your problem.

      I'm paid for results, not for originality. If people provide code on the web as tutorial purposes or just as a friendly piece of help then I would be going against my job to not use it.

      Well, if your employer is the shady type, then your statement is correct. But there's an important, legal distinction between using someone else's code for educational or tutorial purposes and passing it off as your own. It's called copyright infringement, and it is very much illegal, and very possible that doing so will land you in jail. Especially if monetary gain is involved.

      Most employers expect to own the copyright on the code you write for them. If you are a consultant, and have an agreement as such, you might retain the copyright. But what you're suggesting is quite unethical given current copyright law. Your employer has a reasonable expectation that you will follow the law, and that he will have legal right and title to the code you produce. Some employers even have such statements in the employment contracts, i.e., that you agree not to bring into their company any code which you did not create, and that you explicitly assign the copyright to them.

      Moreover, I ask: If you bought a book on, say, ASP and it had sample code that did exactly what you wanted, would you then rewrite that code so it was not what was in the book? Of course you wouldn't!

      Well, you might not, but I certainly would:

      1. For starters, I don't want my project to become the subject of a copyright infringement lawsuit, which would most certainly delay the release, and cost my company untold dollars to defend.
      2. I also wouldn't want to face personal liability for copyright infringement. Not only could my employer sue me for breach of contract, but the copyright hold could also sue me personally for copyright infringement.
      3. If there is monetary gain involved (i.e. you're getting paid), copyright infringement can become a criminal matter. Even if the publisher didn't sue, you could still be prosecuted under federal copyright statutes, some of which carry prison terms.
      4. Granted, this ends up with me reinventing the wheel quite a bit, but that's the price paid for the current legal situation with respect to copyright. Employers understand this, and they're not trying to change the law. They want to own the code you produce, not lease it from someone else.

      I understand that programming is occasionally challenging, but you don't learn how to solve complicated problems by googling for code. Furthermore, if you can't understand how to create a solution to your particular problem, how can you verify the code you copy actually solves the problem? If you can't understand the code, you don't know if it contains bugs or not.

      I could probably rant for quite some time on sloppy programmers, but I'm optimistic that you aren't the type of programmer whose code consists of an unmaintainable, buggy, hodge-podge of code pasted from various sources. You are hopefully the type that takes the time to think about the problem, and if you can't solve it on your own, seeks to learn how by consulting a more educated reference. I'm confident that your googling for code

      --
      The society for a thought-free internet welcomes you.
    23. Re:It's common sense by aminorex · · Score: 0

      It sounds like you need to learn to make a distinction between the wet dreams of litigous barristers and real world pragmatics before you look very silly. Oops too late. /me sees samkass approached by Alan Dershowitz as porno music plays. /me pokes mind's eye out with a fork.

      --
      -I like my women like I like my tea: green-
    24. Re:It's common sense by Anonymous Coward · · Score: 0

      When I was in grad school for programming my instructor taught us how to search for the code we needed on the web. Did your History instructor teach you to search Wikipedia and copy-paste your way through an essay on Abe Lincoln?

      Moreover in my professional career as a programmer I ran into several stumbling blocks where I couldn't figure something out. I'd google for code, or use helper sites like Tek-Tips where people could either correct my code or provide me new code. Absolutely. Voluntary community support pwns. This is why open-source works.

      I'm paid for results, not for originality. But if you work for the "right kind" of people you'll get *promoted* for originality, until you're no longer programming. Which is the point, right? ;-)

      If people provide code on the web as tutorial purposes or just as a friendly piece of help then I would be going against my job to not use it. Yes. This is VASTLY different from View Source. (Which would be an awesome book title.) There is a commercial market in HTML/JS encryption due to code theft. Which is saying something considering how many of the best libraries are free.

      Moreover, I ask: If you bought a book on, say, ASP and it had sample code that did exactly what you wanted, would you then rewrite that code so it was not what was in the book? Of course you wouldn't! But the book was purchased (by yourself or a library), has a license for re-use of its code, and is for the purpose of educating.

      Permit me to crib an attributed /. summary I just clicked on:

      Michael J. Ross writes "When veteran PHP developers have specific and nontrivial functionality that they want to implement in their code, they can do so from scratch, but this can be time-consuming or essentially reinventing the wheel. They can adopt completed code posted in an online discussion forum, but such code tends to be buggy. They can use an open source library or other packaged code, but this approach can oftentimes prove to be overkill. Consequently, many developers prefer focused solutions found in PHP cookbooks, such as The PHP Anthology: 101 Essential Tips, Tricks & Hacks." Again, license is king. You CAN buy Adobe's pro suite for 1/20th the price as a student, but you're not permitted to make money from using it.
    25. Re:It's common sense by tftp · · Score: 1

      I own one book that offers code samples and allows to use them - but only after you apply for, and the author grants you, a written permission (a license) to do so. Some other books that I have offer the samples with no further ado.

    26. Re:It's common sense by limelife · · Score: 1

      If he/she is in Canada, ANYTHING you put in writing doesn't have implicit copyright, if its used in journalistic work its 100% legal to take it and re-write it exactly how it is. However, as a programmer myself, I do know that when I am stumped and am looking for code, I google it, or go to help forums, if I find it I use it, as its out there for a reason, I however would NEVER go to a site, look at its source and then take. If this code was posted on a forum the likly intent was to share it. So I'd take that as a right to use it. Even if its not licensed, it may fall into Creative Commons license, by its virtual existance, and public display.

    27. Re:It's common sense by Anonymous Coward · · Score: 0

      The flow would go something like this:

      Original author finds out about his code being used, say by a tyro contacting him. Author finds out his work has commercial value, and finds out that him forgetting to release it to the public domain perhaps may net him personal gain. The original author wasn't raised properly or is from California and so contacts an attorney who decides to try to get the infringing company to settle out of court.

      The infringing company has a pair and tells the attorney to get bent, and after the requisite glove slapping the jilted plaintiff attorney files civil suit. The defense attorney will probably establish in discovery that the example code was pasted from a larger work. At trial, the fact that a small example snippet of a larger work is precisely the definition of 'fair use' will get a summary dismissal.

      Back in my day, forum posts routinely included public domain language simply to avoid the requests for that language in subsequent posts. And any programmer worth a nickel knew not to touch code without an explicit release. What has the world come to?

    28. Re:It's common sense by Anonymous Coward · · Score: 0

      [quote]You're saying there's an implicit copyright in every web post, then? So this post I'm typing now, if someone put it in a newsletter, I could then sue them for taking my post which is my copyright?

      -- Yes! Now you're catching on! There *is* an implicit Copyright (at least in the United States) on *everything*. Unless the author has agreed to some other license, you need to ask their permission to reproduce it in its entirety (or any use that goes beyond "Fair Use"). Some sites have blanket licenses to everything posted on them that implicitly assigns copyrights of all contributions-- Wikipedia, for example. But if the site hasn't made such arrangements, and the author hasn't made such arrangements, and the "borrower" hasn't made such arrangements, Copyright has been violated.

      As for books, some books grant a license for all sample code in the book to be used by the purchaser of the book in any way. Some don't (Numerical Recipies is the most commonly cited example-- it's an entire book of stuff you're not allowed to use. It's a very annoying book that way, needless to say).

      It sounds like you seriously need to learn a little bit about Copyrights before you get yourself and your employer in serious trouble. [end quote]

      Okay, slow down, wait, wait. "Serious?" Okay, so there's a wrong. What's the remedy? The original author, if he can prove he did not copy it himself, can ask you to stop publishing it; if you don't he can go to court; the court can devise a remedy, which very possibly may be the reasonable -- I would argue most reasonable -- step of paying the original author whatever 200 lines of pretty good code are worth in the market. Which is ... ??? Profit!! (Please note that I did not make any of this up, or suffer the corn sequences.)

    29. Re:It's common sense by Anonymous Coward · · Score: 0

      Exactly it's about results not the law. Even better is to download ASP books without paying for them so you can just cut and paste when stealing the code from them.

    30. Re:It's common sense by Captain+Nitpick · · Score: 1

      Some sites have blanket licenses to everything posted on them that implicitly assigns copyrights of all contributions-- Wikipedia, for example.

      Wikipedia contributors do not assign their copyrights to the Wikimedia Foundation. The site requires contributions to be licensed under the GFDL (or more freely licensed or PD). Not the same thing.

      --
      But then again, I could be wrong.
    31. Re:It's common sense by soupdevil · · Score: 1

      You're missing the top level. In the US, all intellectual property is assumed to belong to the public. Copyright is an exception, with certain exceptions of its own (e.g. time limits, fair use). It does not imply ownership, but the right to make additional copies. Copyright has been continuously enlarged and expanded, but it is still the exception to the assumption of public domain.

    32. Re:It's common sense by nametaken · · Score: 1

      This is exactly how I view it. If the context clearly indicates that the source is meant to be used freely, then I use it. If it's questionable, I ask.

      Snippets offered in responses to other users questions on forums, online tutorials, books I bought, etc. are almost always fair game. Now if someone offers something significant in response to a question for an explicitly OSS project... then I'd ask, if I were working on a closed source app.

    33. Re:It's common sense by laughing_badger · · Score: 1

      You can apply to them for a license to use the code in a commercial application, or you can rewrite it from the algorithms in the book without looking at their code (which in some cases is a good thing - making C behave like FORTRAN, YUK!).

      --
      Help children born unable to swallow - www.tofs.org.uk
    34. Re:It's common sense by Anonymous Coward · · Score: 0
      Numerical Recipes (in C, C++, etc), has a restrictive license that only allows you to use the code for personal non-commercial uses.

      Oh. Shit. :-(

    35. Re:It's common sense by mpe · · Score: 1

      Numerical Recipes (in C, C++, etc), has a restrictive license that only allows you to use the code for personal non-commercial uses. There doesn't seem to be any provision for using those samples in commercial products.

      If you want to use the code for commercial purposes then you need to negotiate with the copyright holder of the code. Who might be the publisher of the book, the author(s) of the book or even some other party who actually wrote the code.
      You always have this option with any copyrighted work.

    36. Re:It's common sense by samkass · · Score: 1

      What's the remedy? The original author, if he can prove he did not copy it himself, can ask you to stop publishing it

      No... stopping publication prevents further infractions, but that doesn't remedy the existing infractions. Paying damages or coming to some other terms with the copyright holder is the "solution" there. In addition, willful infringement can carry penalties beyond "damages".

      --
      E pluribus unum
    37. Re:It's common sense by samkass · · Score: 1

      It sounds like you need to learn to make a distinction between the wet dreams of litigous barristers and real world pragmatics before you look very silly. Oops too late. /me sees samkass approached by Alan Dershowitz as porno music plays. /me pokes mind's eye out with a fork.

      I only seem to "look silly" on Slashdot because I'm right, but most Slashdot folks don't know anything about intellectual property law in the United States or try to pretend it doesn't exist. You only have to register a copyright to get standing for a lawsuit. But everything written in this country is copyrighted by default. If you don't believe me, ask the United States Copyright Office.

      --
      E pluribus unum
    38. Re:It's common sense by samkass · · Score: 1

      You're missing the top level. In the US, all intellectual property is assumed to belong to the public.

      Citation needed.

      Copyright exists from the moment anything is "created and fixed in a tangible form that it is perceptible either directly or with the aid of a machine or device". A trademark exists whenever a company uses a unique term in the normal course of business. While either of these can be explicitly registered, an implicit ownership is still recognized. A patent is the only part of the "intellectual property" trifecta that has to be explicitly applied for before it is valid in the United States-- divulging a method or idea and not registering for a patent for it within a year puts it into the public domain as prior art.

      Thus, I'm not sure where you get the idea that "all intellectual property is assumed to belong to the public".

      --
      E pluribus unum
    39. Re:It's common sense by Anonymous Coward · · Score: 0

      If you want to use the code for commercial purposes then you need to negotiate with the copyright holder of the code. You always have this option with any copyrighted work.

      You don't always have this option, as it may be impossible to contact or even discover the true owner of the code. I think this is a huge flaw in our copyright system and happens way too often with stuff where the copyright is decades old or only implied.

  8. Small potatoes by crunzh · · Score: 4, Insightful

    If the author doesn't attach any license and it's "just" some code from a forum posting I don't see a problem with it. I have several times posted code samples in forums to help people, I would not mind that they where used in someones commercial program, if I minded I would have attached some for of license. If its posted on a forum to help somebody, the poster must know that it will be used.

    --
    Visit http://www.crunzh.com/ for free software. Mac/Lin/Win
    1. Re:Small potatoes by kc2keo · · Score: 0

      Yeah, If I post anything on a public forum indexed on major search engines or not I do not mind what the content is used for whether it be source code, images, suggestions, etc...

    2. Re:Small potatoes by FutureDomain · · Score: 1

      If the author doesn't attach any license and it's "just" some code from a forum posting I don't see a problem with it. I have several times posted code samples in forums to help people, I would not mind that they where used in someones commercial program, if I minded I would have attached some for of license. If its posted on a forum to help somebody, the poster must know that it will be used.

      But even still, unless you have explicitly disclaimed the code, it's technically under copyright. Although it doesn't sound like you're about to sue someone over it, you can still change your mind and sue them if you think you can get some money from them.

      I see code on forums without a license or notice putting the code in public domain all the time. I usually rewrite the code from scratch just to be safe. For all you who post code on the Internet, please don't assume that everyone can use your code. You probably wouldn't want to sue them, but they don't know that. I would recommend putting an explicit notice that you're releasing the code in public domain or that the code is released under a permissive license like BSD, MIT, or ISC license (unless you really want the code to be open source only).

      For the author of the article, I would recommend notifying the company of the problem and let them decide what to do. The company at least deserves to know about the potential problem so they aren't surprised later on. The problem is small, and it can be cleared up pretty quickly, but ignoring it won't make it go away forever.

      ~~FutureDomain~~
      --
      Hydraulic pizza oven!! Guided missile! Herring sandwich! Styrofoam! Jayne Mansfield! Aluminum siding! Borax!
    3. Re:Small potatoes by ShakaUVM · · Score: 1

      Depends. IANAL, but intent matters.

      If I ask for help in writing, say, a red-black tree implementation, and you answer saying, "here's how you can do it!" I think there's an implicit agreement saying the OP could use the code.

  9. Dunno; good question. by w3woody · · Score: 5, Insightful

    Generally whenever I post code on an open forum in response to an answer, I assume the code will be used by other people and so I generally treat my own code as if I just put it into the public domain unless I've explicitly said otherwise.

    However, that's not the law. I believe that the code an author publishes on an open forum is copyrighted by the author by default.

    Me; I'd probably drop the guy a brief informal note asking permission to reuse the code and see what he does. More often than not if he's like me he'll probably say "sure, I don't mind."

    1. Re:Dunno; good question. by Anonymous Coward · · Score: 0

      I believe that the code an author publishes on an open forum is copyrighted by the author by default.

      I don't think I agree. So if I am trying to help answer a question on one forum, and I find the answer in another forum posted by a user posting a solution to the same problem, and if I copy and paste that code into the other forum where I am answering the question, does that mean I'm guilty of copyright infringement? I don't think it does, I would think that any competent lawyer could successfully argue that by posting any content in a publicly-available message board that the person posting the content has a reasonable expectation that the content is being released into the public domain. If the author doesn't intend for it to be released into the public domain, then they would attach some type of notice saying so.

      I post all kinds of code in various forums online in response to people asking questions. The vast majority is my own code, or else I find the answer somewhere else and reproduce it for the person asking the question. I have never posted a piece of code online that I did not want other people to use. It would be naive to do so, these people are asking questions specifically because they need to use the code, if I post code in response to their question I am effectively giving them permission to use that code in their program to solve the problem they were having that I am responding to. I fully expect people to take my code and use it in whatever they want to, commercial or not. I've had a few people contact me for permission and I feel like it's unneccessary for them to do so.

      Here's another thought. If one user logs onto a forum, posts a question, and another user logs on and posts a solution, what law applies? Is it the copyright law in the country of the user who asked the question, or the country of the user who posted the response, or the country that hosts the server that the forum is running on? Personally, I don't think any of them apply, but it's just something else to think about.

    2. Re:Dunno; good question. by w3woody · · Score: 1

      There is a de-minimus argument that can be made: that the amount of the "offending material" that was copied was so minimal as to be pointless. However, by default, in the United States, the author of a text is the copyright holder of that text, and he doesn't have to give any sort of notice to protect his copyright. That means that when you copy someone else's work--even in the example you gave where you copied someone else's answer and posted it to a different forum--you are technically in violation of copyright.

      In reality, of course, the whole point of the legal system is to arbitrate complaints raised by one person over another person's activity. So really what is "legal" is more like "what you can convince others is reasonable behavior." And in this case, I'd quietly ask the author of the original post (from a personal account, if possible) so I can gauge what sort of a pain in the ass he may become (most likely--not at all) if he were to find out you used 200 lines of his code--so the arguments can be lined up to make a "de-minimus" argument, that his code was so small as to be a relatively unimportant contribution to the overall code.

    3. Re:Dunno; good question. by thegrassyknowl · · Score: 1

      Me; I'd probably drop the guy a brief informal note asking permission to reuse the code and see what he does. More often than not if he's like me he'll probably say "sure, I don't mind."

      I skimmed most of the posts up to this point and this is the first that clearly said "call the guy and ask him". No fair, I was going to say that!

      It stands to reason that if you email the guy and point out his post then tell him his code solves your problem nicely he will probably let you use it. What you don't do is say that you found it already in use and that you'd like to verify the license.

      Has nobody ever considered that the guy in question might have been an ex employee and the code in the program and the code on the web are the same thing? Perhaps he posted it there for some crazy reason.

      --
      I drink to make other people interesting!
    4. Re:Dunno; good question. by TekPolitik · · Score: 1

      I believe that the code an author publishes on an open forum is copyrighted by the author by default.

      The classic lawyer answer really applies here: it depends. A license does not have to be given explicitly - it can be implied from all the circumstances in which the code was published. Lawyers would prefer to have things explicit, but that does not mean the implicit license is any worse than an explicit one. The difficulty really is that there is some higher degree of risk in implying a license, and if you get it wrong you can get sued.

      Quite often code posted to a forum will be posted in a context where a license can be implied, provided the code originated with the person doing the posting.

      Always remember that "license" is lawyer-speak for "permission" - and referred to in that way it makes it much easier for a non-lawyer to understand licensing issues. For example, going onto somebody else's land without a license (permission) is illegal, however you can infer an implied license from circumstances: A path leading up to a front door gives rise to an implied license to go and ring the doorbell to make contact with the resident, and an open shop door gives rise to an implied license to enter the shop. These licenses arise because the circumstances make it clear that this is what the occupier intended.

      The same broad principles apply to software licenses.

  10. Um... what? by AdamTrace · · Score: 0

    "Is it legitimate to use source code that's publicly available but doesn't fall under any particular license?"

    Yes.

    1. Re:Um... what? by ceoyoyo · · Score: 1

      No.

    2. Re:Um... what? by greedyturtle · · Score: 1

      Head explodes

    3. Re:Um... what? by ceoyoyo · · Score: 3, Insightful

      Reading the comments for this story it's almost hilarious how many people see no problem whatsoever with ripping off code and passing it off as your own. Ripping it off is wrong legally, but more important passing it off as your own is wrong ethically.

    4. Re:Um... what? by SourceSingh · · Score: 1

      This is entire thread is pretty hilarious. 1st of all - without getting into the legalities of copyright... the entire programming industry today is filled with "developers" claiming to "author" code that in essence is nothing more than the reference to and utilization of pre-existing code libraries written by other developers (read Frameworks, Libraries, API's etc.). These "authors" patch together calls to pre-existing code libraries and then claim that they "developed" an application. Let's take a programmer who is tasked with "authoring" an image editing application. HAH HAH - today, odds are that such a developer doesn't even know the internal format of a .JPEG file and how to parse it in bytes... but because they utilized the Image class from a GDI+ library they believe that they have "written" something. Please...

      Now - they did do some work and that product was marketable... but what did they actually "develop" or "author" at a deep level. Not very much. They relied ENTIRELY upon the ideas of others and the code of others to write their high level code. They may or may not have had the actual legal write to use those libraries... but they parade around as if they were code geniuses while the real author of their work is at Microsoft or Sun or Apple or at SourceForge...

      2ndly, unless you are writing in Machine Code, you really aren't writing or authoring anything... the compiler is!!! The compiler generated the final version of the algorithm based on compiler settings. It "interpreted" your chicken scratch and actually wrote the final version of the algorithm that is in the binary (if native). So, by some of the statements being made here... if a code snippet of a relatively simply utilitarian task is copyrightable as an important algorithm... then please PAY UP TO THE COMPANY THAT PAID THE POOR GEEK WHO WROTE THE FRIKIN COMPILER!!!

      3rdly... take a good look at development today and contemplate how RAD has dramatically altered the expectations of companies. Companies want products (which 15 years ago would have required a team of 15 persons 2 years to develop) to be developed by 1 person in 6 months. RAD introduced extensive code libraries and abstraction... and now we have Frameworks that change every 2 to 5 years and contain thousands upon thousands of classes and methods that are poorly documented and little understood, in their entirety, by the programmers that "author" their code with them. So, as the internet proves via numerous public forums, blogs, and help sites... programmers seek their "documentation" and "examples" online. If a programmer wants to find out how to do a Registry search using the newest classes and features (i.e. in Version 2.1 of the Framework, not in Version 1.0 thank you) and essentially re-do a simple task that s/he has performed via numerous high level methods for years via various languages and language library incarnations... then they have to spend a lot of time weeding through the CURRENTLY RELEVANT for 2 years class library documentation which is generally non-instructive and then waste more time attempting to figure out how to weave all of their high level calls together to get the final result. No one has time for that... so they do what every competant RAD developer and development shop does (as well as non RAD persons and institutions)... they look for examples and documentation online. See MSDN Forums as just one example.

      The logic, demonstrated by many in this thread, is completely and utterly ridiculous. If high level ideas and their related code snippets were enforced, via the courts, for every programmer then no one would be able to write any code because the 1st person that used a high level library to do a simple task (say - search for a Registry Key) by writing RegistryObject.Hive1.Seek("StringOfImport") would now have a syntax statement that could not be utilized by others.

      As Torvalds quoted from some unknown source "Built upon the shoulders of Giants..."

    5. Re:Um... what? by ceoyoyo · · Score: 1

      First of all, we're not talking about a few lines of code. Not even a snippet. The poster said it was 200 lines. That's a pretty major chunk.

      I agree completely, as do the courts in most countries (the US may be an exception now) that small, trivial bits of code aren't copyrightable and shouldn't be. But 200 lines? Complete with verbatim comments?

      Yes, most applications link to other frameworks or libraries. In many cases those libraries are provided with the OS and the maker of the OS gets a direct benefit from making them available: more apps on their platform means they get to sell more copies of their OS. Other libraries are sold for profit. Still others are released free of charge, with restrictions such as the GPL or even completely free. That's great, the guys who do that are fantastic people, and I'd certainly give them credit in my app (and I think everybody should make more of a habit of doing it, even if not absolutely required). Still, linking to a library is at least one step removed from checking some code into the CVS under your own name without even a comment attributing the source.

      Compilers, ditto. They're normally sold, some are given away (which again, is fantastic). Either way, it's translating, not writing. When someone translates a book they're given credit for doing the translation (which yes, is usually a creative work in itself), but you still credit the author for the original ideas. A machine translation doesn't get credit -- it didn't do anything creative.

      Built upon the shoulders of giants. That's a paraphrasing of the older saying from academia, "standing on the shoulders of giants." Note that in academia if you don't reference those giants you're standing on you get discredited at best. Kicked out and blacklisted more often.

    6. Re:Um... what? by JuliusCaesar42 · · Score: 1

      First of all, we're not talking about a few lines of code. Not even a snippet. The poster said it was 200 lines. That's a pretty major chunk. Major chunk? Just *my* part of the project I work on is over 2,000,000 lines of source. 200 lines would then be .01% of that source. While I'm not willing to make any judgements on the situation at hand, given the sparse information and lack of any real background research on the code in question, I wouldn't consider a 200 line routine to be all that big. 200 lines of complicated and exactly math, perhaps, but 200 lines of output formatting or perhaps even a well known algorithm implementation like a shell sort? A lot depends on what the code contains. Thousands of programmers have written 200 line snippets which would be indistinguishable when compared side by side for copyright infringement. Let's face it, there are only so many good shapes for a wheel...
    7. Re:Um... what? by ceoyoyo · · Score: 1

      200 lines of code, with verbatim comments. Yeah right, that's indistinguishable. Try again.

      Obviously it IS distinguishable since the article poster noticed the copying.

    8. Re:Um... what? by JuliusCaesar42 · · Score: 1

      200 lines of code, with verbatim comments. Yeah right, that's indistinguishable. Try again. Obviously it IS distinguishable since the article poster noticed the copying. Sheesh, now I recall why I lurk. Everything doesn't have to be an argument. My point was that we, as programmers, DO write and rewrite code that winds up being similar, so the amount of code necessary to show infringement is likely more than a "few lines" and could be as large as 200 lines. I did NOT say that the code that none of us have seen is non-infringing. Since none of us know whether the original author of the code is within the company of the OP, whether license was obtained, or whether the code in question is public domain, making a judgment on some poor code monkey's actions without that knowledge is not only futile, but rather insulting. Remember, the coder in question could be any one of us. I know that I have posted code to forums before, so perhaps I wrote the code. I've also used code legally that another wrote, so I could be the lead in question as well. There is simply not enough known information to make any judgments of anyone's actions. There are other explanations besides the rather biased and paranoid opinion that the guy in charge is obviously some sort code-stealing rip-off artist taking advantage of the downtrodden coders of the world. Withholding judgment is sometimes the proper course of action when the alternative is apparently reactionary assumption of guilt without cause.
    9. Re:Um... what? by AnonymousCactus · · Score: 1

      Doesn't sound like this happened in the OP's example. Sounds like whoever wrote the code was trying to get a piece of a larger project to work and he got it to work. I regularly consult the web for programming advice and a lot of times that advice comes in the form of examples. If you don't want your code used, don't post it on a forum or on your web page.

    10. Re:Um... what? by ceoyoyo · · Score: 1

      Both copyright law and ethics disagree with you.

    11. Re:Um... what? by AnonymousCactus · · Score: 1

      Ethics rarely say anything clearly. They certainly don't here. I think you'd be hard-pressed to find someone who would seriously argue that anyone has an ethical obligation to reference whoever first taught them the for loop each time they use one. But most of us would agree that we do have a responsibility not to copy without permission code that someone has explicitly copyrighted or even just written for commercial purposes. The topic here lies somewhere in the middle. If I write a question to a forum and receive a response, I have no ethical obligation to ask the responder if he'd like payment for his response. But ethics are individual. It may be against your ethics, it's not against mine. Copyright law suggests a practical tilt. The practical reality is that there is almost a zero chance that anyone will ever find out that the OP used that code, almost zero chance that the original creator of that code will care even if he found out, and almost zero chance that any sensible court would award anything but minor damages for infringing what is no doubt a relatively trivial piece of code implemented many times before by other people (otherwise, you might presume the poster wouldn't be so freely releasing it onto the web). The copyright argument is moot. Come to your own ethical decision, the OP's boss apparently has.

  11. But how do you know by GIL_Dude · · Score: 5, Insightful

    How do you actually know that this happened? From what you posted it seems just as likely that the author of the code worked for your company and saw some question in a web forum, took some code that was the companies' property (developed on their time and their equipment) and posted it to the web forum to answer someone's question. Do you have any way to be sure that that isn't your own companies' code out there?

    1. Re:But how do you know by Glowing+Fish · · Score: 1

      Or that the supervisor got it off of another forum, where someone said that it was there own work? Or, for that matter, that it was someone's original work on a different forum, and that the forum the original poster saw it on was taking it from that? Or so on.

      --
      Hopefully I didn't put any [] around my words.
  12. That's not called stolen by techpawn · · Score: 1

    That's called community driven development. There are only SO many ways to write something and sometimes a bit of community code works better than beating your head into the wall for weeks with a deadline looming.

    Though, now it brings up a question of how they got to be a project lead.

    --
    Ask not what you can do for your country. Ask what your country did to you
    1. Re:That's not called stolen by davetd02 · · Score: 1

      There are only SO many ways to write something and sometimes a bit of community code works better than beating your head into the wall for weeks with a deadline looming.

      Sure, looking at the means by which others have solved a problem is a great idea. A lot of common problems have been faced by others and it'd be very wasteful to not share ideas. To read code and say "oh, I see, the iterated both variables" is a great insight.

      But, that doesn't mean that taking code effectively verbatim (changing the variable names doesn't count) is the right answer. I'd be worried about a programmer who didn't understand the code well enough to put it into his own words. Yes, there are only a few ways to write some loops, but the exercise of re-writing it is a good way to make sure that you understand why it works. Otherwise you're begging for trouble.

      The best test I've heard is the "Gilligan's Island Rule" -- you can look at any other code sources you want, but you have to do 30 minutes of completely unrelated activity (like watching an episode of Gilligan's Island) before writing your own code. Inevitably you'll write slightly different code than the code you previously reviewed.

    2. Re:That's not called stolen by mabhatter654 · · Score: 1

      This is why programmers need to do design documents and not just code "off the cuff".

      If you had referenced the online help as a design document, then re-implemented the flowchart of what it was doing you'd probably be in the clear. I know business is more pragmatic, but think of what a professor would do if you just cut and pasted. Would it pass for college work?

    3. Re:That's not called stolen by techpawn · · Score: 2, Insightful

      Would it pass for college work?
      Yeah, but there is a big difference between the college code and business code. What's written for review from a prof. and what's written for your customers to get their application on spec, on time, and under budget.

      --
      Ask not what you can do for your country. Ask what your country did to you
    4. Re:That's not called stolen by mabhatter654 · · Score: 1

      I'd hope you'd write higher quality code for customers... in every way... including being original work unless noted so you don't get yourself (and them!) into legal trouble later. I'd think dealing with lawyers would be more incentive than not cheating on a class project.

  13. Spilling the beans by OctoberSky · · Score: 3, Informative

    If you really want to spill the beans on this guy and get people to notice that he "stole" the code, then play stupid and show the forum to your boss and say "Look this guy took our code and posted it on this website" They will put one and one together and see that it was your office that actually copied it. Then it's in their hands and you we attempting to protect the company.

    Don't worry about the fact that the forum post was 4 months before you guys even started work on your project. In your haste to protect your companies IP you didn't realize you were the ones doing the copying.

    1. Re:Spilling the beans by Herkum01 · · Score: 1

      This is the correct approach. It does two things,

      • It appears that you did not make a decision AND,
      • Exposes the potential problem to someone who CAN make a decision.

      This is one of those things that is unlikely to come back and bite you, (unless your boss also reads slashdot, then your screwed!)

    2. Re:Spilling the beans by Anonymous Coward · · Score: 0

      This is the most insulated approach. Do not confuse that with the correct approach.

    3. Re:Spilling the beans by DimGeo · · Score: 1

      How is this "informative"? The summary says the guy thinks his company took the code, and didn't write it in the first place, he's asking how to deal with some previous dev copying web-published code into the company's codebase. L2R.

    4. Re:Spilling the beans by OctoberSky · · Score: 1

      In addition to asking how to deal with some previous dev copying web-published code, he also asked how he can tell his company, or if he should, or what might happen if he does/doesn't.

      I pointed out a very harmless way to "spill the beans" if he so chooses.

      The problem is not ratting out the former dev, the problem is that the former dev is now his superior. If he wants to point out that the code is copied to a higher up, yet not assign blame to his current boss, the way to do it is the old switch-a-roo. I laid it all out.

    5. Re:Spilling the beans by syousef · · Score: 3, Insightful

      Don't worry about the fact that the forum post was 4 months before you guys even started work on your project. In your haste to protect your companies IP you didn't realize you were the ones doing the copying.

      Then you take a hit for looking incompetent. No one in their right mind wants to trust mission critical stuff to a guy that's proven they're sloppy. Playing "stupid" as you put it makes you look stupid. Plus it's gutless. Think about this: Who wants to promote someone that's gutless and stupid? No. With this kind of thing you either decide to front up with what you've found (and be discrete about it) or discuss it with no one (much less post on /.)

      Also if you approach the company don't jump to any conclusions. Just present the facts. For all you know someone at your company asked permission from the author (and though unlikely since there was no attribution, you shouldn't presume the coder's guilt). If you're using a code repository correctly it shouldn't be hard to track down the developer that wrote the code and enquire about it. Make sure you report the problem to the correct person if your company has formal reporting guidelines, but do so informally if possible at first. How things proceed from there is up to your company as laid out by their policies.

      I'm guessing that if you're asking on /. you don't feel compelled to become a whistleblower and sacrifice your career, but if you report up the chain a couple of levels and they do nothing you have to decide if it's worth doing just that. You have to pick your battles and live with the consequences of what decisions you make.

      If the code's easy to replace (and most 200 line snippets posted on a forum are), there shouldn't be an issue getting someone to write the replacement without seeing the original, the work to do so is not a huge liability to the company. However if your company has publicly released the code in one of their products it could be a much bigger issue because it potentially exposes the company to liability.

      --
      These posts express my own personal views, not those of my employer
    6. Re:Spilling the beans by Perl-Pusher · · Score: 3, Insightful

      God I'm glad I don't work with you. Here is a novel idea. Why not discuss it with the guy who your trying to screw? Voice your concerns and maybe, just maybe, he will contact the original author and get permission. He might even be the original author. That way you don't have to worry the guy finds out who stabbed him and come to your house and get revenge. At least be man enough to let your boss know what kind of person you really are.

    7. Re:Spilling the beans by Anonymous Coward · · Score: 0

      Yep, Geo is dim allright. Sheesh.

    8. Re:Spilling the beans by Anonymous Coward · · Score: 0

      It also does a third thing,

      • You get away with being a complete pussy.
    9. Re:Spilling the beans by Anonymous Coward · · Score: 0

      Who wants to promote someone that's gutless and stupid? No. You may be halfway toward a promotion already.
    10. Re:Spilling the beans by Anonymous Coward · · Score: 0

      Careful with this 'advice'. Likely result:

      1.) OMG they stole our stuff!!!11, call the Lawyer, immediately! It's our precious Eye Pee!!
      2.) Guilty Project Lead, lacking imagination, remains silent.
      3.) Lawyer sends out threatening mail, same day being a proactive protector of client prerogatives
      4.) Light dawns on all as various dates are correlated and the truth sinks in
      5.) You're now the official idiot for exposing misdeeds to potential plaintiffs. Your 'Project Lead' is just as pissed as he would have been if you had simply CC'd the crime to everyone remotely involved in the first place.
      6.) Profit??

      My advice; Make your deadline. Forget the scrap of code pilfered from some web page. Get bent if you find substantial indifference to copyright; bodies of work copied into proprietary products against explicit license terms. Scraps of implied copyright Base64 encode/decode stuff don't mean much.

    11. Re:Spilling the beans by Herkum01 · · Score: 1

      Your basically giving up all your options in the hopes that he is a nice guy? What happens if he is a jerk? Besides who said that this is stabbing him in the back? This is a neutral way of bringing up the issue without any preconceptions on whether he copied or posted it.

      It would be nice but the real world is full of incompetent, selfish and stupid people. If this guy DID copy this code off the internet from someone else, that should tell you something.

      At least be man enough to let your boss know what kind of person you really are.

      So by insulting me, you are really addressing the issue? Like that is going to end in a good result.

    12. Re:Spilling the beans by notorious+ninja · · Score: 1

      I don't think that's really a smart move - it's a little passive agressive, and playing stupid just makes you look stupid. If you have a problem or question, just be ask the manager or the guy who wrote it. You don't have to be accusatory when you ask, just ask them what the policy is regarding using code samples you found on the internet (and it's possible that the website you found it on has a policy that permits code reuse)

    13. Re:Spilling the beans by ranton · · Score: 1

      Uhm, this guy said that he happened to find code in some forum that looks exactly like code in his company's software. I dont think anyone could call an employee stupid for not searching every forum on the internet for any code that matches theirs.

      --

      --
      -- All that is necessary for the triumph of evil is that good men do nothing. -- Edmund Burke
    14. Re:Spilling the beans by syousef · · Score: 1

      I don't know how you're misreading this.

      The guy found code in the company codebase, that is also in a forum. If he doesn't report it at all, you're right he doesn't look incompetent, but he's posting for advice so clearly he wants to report it.

      The suggestion from the parent I responded to was something like - Just pretend the code on the forum was stolen from your company codebase and report that. Then it looks like you're looking out for the company and when they compare dates they'll realize the company codebase includes the copy not the other way round. My response is that if you do that you look incompetent because it suggests you didn't think to compare the date on the forum post to the date on the company code.

      Not only that but if it goes too far before the company realizes (through more incompetence) that theirs is the copy, legal threats could be made etc. to the original developer.

      Also who knows what actually transpired. Perhaps someone within the company posted the code under an alias, or perhaps the code was copied with permission but not correctly attributed. Perhaps the code appears in the company code base on a different project even earlier than the forum post and was therefore leaked by someone in the company. Who knows. It requires proper investigation. Burying it or playing stupid won't help anyone get to the truth or serve to protect anyone's rights, which is what I assume the OP was after when he came to /. for advice.

      --
      These posts express my own personal views, not those of my employer
    15. Re:Spilling the beans by talis9 · · Score: 1

      hen you take a hit for looking incompetent. No one in their right mind wants to trust mission critical stuff to a guy that's proven they're sloppy. Playing "stupid" as you put it makes you look stupid. Plus it's gutless. Think about this: Who wants to promote someone that's gutless and stupid? Based on my experiences dealing with managers, promoting the gutless and stupid seems to be the norm. Being sloopy, gutless and stupid is almost guaranteed to get you onthe fast track to senior management

    16. Re:Spilling the beans by tc · · Score: 1

      If he's a jerk, you don't want to work for him anyway. Best to find that out sooner rather than later.

      Being sloppy with licensing is a good way to expose your company to legal risk, so you need to be straightforward with the facts to your management and get this cleared up. Talking to the lead in question is a good first step. Perhaps permission had been properly obtained, in which case it should be documented as such (e.g. in comments), otherwise the original author needs to be contacted. The lead needs to take responsibility here - that's why he's a lead.

      Documenting where the code came from (assuming it's legit) is more than just good legal practice. It's also good engineering practice. If there are bugs in that area, a future maintainer can go back to that forum to report them, or look for solutions, for example.

      A good lead should also know better than to play lawyer, but everyone has a bad day, and most people are basically decent and act in good faith. Start the conversation assuming that nobody had bad intentions and it should go fine.

    17. Re:Spilling the beans by Anonymous Coward · · Score: 0

      If you really want to spill the beans on this guy and get people to notice that he "stole" the code, then play stupid and show the forum to your boss and say "Look this guy took our code and posted it on this website" They will put one and one together [...]

      I doubt you've dealt with bosses before.

    18. Re:Spilling the beans by Perl-Pusher · · Score: 1

      What happens if he is a jerk?


      Then you, go to your boss. Come on, this is common sense. I had 115 people working for me before I retired from the Air Force. I have a lot experience here. Deal with issues at the lowest level first. You will find over 95% of any problems you perceive can be solved through direct and honest communication. If you can't do that, watch your back. People get violent when someone feels that they have been personally slighted and they're lively hood is at stake.
  14. Immature artists imitate, mature artists steal by alecu2 · · Score: 1

    "Immature artists imitate, mature artists steal. -- Lionel Trilling"
    That's the cookie that slashdot displayed (at the bottom of the page) while reading this article.

    Coincidence? I don't think so.

  15. IANAL by overshoot · · Score: 1
    ... however, you should be able to contact Corporate Counsel. It's a legal problem, let the lawyers deal with it.

    On the other hand, if you don't do something about it, it could become your problem. Decisions, decisions ...

    --
    Lacking <sarcasm> tags, /. substitutes moderation as "Troll."
    1. Re:IANAL by mabhatter654 · · Score: 1

      It appears the guy who did the coping a while ago is now the "boss" of the project and the poster is the new guy. So if the original guy (now the boss) blows him off, he'd HAVE to go over the boss's head and that causes trouble. I think contacting the legal department in general terms for guidelines without specifics might be good.. but again, it's the boss's code.. if legal starts ordering code reviews it still comes down on him, as the only other person to review the code.

      Depending on the corporate culture they may welcome your input and train everybody in a policy, or they may simply shoo you as a "troublemaker" and make life miserable for slowing them down.

  16. Don't sweat it by GlobalEcho · · Score: 4, Insightful

    Don't sweat it. When I post code in a forum, I generally do so with the hope that other folks will find it useful, and the expectation that, if they do find it useful, they'll go ahead and copy it. If I want to make something available with a license and everything, I'll either put it on Sourceforge, or post a license in the comments. It's a safe bet the original author feels the same way.

    Legally, it's not necessarily safe to copy long snippets from forums, but from practical and social points of view, I think this is much ado about nothing.

    1. Re:Don't sweat it by mabhatter654 · · Score: 1

      but even slashtdot has this for comments:

      "All trademarks and copyrights on this page are owned by their respective owners. Comments are owned by the Poster. The Rest © 1997-2007 SourceForge, Inc."

      Depending on the community the website might take ownership, especially if it's one of those pay-per-fix sites out there. Or perhaps somebody needs to start a license-in-a-sig to make commented code snips public domain or such... it's a sticky world.. this would be very similar to the issues with photos on flickr put under CC but still not kosher.

    2. Re:Don't sweat it by cshark · · Score: 1

      I worked for a major software company years ago. I came into a project where 80 to 90 percent of the code used was from assorted forums and help sites, but with minor tweaks to put the whole thing together. Much of it needed to be rewritten because it leaked, and generated errors because of things that were changed here and there. It was a pain. As a developer... it sucked. When I brought this up to my supervisors the consensus was, "So?" Really depends more on the culture you're working in than the code being used. Some companies are far more liberal than others. If I were the top poster, I would let this one slide and allow someone else to pick it up, bring it to the attention of the forces that be; and allow them to come off looking like an idiot. Little things like this are not worth brining up, especially if you're the only person who will ever see it.

      --

      This signature has Super Cow Powers

  17. Practically speaking ... by bdemchak · · Score: 1

    ... it sounds like the author probably did intend that it be used.

    If it's the lynchpin of your product, you should consider rewriting it just so that you can say you actually own it. And to do that, you'll need to involve the project lead directly. It doesn't sound like that's the case, though.

    Additionally, if you know the source URL, consider attaching it to the code as a comment. That way, if someone in your group wants to know more about it (e.g., context, limitations, etc) they know where to find it. This type of knowledge accumulation comes in real handy.

    In the meantime, focus on creating value for your company ... that's probably more important at this point.

  18. So buy a license by Animats · · Score: 1

    Just write a memo, "We need a license for this code". It probably won't be very expensive.

    Here's the policy on use of code snippets in O'Reilly books. They generally allow it, but require acknowledgement in the documentation.

  19. An Answer by prichardson · · Score: 1

    IANAL.

    The code was published under no license, but by default it is owned by the author. Thus the author has all rights to control the copying of his work. In short, no the company has no right to use the code. The GPL and other OSS licenses allow the author to grant other people _more_ rights than they would normally have. The same is true for Creative Commons licenses. However, if this forum is a place where people discuss and help people with programming, one could argue that there is implied consent to reuse whatever is found there.

    I think you should report him. If the code really is stolen, it could be a serious liability for a company.

    --
    Help I'm a rock.
  20. I know what I'd do by jollyreaper · · Score: 0, Offtopic

    I'd cut the head off of his favorite Bobba Fett doll and leave it in his bed for him to wake up next to. Either that or wrap a dead curry in newspaper and leave it on his doorstep. "Luca Brazzi codes with the Indians." And if nothing else, you could always take him fishing...

    --
    Kwisatz Haderach
    Sell the spice to CHOAM
    This Mahdi took Shaddam's Throne
    1. Re:I know what I'd do by jollyreaper · · Score: 1

      Phbbt. Mods ain't got no sense o' humor.

      --
      Kwisatz Haderach
      Sell the spice to CHOAM
      This Mahdi took Shaddam's Throne
  21. Use it by fhic · · Score: 4, Insightful

    I do this all the time. My feeling is that code snippets posted in a public forum are meant to be be used by others unless it says not to. Yes, I recognize that this is at least theoretically contrary to US copyright laws. But if you don't want someone to use it, why post it? To show your brilliant code?

    Since this specific case apparently bothers you, I think you should try to contact the author through some back-channel and get an explicit okay to use it. But I bet more than likely your request will be ignored or you'll get a "why the fsck are you asking such a dumb thing?" That's generally how I reply when someone asks me about code I've posted.

    1. Re:Use it by windsleeper · · Score: 1

      One implicit assumption a lot of people are making is that the code posted to the public forum is original work. There is a risk that this code was copied out of a commercial piece of software without permission. In that case, the risk and potential penalties incurred by keeping the tainted code in your software is much higher.

    2. Re:Use it by SpinyNorman · · Score: 1

      That may well be the code posters intention, but with no legal backing (i.e. no explicit grant of rights) he could also cause trouble if he chose to. Maybe just for you because he doesn't like your company and finds out about it. You don't want to base your business on the assumed good will of people whose work you are commercially appropriating without asking permission!

    3. Re:Use it by Grail · · Score: 1

      My approach:

      Subscribe to said forum. Make an effort to contact the author. Keep using the code until told not to.

    4. Re:Use it by juan2074 · · Score: 1

      But I bet more than likely your request will be ignored or you'll get a "why the fsck are you asking such a dumb thing?" That's generally how I reply when someone asks me about code I've posted.

      That's good. It was your code we are talking about here.

  22. Cookbook programming by bunratty · · Score: 1

    I've copied code from the Perl Cookbook and the PHP Cookbook. As far as I know, that code doesn't come with any license, and yet I would think the purpose of the code is to be copied and used as is or modified as needed. I would think the same would be true of code someone posted on a forum or mailing list. I'm surprised that anyone thinks copying the code would be a problem.

    --
    What a fool believes, he sees, no wise man has the power to reason away.
    1. Re:Cookbook programming by Nevo · · Score: 2, Informative
      Thankfully, your lack of knowledge (probably) isn't hurting you in this case:

      Using Code Examples

      This book is here to help you get your job done. In general, you may use the code in this book in your programs and documentation. You do not need to contact us for permission unless you're reproducing a significant portion of the code. For example, writing a program that uses several chunks of code from this book does not require permission. Selling or distributing a CD-ROM of examples from O'Reilly books does require permission

      http://safari.adobepress.com/0596009747/xsltckbk2-PREFACE-2 I would assume other O'Reilly titles likely have similar licenses but it would be wise to check.

  23. MOD UP, Correct answer by Anonymous Coward · · Score: 0

    Mod the parent up. It is the correct answer.

    Of course, in the real world, you always have Option 3) Ignore it, move on with life.

    This is actually the incorrect answer, but as many people have pointed out it really isn't morally reprehensible and you'll probably get away with it.

  24. Comment it with the URL by BMonger · · Score: 3, Insightful

    Usually if it's a complicated section of code I'll include the URL in a comment above. If it's just a line or two I won't. Often times if it's from a forum I stay with that forum for a few weeks and try to contribute back in some way.

    If the code explicitly has a license attached to it I follow that of course. But I've not had to do that yet. I don't pull code from other project bases unless it's a library or such (in which case I follow the license). Only code that is meant to be viewed and used (such as forums/tutorials).

  25. Plagiarize this by SheldonYoung · · Score: 1

    At worst it's a licensing infringement and at best it's plagiarism.

    You don't need to start a full on war unless the copying has been rampant, but it has to be addressed and not only for ethical reasons. If your company gets taken to court over copied code you can bet it will impact your employment situation.

    I would suggest mention during the next meeting that the company as a whole needs to give credit for all code and remind them that an in intellectual property suit could made life difficult. As for the existing code, if you come across more code you aren't sure about the license for, ask the original author for permission to use it. If it is not granted bring it up with management that you attempted to resolve the issue but unfortunately the code will have to be replaced. It won't take many times of duplicating work already done before management starts making sure licenses are checked before incorporating code.

    There is no need for finger pointing unless the copying continues in the future. If it does, then start raising your voice to protect both yourself and the company.

    And YES, the code is copyrighted the instant it is created. And NO, because it's publicly viewable does not mean you are granted a license to do anything more than read it.

  26. Appropriate Quote by Rob+Riggs · · Score: 4, Funny
    This just popped up at the bottom of this article's page:

    Immature artists imitate, mature artists steal. -- Lionel Trilling
    --
    the growth in cynicism and rebellion has not been without cause
    1. Re:Appropriate Quote by nganju · · Score: 1


      I thought Picasso said that.

      Then again, maybe he stole it.

      --
      There are 2 kinds of people in this world. Those that can keep their train of thought,
    2. Re:Appropriate Quote by ceoyoyo · · Score: 1

      It goes nicely with your sig.

    3. Re:Appropriate Quote by Etrias · · Score: 1
      That's funny. T.S. Eliot said:

      Immature poets imitate; mature poets steal.

      NOW who's stealing?
    4. Re:Appropriate Quote by Anonymous Coward · · Score: 0

      copy 1 you're an imitator, copy 12 you're a master. (you're all musicians aren't you?)

  27. Three answers: by Glowing+Fish · · Score: 1

    Utilitarian: The chances that this is going to be discovered and become an issue are practically nil. It seems like it was a (relatively) trivial piece of code floating around the web, and I doubt anyone will notice.

    Legally: Depends on how it was added to the webpage. Especially if it was added under a pseudonym or the like, how can someone prove that they were the original author, and thus have the copyright, even if they wanted to?

    Ethically: You should respect the copyright of someone else's work, and contact them. Also, talk to your supervisor.

    --
    Hopefully I didn't put any [] around my words.
  28. Wrong! (At least outside US) by Psionicist · · Score: 1, Interesting

    The United States is, as far as I know, the only country in the world where your work is not automatically copyrighted when published. I know for a fact that any code, text, images etc are posted from a European country it is automatically copyrighted, "(c)"-symbols or not. In Sweden for example it is actually discouraged to write "Copyright xyz" in your documents/works because it has no legal meaning and it confuses intellectual property law for the layman. So while you are probably correct if the copied code originates from somewhere in USA, the original poster's company is most certainly in violation of some intellectual property law if the code is from abroad.

    1. Re:Wrong! (At least outside US) by Cepper · · Score: 1

      "The United States is, as far as I know, the only country in the world where your work is not automatically copyrighted when published. "

      This is incorrect, as other posters have stated in the US that the copyright is automatic in the creation of the work. No notice is needed.

      --
      "Technology lies on the leading edge of life" Rush
  29. I wouldn't worry. by jellomizer · · Score: 3, Insightful

    Technically it is a copywrite violation but so is most anything now adays.

    If the person posted code on a forum then normally they do so expecting people to use it. Hense Posting it on a forum. Most forums go like this.

    First Post
    How do I do this?

    There is a reply
    Try this code.

    They usually replay with two options
    Sorry it didn't work or It worked thanks.

    You are probably just out of college were even looking at someone elses code is considered a great moral sin against humanity, where just the though of this could bar you away from higher education forcing you to live your life without being able to obtain a higher degree. In business if it works they use it even if it is a copy and paist. If it was something more problematic like say Using the source from an other companies code who had a strong license on it... Or using GPL code for non GPL reasons then there would be some consern. But for posting giving help to some one who wants to know how to do something it is basicly a non-issue.

    --
    If something is so important that you feel the need to post it on the internet... It probably isn't that important.
  30. Don't Panic by Anonymous Coward · · Score: 0

    If posted on a discussion forum, clearly the intent was to share the code, but without an explicit license, it's technically a copyright violation. (And no, it's sure not PD; ignore the people who are telling you that.) Also, if in a forum, then I imagine the amount of copied code is pretty small.

    But the intent to share the code, suggests that there won't be any consequences to the technical violation. Regardless of the law, it sounds like the author just doesn't care. Forget about it.

    If you do talk to somebody about it, the first person you talk to is the guy who copied. I don't mean confront; just communicate. So much bullshit happens because people don't talk to each other. See what he thinks. Get his opinion. That he's the project lead, makes it even better: you just covered your ass.

  31. Berne convention by greed · · Score: 1

    You'll find that, in Berne convention countries, copyright is automatic and does not require an explicit copyright notice.

    This means copyright must be explicitly disclaimed if you really want to put something in the public domain. Simply posting it on a forum probably wouldn't do that, especially given the number of forum systems which say "Comments and postings are copyright by their authors" or something similar. (Lack of that message would not imply there is no copyright.)

    However, unless 200 lines is a sizable percentage of the completed work, I wouldn't worry about it this close to shipping. It also depends on just what those 200 lines of code actually are; interface definitions aren't copyright-able, after all. So there might be fewer, perhaps many fewer, lines of actual creative work.

    And the work itself may be based on something that is public domain....

    And the author would be hard-pressed to claim a loss of revenue in this case, since he did post it publicly.

    Copying code from random un-attributed sources without license agreements isn't a good idea. But for this one, I wouldn't try and fix it. Ignorance is bliss and you've lost that now, but you can always pretend and be happy.

  32. Another way to get burnt by scubamage · · Score: 1

    Its always better to err on the side of caution with this stuff. You may want to notify your lead one on one that you found it. That way you're not going over his head, and you're being a man about stuff. The big concern for me wouldn't be the guy who posted it on a forum, it would be the question in my head about where he got the code before that. Was it his home brewed code? Maybe he swiped it from an O'Reilly cookbook? Maybe he was unscrupulous and swiped it from a website who had clearly noted that their code was not allowed for use. You don't know, making you assume one way or another. Sadly, assumption is the mother of all f*ckups. Now, another possibility is to post a response in the forum asking whether or not you can spoon in the code, or for a license clarification (if its a more recent post).

  33. You could ask politely by davidwr · · Score: 5, Informative

    To the original poster:

    If your company want to be completely honest and above-board and legal, it must ask if it's okay to use the code. If the author says no or demand$ too much, you must not use it.

    Unless you are fortunate enough to get a fast "sure, go ahead and use it" you will miss your deadline. Sometimes a little cash - maybe as little as the amount of man-hours it would take you to rewrite and test it - will be enough to expedite getting permission.

    By the way, for all you know, the tech lead did ask permission, or the tech lead knows the code is already been dedicated to the public domain.

    If it were me, I'd talk to the tech lead. If the tech lead doesn't have permission already and isn't willing to go to management and do The Right Thing (TM), I'd start circulating your resume and talk to management about it. When you do talk to management, present them with options that are likely to 1) be acceptable to management and 2) get the product out the door as soon as possible.

    --
    Knowledge is how to play a game, intelligence is how to win, wisdom is knowing what game to play.
    1. Re:You could ask politely by FuzzyDaddy · · Score: 1
      If it were me, I'd talk to the tech lead.

      I agree. By posting the code, the original author's intent seemed to be to share it. This tells me that your lead's use of the code doesn't automatically imply he's a bad or immoral person. So unless you know him to be a jerk or a thief, it would be worthwhile to just ask him about it. The context could be that you're trying to find out if it's OK for you to do the same thing.

      --
      It's not wasting time, I'm educating myself.
    2. Re:You could ask politely by arminw · · Score: 2, Insightful

      ......Unless you are fortunate enough to get a fast "sure, go ahead and use it" you will miss your deadline..........

      Unless you are fortunate enough to figure out who REALLY wrote that code in the first place...... You might have 10,000th copy of it and no idea whom to ask for permission.

      --
      All theory is gray
    3. Re:You could ask politely by mikelieman · · Score: 1

      You need to discuss this with the company lawyer, but it *could be* as straight-forward as cutting him a check for a grand or two, and sending it, with a letter over to him saying...

      "We found your code snippet on the web, and it didn't say GPL on it. We'd like to use it."

      --
      Technology -- No Place For Wimps! Grateful Dead and Jerry Garcia Chatroom -- http://www.wemissjerry.org
    4. Re:You could ask politely by sonamchauhan · · Score: 1

      yes talk to him... one possibility this will rule out is that _he_ already spoke to the code's orginal owner in the past, and was somehow authorized to use it.

    5. Re:You could ask politely by Unnngh! · · Score: 1

      I don't usually consider this type of thing a "big deal", the same way I don't see making a mix CD for a fried as a "big deal", but I will generally take the time to reimplement/rewrite an algorithm that I find in this type of circumstance. A lot of times the author will post something as a solution for the good of the many, you can usually tell from context if this is the case or not. If you're not sure, you shouldn't copy it, but it sounds like you already know that and your tech lead either does not know or does not care.

      I would think that a prudent approach would be to just wait a bit and get to know the people there, unless you see large scale infringement or some gross violation of copyright law. Over time, you will probably get to know the tech lead better and may be able to approach him as a friend, without going head on about it with anyone. I suspect that is the only way you are actually going to change anyone's behavior in this matter, if that is what you are interested in doing. You have to weigh the potential damage to yourself and others caused by making a big stink about it as the new guy, vs. understanding and trying to gently correct a wrongdoing, the intention behind which you know nothing about. Illegal as the act may be, the liability to your company in this case sounds like it is practically non-existent.

  34. Easy by felix9x · · Score: 1

    1. Write a small comment next to the comment mentioning the code was copied of the web.
    2. Write a quick email to your boss telling them you did that.

    Move on with more important things.

  35. The correct response is... by gillbates · · Score: 1

    If not, what's the best way to deal with this kind of situation? Since I'm now the only person working on this code, there's no practical way to report the situation confidentially.

    First, do your research. Is it possible the code on the web was stolen or leaked from your employer? You might want to show the lead developer the web page.

    If you should determine that the code was lifted from the web, the best response might be to simply rewrite the code, since it is only about 200 lines. Look for bugs in the existing code, which you could use to justify the rewrite to management, should they become curious, or worse, be of the shady type.

    It might be helpful - after the rewrite - to send an email to all of the developers, the lead developer, and possibly his boss, saying something similar to this:

    • "During routine maintenance, I recently discovered some code in our codebase which was identical to code found on the web. To save the company from copyright infringement liability, I have taken the initiative to rewrite that portion of code. My concern is that there might be some among us who do not know that all code is copyrighted, and that copying code from others exposes the company - as well as the individual - to potential copyright infringement liability. If you, or someone you know, has done this in the past, please take the appropriate steps to rectify the situation."

    It is important to highlight that you have just saved the company money and reduced their liability, and make sure to address no one individual in particular. Do not come across as accusing any one person, but rather, try to express a helpful attitude.

    Now, understand that you are new here, and do not yet know the culture. If your employer has a culture of copyright infringement, it would probably be in your best interest to find another employer. Typically, when such companies are found out, they find a scapegoat on which to hang the guilt, and because you're the new guy, that would probably be you.

    --
    The society for a thought-free internet welcomes you.
    1. Re:The correct response is... by Grey_14 · · Score: 1

      Holy cats, Does that every sound like a good way to become hated and possibly jobless, I've got to agree with other posters on here, Talk to the lead developer, consider rewriting the code first but bring it up with him before you commit it, don't go over his head, don't e-mail the boss and the bosses boss, that smacks of a lack of respect for the lead, and a lack of trust within the team.

  36. Time to Play Devil's Advocate by Anonymous Coward · · Score: 0

    How do you know that your predecessor copied the code from the website? Maybe someone leaked your company's code and the website is the copyright violator.

  37. Did you think about talking to the project lead? by bennomatic · · Score: 1
    Why do you need to do anything anonymously? If you go to the programmer who did the copying, who is now the project lead, and indicate that you feel that there's a possibility that the code used might expose the company to legal risks, then it is up to him or her to do the right thing. You can certainly ask for a follow-up for documentation (i.e. SOX) purposes.

    You might find that he or she is very appreciative of your efforts, and going to him or her was really great for your career. Unless there is a reason you don't feel safe going to this person--ie if they were sexually harassing you--they should be your very first stop.

    --
    The CB App. What's your 20?
  38. Re:Parent Doesn't Understand How Copyright Works by Anonymous Coward · · Score: 0

    Not attaching a license in no way affects the copyright ownership of the code. The original author has a copyright on the code in your product. I the parent poster of this thread has no idea how copyright works. It isn't like a patent, where disclosure prior to filing the patent puts it in the public domain. All works have an implicit copyright. It might be crazy, but it is true.

    The legal liability of having stolen code in a released product should greatly outweigh the cost of rewriting a 200 line code segment (single digit hours of coding). Knowingly infringing on the copyright of the code is a huge risk.

    In my opinion you'd be crazy to knowingly allow this code into your release.

    Of course, there is also the big question of how much more infringing code is in your release that you don't already know about... how to deal with that seems like a much more difficult question.

  39. Quick Points by cleetus · · Score: 5, Informative

    IAALBTINLA (I am a lawyer but this is *not* legal advice)

    1. The original write owns the copyright to the code.
    2. By posting it to the BB, he might have agreed to license it under whatever terms by which the board operates. This might mean you have some license to use it (either implied or actual).
    3. The code copied by the developer might not be enough of the work as a whole to considered infringement.
    4. One test for determining whether computer code infringes copyright, in the USA at least, is the classic, yet ambiguous "abstraction, filtration, comparison" test. (If the copying was complete with comments, then that's not so good for the copier, but if the code accomplishes a trivial function, then not so much.)
    5. Speaking generally, it's important to be on the lookout for situations like this. For instance, if code is copied from an open-source project, then significant consequences can follow (c.f. the Asus story below this one.)
    6. If you are concerned, talk with your company's legal counsel.

    1. Re:Quick Points by Anonymous Coward · · Score: 0

      Why make the abbreviation when you are going to write it full out anyways?

    2. Re:Quick Points by Anonymous Coward · · Score: 0

      IANAL, but, there may also be an "implied license". For example, if someone says (like another poster's example) "How do I do this?" and some replies with "Try this code", the reply may have granted an implied license.

      ----
      Implied Licenses:

      An implied copyright license is a license created by law in the absence of an actual agreement between the parties. Implied licenses arise when the conduct of the parties indicates that some license is to be extended between the copyright owner and the licensee, but the parties themselves did not bother to create a license. ...The court ruled that the effect could be used in the horror movie through an implied license, since the effect was created with the intent that it be used and distributed in the movie.
      -----

    3. Re:Quick Points by Anonymous Coward · · Score: 0

      Lost my link; the quote is from: http://www.bitlaw.com/copyright/license.html

    4. Re:Quick Points by E++99 · · Score: 1

      Have there been actual cases of people being successfully sued for copyright infringement for using, but not publishing source code? To copy and use source code is like seeing a clever machine and making an exact duplicate of it and using it. Thats what patents exist to prevent, not copyrights. Shouldn't the copyright only be an issue if they were making available copies of the source?

    5. Re:Quick Points by RabidMonkey · · Score: 1

      In some cultures/subcultures, stating the obvious is humourous, as is creating obscenely long acronyms.

      Now You Know (tm).

      --
      We emerge from our mother's womb an unformatted diskette; our culture formats us. - Douglas Coupland
    6. Re:Quick Points by maxwell+demon · · Score: 1

      In some cultures/subcultures, stating the obvious is humourous, as is creating obscenely long acronyms.

      IJWTMTTSOOATIT (I Just Want To Mention That The Sum Of One And Two Is Three)
      --
      The Tao of math: The numbers you can count are not the real numbers.
    7. Re:Quick Points by mqduck · · Score: 1

      (I am a lawyer but this is *not* legal advice) Ah, spoken like a true lawyer. ;)
      --
      Property is theft.
    8. Re:Quick Points by jeremyp · · Score: 1

      And your non legal advice crashes and burns between points 1 and 2. There's no guarantee that the person who posted the code on the forum is the person that owns the copyright on the code.

      --
      All I want is a secure system where it's easy to do anything I want. Is that too much to ask ~~ Randall Munroe
    9. Re:Quick Points by postfail · · Score: 1

      >>2. By posting it to the BB, he might have agreed to license it under whatever terms by which the board operates.

      I've seen several 'boilerplate' BB services that actually claim submitted posts as 'theirs' for copyright, content, etc. This includes pictures, etc.

      /. is 'rare' in that comments are owned by the poster per terms of service...

      --
      Children are smaller versions of us, minus the crushing failure -- Stephen Colbert
    10. Re:Quick Points by argmanah · · Score: 1

      It's not that rare. By claiming ownership of the posts you open yourself up to legal consequences of those posts. For example, if someone posts the source code to Vista on /., after we were all done laughing, the poster would be responsible for the infringement, not /. OTOH, if /. claimed ownership on the content, then it would be /. who was responsible. In fact, I would say that the majority of sites that are commercial in nature and likely to be the subject of such issues tend to make it clear they are not in fact responsible for the content of their comments/forums section.

      --
      Overrated Moderation: This posts sucks... because.
  40. I've got one better for you... by crossb0nez · · Score: 1

    I worked at a company 3 years ago on a project to create a secured web application, and a lot of js was used for functionality (think AJAX -- before AJAX was cool)... I came across a block of code submitted by the lead dev in a js file, that was copied EXACT, including the copyright commenting placed by the author of the code -- complete with the url to find said code on the web! Now, I felt this needed addressing, but upon doing so to the management of the company (a small outfit in the NE US, small enough I knew the CEO on first name basis), all I got was negative flack for pointing it out. Go figure.

    --
    Rule of Acquisition #19: Satisfaction is Not guaranteed.
    1. Re:I've got one better for you... by careysb · · Score: 1

      Is there such a thing as "positive flack" ?

    2. Re:I've got one better for you... by crossb0nez · · Score: 1

      Sure! It's called a promotion :D

      --
      Rule of Acquisition #19: Satisfaction is Not guaranteed.
  41. Why don't you ask the original author? by Down_in_the_Park · · Score: 1

    no more text needed, right?

    --
    "People who are willing to sacrifice essential freedoms for security deserve neither freedom nor security."

    B F
  42. Hope the author's not the vindictive type... by gillbates · · Score: 1

    Just because it's on the web, even without any particular license, doesn't mean it's free for the taking.

    It's kind of like the online magazine. Sure, you can view their web pages, but try republishing them and you'll find yourself in quite a bit of legal hot water.

    The author might not think his code is worth that much, but as soon as it shows up in a commercial product, he might change his mind. Because he hasn't granted the company explicit permission to use it, he could sue for copyright infringement.

    Granted, IANAL, but it seems like a rather foolish thing to expose yourself to a potential $150,000 in statutory damages for a mere 200 lines of code. Most competent coders could rewrite that in a week, if not a day.

    --
    The society for a thought-free internet welcomes you.
    1. Re:Hope the author's not the vindictive type... by arminw · · Score: 1

      .......Just because it's on the web, even without any particular license, doesn't mean it's free for the taking.........

      Yes, that's the current law, which is a shame. Originally copyright was intended to prevent others from making an easy profit from someone's creativity. Simply going back to requiring low cost, easily renewable registration every say 5 years would go a long way toward fixing copyright law. It would mean that any creator of a work who cares about having their work protected would be able to do so. He/she would not have to go to a court to collect royalties. There would be a database, similar to patents that anyone could check, to see if a given work was duly copyrighted. If the creator wanted the world to enjoy the fruits of his/her labor, they would do nothing, otherwise register it. Then everyone would know whom to ask for permission.

      --
      All theory is gray
  43. I don't understand the question. by goldspider · · Score: 1

    If something was stolen, the right thing to do would be to return it to its owner, no?

    --
    "Ask not what your country can do for you." --John F. Kennedy
  44. Hmm, Let's see... by aminorex · · Score: 4, Insightful

    Gee, it's a dilemma: You could (1) talk to the guy about it, or (2) wave it over the global press under a pseudonym pretending that no one will guess who you are.

    Let me think about this for a minute...

    --
    -I like my women like I like my tea: green-
    1. Re:Hmm, Let's see... by no-body · · Score: 1

      mod parent up!
      That's the only post above score 2 so far who recommends the most sensible thing:

      Talk to the guy, sit back and watch what happens.

      It's your project lead - let him deal with it. S/he could be your colleague you work together with - yes?

      All the other legal hollabaloo is just a bunch of mindfuck at this point.

      It may just be an hot air baloon - stick a needle in and: poof, all disappears into nothingness because all the assumptions turn out wrong.

  45. I wonder... by sunaj · · Score: 2, Funny

    I wonder if your project lead reads /. ?

  46. IANAL by Greyfox · · Score: 4, Funny

    But I bet your company has one. Wait, I'm getting an idea... yes... yes... no, lost it. I'm sure it would have been the best legal advice ever posted on Slashdot, though...

    --

    I'm trying to teach myself to set people on fire with my mind... Is it hot in here?

  47. I've been missing out on royalties. by ewhenn · · Score: 0, Redundant

    I've seen my cide all over the NET!! I expect royalties from everyone who has ever used:

    <script>
    document.write("hello world!")
    </script>

  48. Question of authorship by johncadengo · · Score: 1

    How do you know that he wasn't the one who posted the code in the forum in the first place? How do you know it wasn't his code to begin with?

    --
    My page.
  49. He wanted you to use that code by Anonymous Coward · · Score: 0

    Why do people post code on internet? Because they want to help other people. They like to help. As simple as that. I don't think you can explain the amount of useful code on the net any other way.

    The best reward you could give him i probably to use his code. He would probably be glad if he knew that his code was used. I say, send him an email with "Thanks! You code was really useful. Nice work. Keep it coming..."

  50. Talk it out. by Anonymous Coward · · Score: 0

    You mentioned that the person who copied the code is the lead developer. Why not discuss it with them directly before even considering talking to management or anyone else? See what their take on the situation is. If you can't establish a communicative relationship with the lead developer on a project that could be just as detrimental to your career as whistle-blowing.

    Also, consider the timing. Has this code made it into a release yet? If not, and copyright is a real concern to others in your organization aside from yourself, now would be the time to act. If it's been in there for one or more releases, getting it out now won't put you in any better shape than getting it out of there for the next release.

  51. Original Author?? by hemp · · Score: 1

    Now, in reality, the author posted it to a forum, probably with the intention of giving away the code. It would be entirely up to the author to sue and whether the author would sue or not -- well, I kinda doubt it.

    Umm..how do you know this guy is the original author and didn't himself lift it from another site?

    That to me is the danger in not using in house code. You never know who the original author is it.

    --
    Skip ------ See the latest from http://www.anArchyFortWorth.com
  52. Use your head. by SatanicPuppy · · Score: 4, Insightful

    Just for me personally, if I put some code I wrote out in a forum, I expect someone to use it other than myself. Someone asks a question, I throw out a chunk of code, we're done. I don't care where it ends up. Likewise if I find an example that someone has put on the web when I was searching for something to do that exact thing, I'll grab it and adapt it to my use on the principle that that's what it's there for.

    Forums can be kind of a greyer area. I once had a guy who was maintaining a system I wrote put a decent chunk of my code in a forum; source code, mind you, not just a script. It was a whole program, and while I never sold that particular piece to do anything by itself, it was a part of a product I did make a decent bit of money on, and a pretty clear-cut breach of my IP for some joker to just post it (they'd signed a contract dealing with redistribution, so it was in writing).

    I called them, they apologized, disciplined the guy, and hired me to do the change he'd been trying to do (he'd posted the code trying to get someone to tell him what it did), and paid me at a higher rate. I let it slide because it wasn't a big deal (non-critical code), and they dealt with it to my satisfaction.

    If, at some later date, I'd found that code verbatim in someone else's system, I might have mentioned it to them, as an aside, but I wouldn't have tried to claim damages or make them remove it. At that point it is WAY too difficult to trace provenance, and hard to prove any sort of knowing violation. It had been released, I'd taken it up from the people who released it, it was done.

    In short: If someone releases code with no license attached and you use it and it turns out later it was licensed you're going to have to deal with the consequences of that. If it turns out it wasn't licensed (or was BSD licensed) you're in the clear, even if it was a case like mine where the code was released by a party that wasn't authorized to release it.

    The internet is a nice tool to keep from re-inventing the wheel, but if you take anything more than a little subroutine, you better know what rights you have with regards to it because it can seriously bite you in the ass.

    --
    ad logicam Claiming a proposition is false because it was presented as the conclusion of a fallacious argument.
    1. Re:Use your head. by david_thornley · · Score: 1

      Just for me personally, if I put some code I wrote out in a forum, I expect someone to use it other than myself. Someone asks a question, I throw out a chunk of code, we're done. I don't care where it ends up.

      In which case it wouldn't do you a bit of harm to say you're putting it in the public domain. If I write something like that, that's what I do. It removes all those pesky legal questions.

      --
      "When you have eliminated the unacceptable, whatever is left, however improbable, must be the truthiness" - Holmes
  53. Is it systematic? by Kjella · · Score: 1

    Honestly, it's 200 locs. If someohe got seriously "arghhhh how do I solve this?", googled and found some code in a forum that solved that one annoying problem then I wouldn't hold it much against him. Now, if the whole product is like this with a lot of code or whole libraries lifted from other sources and he's actively using google as a source to avoid doing his job, then I'd consider acting on it. I know there are some quite honest people that are more discrete but essentially doing much the same if they find a piece of code that does exactly what they need. It's sorta hard to imagine an alternative way if you've already peeked at the solution.

    --
    Live today, because you never know what tomorrow brings
  54. I shall copyright... by Zukix · · Score: 2, Funny

    int i = 0;

    hah you will all be theives from just reading this post!

    Or maybe there is something more to a copyright issue than just any code snippet.

    Hmm.

    1. Re:I shall copyright... by Anonymous Coward · · Score: 0

      Hah - I found your supposed "new" code on a thousand forums already. So you don't own the copyright - and, in fact you sir have infringed on the copyright of those countless internet legions who have posted this exact code (complete with no comments) before.

  55. An interesting question by starseeker · · Score: 2, Insightful

    Not specific to this situation, but there almost certainly has to be a practical limit to how much code you need before something is under copyright.  For example, the single line

    (+ 1 1)

    could not be reasonably subject to copyright (IMHO, IANAL, etc.)  IIRC there is some rule about originality that this would not satisfy.  OK, what about:

    ;Code to print out "hello world"
    (defun hello-world () (format t "hello world"))

    Exceedingly simple, entirely trivial, and arguably not creative or original, but more gray than the first example.

    What about:

    ;Code to add two numbers and multiply by a third number
    (defun calc-with-three-numbers (a b c) (* (+ a b) c))

    Still trivial, but you get the idea - at what point do we cross the line into copyrightable material?

    Also, let's assume (for the sake of argument) the last example above is copyrightable.  If someone else independently working on the same problem does:

    ;(x+y)*z
    (defun f1 (x y z) (* (+ x y) z))

    Would that constitute a copyright violation of the above formula? They do precisely the same thing using exactly the same algorithm, but look very different.  Is the second in violation of copyright of the first?

    In practice, some problems have an "optimal" solution that most skilled programmers will eventually converge on (if they are good at their jobs).  To my mind this might end with comments being (sometimes) copyrightable and code being defined as a mathematical algorithm, which (IMHO) is much closer to the true situation.  But I don't know what the legal definitions are for this issue - anybody know if Groklaw has dug up any related material?

    --
    "I object to doing things that computers can do." -- Olin Shivers, lispers.org
    1. Re:An interesting question by Anonymous Coward · · Score: 0

      :% s/var1/var2/g

    2. Re:An interesting question by tooslickvan · · Score: 1

      It becomes copyrightable when it has monospaced fonts for no particular reason.

    3. Re:An interesting question by maxwell+demon · · Score: 2, Informative

      If someone else independently working on the same problem does: ;(x+y)*z
      (defun f1 (x y z) (* (+ x y) z))

      Would that constitute a copyright violation of the above formula? They do precisely the same thing using exactly the same algorithm, but look very different. Is the second in violation of copyright of the first?

      No. Copyright violation always includes the act of copying. If you somehow managed to write a Harry Potter book exactly like Rowling wrote it without ever being exposed to the original Harry Potter, it would not be copyright violation (however you would have a very hard time convincing the judge :-)).

      That's the difference between copyright and patents. With copyrights, only copying is illegal, independently coming up with the same isn't. Of course, if what you wrote is strikingly similar (or even identical) to some other code, that's evidence that you copied it (because it would be unlikely that you'd come up with the exactly same code independently). OTOH, evidence that you never have seen the other code is evidence against you copying it (that's why it's so important that people doing a clean-room reimplementation are never exposed to the original code). OTOH, with patents, it doesn't matter if you copied it or re-invented it yourself. It only matters if it dos something described by the patent.

      IANAL, however.
      --
      The Tao of math: The numbers you can count are not the real numbers.
    4. Re:An interesting question by seebs · · Score: 1

      If it wasn't copied, it cannot violate copyright, even if it ends up being exactly the same set of characters.

      Copyright covers copying. It does not cover invention; for that, you'd need a patent.

      --
      My blog: http://www.seebs.net/log/ --- My iPhone/iPad app: http://www.seebs.net/seebsfrac/
  56. What if.... by Joce640k · · Score: 1

    What if the guy who posted it in the forum wasn't the real author and it's really copyrighted by somebody else?

    --
    No sig today...
  57. WRONG, not legal! by DreadSpoon · · Score: 1

    It is NOT LEGAL to copy code just because it has no license!

    Everything is automatically covered by copyright law, with "all rights reserved," even if no copyright notice or license is provided. This is a core fact of international copyright law. A license does NOT restrict your rights to use a work; the only thing a license is ever able to do is GRANT you rights that you, by default, DO NOT HAVE. "License" literally means "grant permission," you know. By default, you do not have the right to redistribute a work at all without explicit license (that is, permission) from the copyright holder. Again, it does NOT matter whether the original work had any copyright or license at all. If it has none, you are barred from reusing it, period.

    (EULAs are tecnically contracts, not licenses, despite the name. Don't confuse them with a normal copyright license.)

    1. Re:WRONG, not legal! by zzsmirkzz · · Score: 1

      I've been reading this thread and common theme is that the code is automatically copyrighted once it was written down. Okay, sounds about right to me. The problem I'm having is connecting the line between a copyright on 200 lines of code and the compilation of said lines into a commercial application. I thought, correct me if I'm wrong, that copyright gave you the exclusive right to publish said work. Now just because you have a copyright on some code does not mean that I can't incorporate it into my own private works so long as I never re-publish or re-distribute the source code. In other words, I would think it would be okay to use the code but only distribute the compiled version which the author does not have a copyright to. What am I missing here?

    2. Re:WRONG, not legal! by orasio · · Score: 1

      I've been reading this thread and common theme is that the code is automatically copyrighted once it was written down. Okay, sounds about right to me. The problem I'm having is connecting the line between a copyright on 200 lines of code and the compilation of said lines into a commercial application. I thought, correct me if I'm wrong, that copyright gave you the exclusive right to publish said work. Now just because you have a copyright on some code does not mean that I can't incorporate it into my own private works so long as I never re-publish or re-distribute the source code. In other words, I would think it would be okay to use the code but only distribute the compiled version which the author does not have a copyright to.

      What am I missing here? The point.
      When you redistribute the binary, you are distributing a derivative work.
      The GPL gets its teeth from that.
  58. Technically Maybe / In Practice No by KidSock · · Score: 1

    If you literally cut and paste or copy something verbatum from somewhere, whether it be a poem or code, even in a public forum, technically it's implicitly copyrighted by the author.

    However, in practice, if the intent of the author was to share the code with other developers as reciprocation for assistance in the forum, code masterbation, karma, whatever, the implicit copyright is weak. IANAL but I don't see how any court could ever find the copier at fault and really you shouldn't either.

    200 lines of web code is not a significant part of your company's intellectual property. Be flattered, move on and keep hitting the pavement like everyone else.

    1. Re:Technically Maybe / In Practice No by ceoyoyo · · Score: 1

      200 lines is pretty hefty. Even if the code is unquestionably in the public domain the copier should still mention where it came from, for ethical reasons if nothing else. Even if plagiarism isn't technically illegal it's still unethical.

    2. Re:Technically Maybe / In Practice No by Chris+Pimlott · · Score: 1

      The license of the code is completely orthogonal to its copyright. Specifying a liberal license such as "do what you want" in no way weakens the strength of the author's copyright. They are two separate things. It is the constancy of the author's copyright that gives him the right to specify his licensing terms.

  59. Which is why he should talk to his lead programmer by benhocking · · Score: 1

    Umm..how do you know this guy is the original author and didn't himself lift it from another site?
    In fact, the person posting it to the blog might have lifted it from this guy's lead programmer (either in the code in question or in a previous project). The best thing is to talk to the guy who originally wrote/copied the code and tell him that you found this code on-line. If he copied it and he's smart, he'll suggest rewriting it. If he's the original author, then he has the opportunity to apply/abuse his own copyright.
    --
    Ben Hocking
    Need a professional organizer?
  60. aren't you doing the same thing here? by petes_PoV · · Score: 1
    OK, this is a mischevious response, but let's see where it goes.

    To summarise your position: someone in your company found some information on a forum and too advantage of it (presumbly without the authors permission). You are asking for advice on a forum and are hoping to take advantage of it, too.

    Are you planning to get the permission of whoever's advice you use, before you use it?

    P.S. You have my permission to use this post in your considerations.

    --
    politicians are like babies' nappies: they should both be changed regularly and for the same reasons
  61. I look at it this way by Anonymous Coward · · Score: 0

    from what I can tell from the original story, the guy found some code that developer in his company pulled off a message board. In my experience, no one just randomly puts a piece of code on a message board post and says "here's the source to this great piece of software I wrote. Don't any one use it." If you do go around doing that, congrats, you're very weird.

    Most code posted on a bbs is code put in response to a question, i.e. "how do I make a database connection". At that point, its pretty much implied that I'm going to let you use the example code I posted however you please and, considering its a very public place I'm posting it in, anyone else is more than welcome to use it.

    At the same time, I challenge any of you out there that has programmed to honestly deny (key word: honestly) that you have never EVER under any circumstances been stuck trying to figure out something, then go to a book or bbs, see the solution and just copied what you needed.

      As far as I'm concerned, if you post it in a bbs (under about 98% of the situations), its fair game.

  62. You already know the answer by Weaselmancer · · Score: 5, Insightful

    I'm new to the company, and the developer who copied the code is the project lead.

    You married? Got any kids? A mortgage?

    If the answer to any of the above is yes, then shut the hell up about it and get on with your day.

    If the answer to all of the above is no and you're in the mood for an ethics experiment - mention it to someone. Have your resume ready first. You're about to learn what the business world is really like.

    --
    Weaselmancer
    rediculous.
    1. Re:You already know the answer by petes_PoV · · Score: 4, Interesting
      You're about to learn what the business world is really like.

      Or, depending on how the project lead is viewed in the company, this could be the fastest promotion you'll ever get.

      Before you talk to anyone about this, do some discrete research about who might be sympathetic to your situation, who the lead's enemies are and think about just how much politics you want to get involved in

      --
      politicians are like babies' nappies: they should both be changed regularly and for the same reasons
    2. Re:You already know the answer by ceoyoyo · · Score: 1

      And this is the reason why I'm NOT, and hope to never be, in the business world. At least not with a boss.

    3. Re:You already know the answer by Anonymous Coward · · Score: 0

      I saw a similar case; project lead integrated a whole library into the project; to solve equations where the coefficients were elements from a Finite Field. Tech lead was clueless how to do it; the final product, "Company Solution" with a library integrated. No changes in code whatsoever; it was quite mathematically challenging, I guess. The parody of this is, the company was frantically asking ethics questions during the entrance interviews.

    4. Re:You already know the answer by slothman32 · · Score: 3, Insightful

      No; you should always do ethical dilemmas.
      I once read a comment on /. about someone saying their contract to their family was more important that that of the company they worked for.
      I don't know the exact extent of the problem here but that would mean that anybody with a family could do unethical, maybe even illegal, things and use the excuse, "I have to do it to support my family." "They won't survive if I don't do the bad things my companies want because a McJob won't cut it."

      The business world probably is like that. That doesn't mean you should be.

      I wonder if this is a cognitive dissonance.
      Ethical job and family support are both needed but can't be at the same time.
      The remedy is to make one more important than the other.
      The other then doesn't exist in this comparison.

      --
      Why don't you guys have friends or journals?
    5. Re:You already know the answer by seebs · · Score: 1

      I think you mean "descreet".

      --
      My blog: http://www.seebs.net/log/ --- My iPhone/iPad app: http://www.seebs.net/seebsfrac/
    6. Re:You already know the answer by seebs · · Score: 1

      I KNEW that would hapen. [oh, !@#*!@#, not again.]

      "discreet".

      (I'm not even TRYING to fix the new typo this time.)

      --
      My blog: http://www.seebs.net/log/ --- My iPhone/iPad app: http://www.seebs.net/seebsfrac/
    7. Re:You already know the answer by bl8n8r · · Score: 1

      > You're about to learn what the business world is really like.

      I think you should add dishonest in front of business world. I've done a fair share of consulting with ethical businesses where they want to keep their street clean in regards to copied code. It's far better to catch this stuff before it heads off to production instead of years down the road. Some companies will have Policies regarding this type of incident also, so it may pay to look into that also. By and large, if you are working for a place that doesn't have a lot of regard for ethics, you'll probably be getting fired before you hit retirement age anyway. All that stuff comes full circle in the end.

      --
      boycott slashdot February 10th - 17th check out: altSlashdot.org
    8. Re:You already know the answer by CodeBuster · · Score: 1

      Agreed. If the GP is really worried about it then he should put a comment in the code noting where it came from, write an email to management explaining where it came from and let the legal department and management decide what to do. Just make sure that you keep emails and other written correspondence relating to the issue filed away and then do whatever management wants which will probably be something along the lines of, "Just use it and if anyone comes looking for a licensing fee some day then we will cross that bridge when we come to it."

    9. Re:You already know the answer by sohp · · Score: 1

      unless he's doing a certain class of numeric problems, I think you mean "discreet"

    10. Re:You already know the answer by Anonymous Coward · · Score: 0

      How about bringing it up at lunch with the team lead? If I was the team lead I would be happy having people on my team that value ethics. Also, not being afraid to give your opinion is a requirement in my book. If you are good with people you can easily discuss this without pissing someone off.

      And if you still get into trouble, you are working for the wrong company anyway.

    11. Re:You already know the answer by IainMH · · Score: 1

      Before you talk to anyone about this, do some discrete research about who might be sympathetic to your situation, who the lead's enemies are and think about just how much politics you want to get involved in Woah, easy there Machiavelli.
  63. It depends on the role it has in your app by codeboost · · Score: 2, Insightful

    I guess it all depends on what the code does - if it's a collection of utility functions (like string manipulation) which anyone could write during a coffee break, then I guess you can forget about it and move on with your life.
    If, on the other hand, the code is a complex algorithm which took months of research to develop AND is the main feature of your app - then I guess you should spend some time and try to figure out the license thing.

    I guess one should be 'politically correct' up to a certain point - when the subject can, in theory, harm others. Beyond that it doesn't make sense and one should focus on more important aspects of reality, rather then examine everything under the microscope, even though there's very little to see there.

  64. Code length by DeadDecoy · · Score: 2, Insightful

    Normally, it's best to err on the side of caution write original code. In this case the code was 200 lines long. Now, I know length shouldn't be an issue, but how many different ways can/will you write your for-loops or AJAX code. The OP mentioned that the code was 200 lines long, which isn't very much. Even if the OP's group were to rewrite the code, it might not look very different from the original code (not counting stupid things like variable or function name changes). It's at these gray areas, that I, personally, tend to not care as much. Now, if it were an entire library of code, that would be different.

  65. Sheez! by Pasajero · · Score: 0

    I'm totally fed up with this copyright paranoia.

    Now you have to make sure your code is different than somebody else's or you'll be sued?

    With ANY computer language being a LIMITED set of instructions, that leaves only so much options to do things, and some of them can ONLY be done with specific instructions in a specifc order.

    Society have to grab greedy people/corporations by the balls and yell "Enough is enough!!".

  66. Transparent Aluminum and the Prime Directive by flaming+error · · Score: 1

    How do we know the guy didn't invent it?

    In other words, "the developer who copied the code" may have copied it from your project to the forum. Or maybe he already got permission from the poster. Or maybe he already got company clearance.

    Why don't you talk to your project lead about it?

  67. Then I'm glad I don't work for you by postbigbang · · Score: 2, Interesting

    as is mentioned upthread, published works are owned by their authors by copyright in the USA,

    I'd prefer an ethical behavior on the part of all of my employees; some do better jobs than others-- but ethics comes first. Our code is clean, was clean, will be clean, and adheres to the licensing and copyright strictures.

    Dry-ripping/cutting&pasting code from any old website is beyond stupid, it's lax, possibly criminal, and well, you haven't vetted the code against standards and practices-- what if it blows up or creates a nice nugget of crap in otherwise vetted code.

    I disagree with your practices. They put output over ethics, suggest unscrupulous use of code, violate standards practices, and create possible conflicts with other code. Swiping unknown code from a random website's bad practice.

    --
    ---- Teach Peace. It's Cheaper Than War.
    1. Re:Then I'm glad I don't work for you by TheWanderingHermit · · Score: 2, Insightful

      Then I'm glad I don't work for you

      So am I. Almost every line of your post is an assumption based on -- well, nothing.

      as is mentioned upthread, published works are owned by their authors by copyright in the USA

      And where does it say for sure that 1) this company is in the US or that the forum is based in the US? And, again, as I pointed out, how does the OP know that even if it's not in the comments, that permission wasn't obtained elsewhere, in email, for example?

      I'd prefer an ethical behavior on the part of all of my employees; some do better jobs than others-- but ethics comes first. Our code is clean, was clean, will be clean, and adheres to the licensing and copyright strictures.

      I never said I didn't but you seem to assume so. I set the ethics for my company. There are MANY times when two or more people can have differing views on what is right. I built my company from the ground up, from when I couldn't even afford to buy the tech books I needed without asking relatives and friends for a loan. It's my business which means when views conflict, my ethics prevail. It's my decision that counts.

      Dry-ripping/cutting&pasting code from any old website is beyond stupid, it's lax, possibly criminal, and well, you haven't vetted the code against standards and practices-- what if it blows up or creates a nice nugget of crap in otherwise vetted code.

      Interesting assumption -- that you haven't vetted it against standards and practices. Depending on the language, a couple hundred lines of code by a third party can be just as easily debugged as if one wrote it himself. That the code comes from outside does not make it better or worse than if it was written by someone inside the company. Yet you assume it is bad and hasn't been debugged or vetted.

      And what if this new programmer, the OP, writes replacement code that "blows up or creates a nice nugget of crap?"

      I disagree with your practices.

      An interesting judgement you make considering, from that first post of mine, the only practice I stated was that I'd rather have someone who works than looks for moral crusades. I've had potential programmers, for example, that felt I was immoral because the program we give our clients to run on their computers to connect to ours is closed source. I'm not going to hire someone who is going to make it a point of continually butting heads with me, thinking that his ethics should or have to rule over mine.

      If you re-read my post, I didn't tell the guy what to do. I didn't tell him to shut up, I didn't tell him to go to management. I just brought up one point that was quite relevant. I didn't say what to do or not do.

      They put output over ethics, suggest unscrupulous use of code, violate standards practices, and create possible conflicts with other code.

      Again, quite an assumption. I am quite strict in how certain situations should be handled and could have "made it" much faster if I didn't make a point of working within ethical boundaries. I have competitors that I could have wiped out if I wanted to, but I haven't due to ethics. You make quite a strong judgement and make some strong statements about me with very little information.

      And, again, all the issues you say are possible with someone else's code are just as possible with code written in house.

      Thank you, though, for providing a good example of what I'm talking about: Someone who is so eager to find a chance to stand up for what he thinks is right (and a chance to go on an ethical crusade so he can take someone else down) that they're willing to jump in without thinking or examining the situation and start calling people immoral or unjust.

    2. Re:Then I'm glad I don't work for you by postbigbang · · Score: 1

      Self-built companies are admirable, if for their survivability.

      I don't imply that your code is in anyway unethical or illegal.

      However, the origin of code is important. If it's GPLVx, CCx, or Whateverx is a big deal. Whether open or closed source is a matter for another discussion.

      It seems we've both had drama-queen coders that were more interested in creating smoke than writing with fire. We'd both sack them.

      There's a decided process, however, where referential source integrity is part and parcel to quality code. Dragging and dropping snippets can seem great on the outside until something explodes, minutes later during a compile, or years later when Swiss Cheese code starts to rear its ugly head. That's why vetting code, putting into a tree, using quality assurance methods, deliver desirable and solid and possibly re-usable assets with out the first hesitation of origin.

      That's what I've implied. Nothing more. Drama queen coders are a hassle, but I'll take ethics (not morals, the two are different) over unethical/unvetted code in a heartbeat, and never look back.

      --
      ---- Teach Peace. It's Cheaper Than War.
    3. Re:Then I'm glad I don't work for you by Kelz · · Score: 1

      I personally wouldn't want to work for you for the reason that you immediately assume the OP is how you describe him.

    4. Re:Then I'm glad I don't work for you by Anonymous Coward · · Score: 0

      It's hard to believe now-a-days, but there was a time when if something *did not* have a copyright notice on it, then it was, in fact, not copyrighted and usable by anyone.

      It's unfortunate that copyright has been placed on such a high ivory tower that it has become ethical quandry to what at best seems to be incidental code never intended to be licensed.

      Instead of bowing down to the false god of copyright law, work to change it.

    5. Re:Then I'm glad I don't work for you by TheWanderingHermit · · Score: 1

      I don't imply that your code is in anyway unethical or illegal.

      It does seem like there's that assumption. Actually, I didn't want to get into a whole side discussion on it, since that was essentially rehashing the original question. That's why I left a lot out of my first post. I just wanted to skip the issue.

      My main point was that the OP had no clue what had gone on regarding that code. Personally, I feel this story gives us way to little info. We don't know what kind of forum the post was on, what the policies of the forum were, what the context of the post was, or anything else. I actually wondered, after reading the post, if it was possible his supervisor could have asked, on the forum, how to solve his problem, and then the post with the code might have been a direct response, which one could argue would include an implicit permission to allow the code to be reused. While that's unlikely, I still feel like we weren't given enough info.

      It seems we've both had drama-queen coders that were more interested in creating smoke than writing with fire. We'd both sack them.

      I first read that and thought you had written "smack" instead of sack. That image gave me quite a level of emotional satisfaction. Personally, I am usually more interested in the person than in a particular skill. I'm lucky that I'm not doing anything with such a high skill level that I need top "experts." If someone knows Perl they can (usually) learn Python and do well in it. Sure, they may miss a few points and write loops that are 13 steps instead of 10 steps, but in my situation that's rarely an issue. I'd rather have someone that can work with me and others than a prima donna who thinks his skills justify poor people skills. Luckily, I've avoided drama queen employees. I did have way too much experience with people like that when I was directing a movie made with all volunteers and, unfortunately, that's not a place where you can replace someone after the first couple weeks. That's when I learned to watch for that stuff when hiring.

      As for drag and drop, if you're talking about a quick operation and not reviewing the code, that's an issue, but we've encountered a number of times where we used other people's code. Any time you use a Perl (or any programming language) library, that's what you're doing. I've seen Perl modules that seemed to do what they said, but we still tested them thoroughly before using them and examined the code. Even with that, it was faster than writing our own library.

      I keep my staff small (always 3 or fewer programmers). Sometimes it takes longer, but, overall, it hasn't cost more and it won't be long before our code base is "complete." When that happens, it'll be down to one programmer to handle upkeep and to add the few new things we need. I've been lucky to find a situation where there isn't much need to keep pace with others. That also tends to effect the type of person I can and do hire. I don't need to worry about ambitious or dramatic people who talk about wanting to have a corner office and manage large teams.

    6. Re:Then I'm glad I don't work for you by TheWanderingHermit · · Score: 1

      Didn't assume at all.

      I said he "sounds" like that and I don't hire that type of person (if I can catch it in time). I never said he was.

      Still, don't worry. I'm not going to make you work for me! ;-)

    7. Re:Then I'm glad I don't work for you by dookiesan · · Score: 1
      Completely agree except for one part :

      And where does it say for sure that 1) this company is in the US or that the forum is based in the US? And, again, as I pointed out, how does the OP know that even if it's not in the comments, that permission wasn't obtained elsewhere, in email, for example?

      No diversion tactics in the argument please.

    8. Re:Then I'm glad I don't work for you by Anonymous Coward · · Score: 0

      I set the ethics for my company. It's lines like that which illustrate the problem with American business.

      Ethics is absolutely not something that should be set by management and followed by the workers, like any other business decision. Ethical decisions must be made by individuals as they face them, never delegated, with positive examples hopefully set in the first place by his family and through his life by his neighbourhood and then society in general.

      Meanwhile, "I was only following orders" is absolutely not an excuse for any employee. If every man stood up to his management when he had uncovered a morally questionable decision, management would have no choice but to capitulate if it wanted to retain employees. I've left two jobs over the immoral actions of bosses and coworkers, where my attempts to reason with them failed; I'd be richer if I was more mercenary, but why give up your soul for a few dollars?

      Really, you're just another unethical business owner who thinks he can take control of his workers' conscience. Fine, you want your workers to be more mindless than the OP; hopefully, he has the good sense never to work for people like you - I know I do. It's a shame that professional associations are less well regarded among software engineers and IT guys; a charter for ethical practice that employers know workers have agreed to as part of their professional membership is certainly helpful in other disciplines.
    9. Re:Then I'm glad I don't work for you by Anonymous Coward · · Score: 0

      Shut the fuck up, you tinpot Ballmer wanabee.

    10. Re:Then I'm glad I don't work for you by TheWanderingHermit · · Score: 1

      Wow. You love having a soapbox, don't you? I just love it when someone who won't even log in with a username feels they can tell everyone else what is right and wrong.

      Even more, I find it interesting that, even without giving out any details, so many people just assume they know what kind of person I am, how I run my business, and what kind of decisions I make.

      Actually, I belong to a religion that, in essence, demands I act by my ethics at all times, in and out of work, in dating, in everything. Yet you would not know that.

      You make broad sweeping statements based on very little evidence.

      That I take the burden of making the decision for my company, in itself, is neither ethical nor unethical, unless I totally mis-remember my philosophy courses from college.

      Yet you are sure, from just a small bit of information, that I'm unethical and run an unethical company. Read my other posts in this thread. Then wait until you know something about my business before you start calling names.

  68. The Cream Also Rises by flaming+error · · Score: 1

    > how they got to be a project lead
    Maybe by consistently delivering results? Just sayin'...

  69. Only cream and bastards rise by techpawn · · Score: 1

    >> how they got to be a project lead
    >Maybe by consistently delivering results? Just sayin'...

    But are they their results or those of copy/pasted code.

    --
    Ask not what you can do for your country. Ask what your country did to you
  70. take a chill pill by smartr · · Score: 1

    If you didn't violate the copyright, and it's something short like this, why worry about it? If there is a bug, fix it. You're a programmer not a lawyer or an investigator right? How do you know the previous programmer didn't have explicit permission to use the code? Could it be that your lead programmer was enlightened enough to use other people's code, instead of hand coding everything?

  71. honest politics 101 by drDugan · · Score: 1

    Reporting him to management doesn't seem like a good career move.

    Not only is is a bad career move, it's a quick and sure way to get a rep so everyone avoids you. Report to your boss, bring your concerns up the chain. Start by: Doing it in writing, honestly, privately and directly to the person responsible.

  72. Nothing is currently done legally in business by Anonymous Coward · · Score: 0

    And this has got to change. I recently asked a client if he can pay me as a TEMP employee, and take all the taxes out and he perceived this as a threat not an actual question. Nobody cares what the licensing agreements are for open source projects, the line should definately be drawn at commercial custom software. I think you should definitely talk to a lawyer about it but be prepared to lose your job over it if necessary.... but the industry will thank you! Bad business is bad for everyone...

  73. My Dreams of Riches - Foiled! by Anonymous Coward · · Score: 0

    Note that short code segments have often been found to be uncopyrightable. It varies from jurisdiction to jurisdiction, but it's often difficult to claim copyright to less than ~ 10K LOC outside the USA.

    Darn! I was going to copyright {i=0;} and sue everyone for a bazillion Euros!

    Wait a minute, I could probably get a US patent for it: Muwha-ha-haaa... I'll be rich, steeking rich, I tell you!!

    1. Re:My Dreams of Riches - Foiled! by SQLGuru · · Score: 1

      { int j = 0; int i = j; } /* Circumvent above copyright */

      I hearby release the above code into the public domain.

      Layne

  74. Can forum "license" apply? by vxir · · Score: 2, Interesting

    What if to join the forum something was buried in the agreement like "you agree that any code or comments that you post are released to the public domain for others to use and modify"?

    I haven't checked for this sort of thing but if I was administrating one of these forums, I'd certainly have put something like this in the terms-of-use. After all, as many people have pointed out disallowing use of posted code runs counter to the purpose of the forum.

    My question is whether a term like this in a use agreement can override the implicit copyright.

  75. Comment removed by account_deleted · · Score: 1

    Comment removed based on user account deletion

  76. What does it do? by shadowrat · · Score: 1
    What does this code do? Does it fulfill a core business requirement? Does it give your product an enourmous competitive egde? or is it simply an implementation of a well known data structure. or an initialization sequence for something like creating a GraphicsDevice under DirectX.

    The former situations sound more serious than the later. Not many people feel there is alot of value in code that initializes a video card. You could easily spend 200 lines getting to the point to just draw something, but the structure of that initialization is largely determined by the people who made the api. How do you even know that the code wasn't copied from some book, then posted to the forums with some extra comments added?

    1. Re:What does it do? by andreyw · · Score: 1

      ...uh that and... sample example code on forums in 99.99999999999 (enough nines?) percent cases constitutes answers to the mundane, common or obvious.

  77. Whose code is it? by Anonymous Coward · · Score: 0

    From the description there are two significant possibilities that haven't been ruled out: 1) the work was created by your team lead first and then made its way onto the website and 2) the work was created by someone outside your company under employment by another company in which case, regardless of the individual's perspective, the copyright belongs to that other company.

    From what you saw on the website, do you know for sure that the code wasn't posted by your team lead?

    Maybe the simple answer is to approach the lead, ask if he posted the code on that site and discuss what, if any, actions are necessary to remove risk from your company.

  78. Talk to the guy who copied it? by merreborn · · Score: 3, Insightful

    Since I'm now the only person working on this code, there's no practical way to report the situation confidentially. I'm new to the company, and the developer who copied the code is the project lead. Reporting him to management doesn't seem like a good career move. I could rewrite the copied code without reporting him, but since the product is very close to release it would be difficult to make a significant change without providing some justification


    Hopefully you're working for a decent guy, and you can just say "Hey, dude, I was researching this bug, and in the process, found this code on this forum. You think we should be worried about copyright issues?"

    He may, like several slashdotters in this thread, be completely unaware of the fact that code is automatically copyrighted in the US.
    He may have been aware, but just lazy, and say "Yeah, we should do something about that".
    He may say "Who cares? No one will ever find out!". In that case, *then* you may consider going over his head and raising the issue with his superiors.

    If he's a decent guy at all, he'll appreciate your coming to him politely with your concerns. But even if he's the type of vindictive halfwit likely to take offense at your discovery, he'd probably be hard pressed to come up with an excuse for taking action against you. And really, if you're working for someone like that, you should strongly consider looking for a new position elsewhere.
  79. Err on the side of cautiousness by bfwebster · · Score: 1

    I'm not a lawyer, but I act from time to time as an expert witness in computer source code copyright infringement cases. Here are my observations:

    -- Bring it to the attention of in-house counsel (assuming you have any). They will want to know as soon as possible.
    -- As mentioned previously, check the forum itself to see if there are explicit statements about source code postings being in the public domain; don't rely upon vague statements or assumptions.
    -- If so directed by counsel, contact the original author and see if you can get a written release from him/her for use of the code.
    -- If that goes nowhere (no response or refusal for release), then do a clean-room reverse engineering -- get someone who has never seen the copied code to write replacement code based on a set of specifications.

    I have worked on cases that have ended up costing the defendant very large sums of money -- in litigation, settlement, and/or re-engineering -- because of some programmer 'borrowing' code that s/he had no rights to. ..bruce..

    --
    Bruce F. Webster (brucefwebster.com)
    1. Re:Err on the side of cautiousness by KirkH · · Score: 1

      I have worked on cases that have ended up costing the defendant very large sums of money -- in litigation, settlement, and/or re-engineering -- because of some programmer 'borrowing' code that s/he had no rights to.


      I've no doubt. But have you ever worked on a case where someone was sued for taking code from a public forum or other web page?
    2. Re:Err on the side of cautiousness by 808140 · · Score: 1

      You should consider the very real possibility that the code on the forum (like most working code available on forums) was actually copied from somewhere else. If you're lucky, it was written by the poster, or lifted from a BSD-licensed or public domain work. But it could very well be GPL'd code, or it could be code belonging to the company the poster works for, or whatever.

      I mean, forums aren't exactly the best place to write and test code. If it's a one-line deal, ok, but if it's 200 lines, and the code compiles and is reasonably bug-free as given, that seems to indicate strongly that it comes from somewhere else. That would make me very nervous.

  80. Common source perhaps? by jma05 · · Score: 1

    First, are you certain that your lead copied from the said web site? It could also be that they both copied from a common source, hopefully in public domain. Although you probably have other context information to judge that, your post itself does not address that possibility.

    I recall a similar argument in the SCO case where the code they claimed infringed was available as public domain in a text book.

  81. Good to hear by edwardpickman · · Score: 3, Funny

    So Vista Service Pack 1 is about ready for release?

  82. Diligence Yourself by fm6 · · Score: 1

    If there is no copyright claim by the original author then I don't see what the problem is.
    Ah, the inevitable self-taught legal expert. Your advice is full of bad legal logic, but that doesn't matter, because you didn't read the question very carefully. This is not published source code. The guy doesn't specifically say that it's from a closed-source product, but it's pretty clear that's what he's talking about.

    1. Re:Diligence Yourself by dedazo · · Score: 1

      Ah, the inevitable self-taught legal expert.

      Ah, the annoying johnny-come-lately slashbot who likes to make clever snide remarks about what other people say but usually can't articulate an opinion of his own.

      Your advice is full of bad legal logic,

      Yes, it's not in the "public domain", I get it. It's probably still fair use, depending on context.

      you didn't read the question very carefully. This is not published source code.

      Really? You must be reading a different article, because mine says this:

      The original author didn't attach any particular license to the code. It's just 200 lines of code the author posted in a forum. Is it legitimate to use source code that's publicly available but doesn't fall under any particular license?

      Anything else?

      --
      Web2.0: I love when people Flickr my cuil and digg my boingboing until my google is reddit and I start to yahoo
    2. Re:Diligence Yourself by fm6 · · Score: 1

      Ah, the annoying johnny-come-lately slashbot who likes to make clever snide remarks about what other people say but usually can't articulate an opinion of his own. You obviously haven't looked at my posting history.

      Yeah yeah, I'm the one who misread the story. I got the copying direction backwards. My apologies.
    3. Re:Diligence Yourself by dedazo · · Score: 1

      Fair enough. Cheers =)

      --
      Web2.0: I love when people Flickr my cuil and digg my boingboing until my google is reddit and I start to yahoo
    4. Re:Diligence Yourself by SwashbucklingCowboy · · Score: 1

      It's probably still fair use

      ROFLMAO!!! It's not fair use - not even close.

      The exception is for materials put to work under the "fair use rule." This rule recognizes that society can often benefit from the unauthorized use of copyrighted materials when the purpose of the use serves the ends of scholarship, education or an informed public. For example, scholars must be free to quote from their research resources in order to comment on the material.

      Source

      You really should quit before you get any further behind. You ignorance of copyright is astounding!

  83. Re:fuck allah, fuck islam! by Anonymous Coward · · Score: 0

    Very offtopic...

    After the cartoon riots I expected left-leaning types to be the first and quickest to stand up and condemn theocratic thuggery and tyranny. Imagine my dismay at the tepid response.

  84. as long as it's not GPL by Anonymous Coward · · Score: 0

    general consensus of the slashdot: stealing code is OK as long as it's not under GPL

  85. Forums.. by pyrr · · Score: 2, Informative

    ObDisclaimer: IANAL But most forum software tends to carry a disclaimer to protect the forum host, which says something to the effect that anything posted on the forum becomes their property forever to redistribute in any manner they please to indemnify them. They may (or may not) pass along that indemnity to users of the forums. But to the point, this isn't really your problem. It's the plagiarist-dev's problem. He may have obtained permission from the source after seeing the code and deciding it would fit the bill. He may have just written it himself previously and recycled it on the forum and in the current project. Or he may just made some assumptions and figured nobody would be the wiser. The ultimate question is, would you be reasonably expected to discover this plagiarism, and held responsible for not telling anyone? If not, you might want to just keep on walking, in the remote chance anyone will ever notice or care, it's still on him or someone else on the team, and probably not you since you're the new guy. If you're terrified of it being pinned on you, only then open that can of worms. Makes you wonder if it's that bad code though that's causing problems, since it was lifted verbatim, possibly without enough changes to fit your application, or just has some dumb error.

  86. Yes, of course. (but IANAL) by Half-pint+HAL · · Score: 1

    Releasing code on a forum that made such a condition would constitute licensing, just like publishing it in a book called Code You Can Use would.

    It doesn't make that much difference how the license comes into being, as long as the author explicitly agrees to it. (It is possible to argue "implicit consent" in certain circumstances, but IANAL and it's a pretty complex area of law.)

    HAL.

    --
    Got them moderator blues I blieve I walk out the do', With these mod-points I been gettin', I 'most never post no mo'
  87. Is it really that important? by Anonymous Coward · · Score: 0

    IANAL...

    But is the code really that important?

    Is it like "Oh noes! They used <html> <body> <etc.> inside their websites!"?

    Seriously though, if it's just a few lines that can be adapted to general purpose stuff, a simple function or two, or a quick demonstration, I wouldn't sweat it.

    Now if they're copying something akin to 300 lines of stuff that works as a specific application that's unique or novel, then you should have good reason to bother. You just have to figure out what the potential cost is (if any), and whether or not something is generic enough that you'd risk looking stupid for complaining about it.

  88. First things first... by StickyWidget · · Score: 1

    ...you are a weenie. Seriously, a big weenie. This "Stolen" code had better be along the lines of Nuclear Missile coordinate mapping functions, and not "how to use Javascript to read the contents of forms as they are entered". Luckily, the very fact that someone was able to copy code directly from a website means your company isn't doing anything important, so I think I can let it slide.

    That being said, REAL stolen code is a difficult matter. There are lots of common things that need to be done that don't necessitate a full library to be developed, but are important all the same. I'm thinking mainly of one-off kind of code, examples would be most regular expressions, a lot of parsing, some file i/o that is common but needs tweaking. Plus, there's always the "How do I use this object" kind of stuff.

    Stolen code would be on the lines of the optimization technique for sorting and optimizing access to Russian->English translations, or an intelligent determination algorithm for fast and efficient calculation of road directions on a GIS based web application, or maybe a combination of CSS, javascript, xml, and some flash that imitates the behavior of the host windowed environment in a browser. That is stolen code, and is likely the product of many many hours of work and a serious investment in time and money. Usually, this doesn't find it's way into forum posts, though I'm sure there have been embarrassing exceptions.

    Maybe I'm reading this wrong, but you seem to be a young developer, maybe this is even your first development gig. The very fact you labeled this "Stolen Code" means you are coming to conclusions way too fast. To use a common corporate phrase, "This kind of decision is a little above your pay grade". I suggest you report this 'finding' to management as a something you need guidance on. Don't use "stolen", don't use "copied", don't use any words that indicate a judgment on your part, simply state that you found company code on a forum website and you thought someone should know. That's CYA, and it's the responsible thing to do.

    ~Sticky
    /Weenie.

  89. chill by pak9rabid · · Score: 1

    I wouldn't worry about it. The chances of a.) the person finding out and b.) the person actually giving a shit are pretty slim. I definately wouldn't rat him out...especially if he's a lead. Although it may seem like the ethical thing to do, in reality being labled a 'rat' in a company is pretty detrimental to a person's political status. If shit hits the fan, management will deal with it accordingly (after all, isn't that what `svn blame' is for?).

  90. Guilty until proven innocent by dFaust · · Score: 3, Insightful

    So let's be honest, this is a pretty common occurrence. Often times when people post code online in a forum, it's expected by the author that people will lift the code... in fact, that's why it's being posted to the forum! I understand that without an explicit license or authorization from the original author that this is not legal... good, fine, whatever - not trying to debate the legalities of it.

    What bothers me here is that the original poster seems to be implying some act of malice on the part of his co-worker. Now, I don't know the full details of the situation, maybe there are valid reasons why he would feel that way. But he didn't even hint at that in his question to Slashdot but does mention his inclination to report him to managment. Really?? I mean... REALLY??? Could this not be an honest mistake stemming from a misunderstanding of the law? Perhaps the co-worker had private exchanges with the code author regarding using the code. Should portraying your co-worker as a criminal to management really even be considered as your first course of action?

    I'll let others give their suggestions on how to deal with the situation, but the way the co-worker was portrayed here just rubbed me wrong. I've seen this same thing plenty of times, and it's never been anything but an innocent mistake... both on the part of the person copying and the person posting the code, because in my personal experiences the poster's intent was to make the code freely available but lacking knowledge of copyright law prevented them from expressly stating so in the forum. I'm guessing there's a good chance it can be resolved fairly easily without pissing anyone off or getting anyone fired.

    1. Re:Guilty until proven innocent by Anonymous Coward · · Score: 0

      Amen, (IANAL) but any issue of legality has to take into account the damages involved. And the damages involved for a 200 lines of code can't be all that much. Especially if the creator of it posted freely for all to see.

      There is a difference between finding a quarter on the street and a duffel bag of cash.

    2. Re:Guilty until proven innocent by Anonymous Coward · · Score: 0

      So let's be honest, this is a pretty common occurrence. Often times when people wear skimpy clothing in a public forum, it's expected by the person that people will be titillated... in fact, that's why it's being worn to the forum! I understand that without an explicit consent from the original barfly that this is not legal... good, fine, whatever - not trying to debate the legalities of it.

      What bothers me here is that the original poster seems to be implying some act of malice on the part of his co-worker. Now, I don't know the full details of the situation, maybe there are valid reasons why he would feel that way. But he didn't even hint at that in his question to Craigslist but does mention his inclination to report him police. Really?? I mean... REALLY??? Could this not be an honest mistake stemming from a misunderstanding of the law? Perhaps the co-worker had private exchanges with the barfly regarding using the vagina. Should portraying your co-worker as a criminal to management really even be considered as your first course of action?

      I'll let others give their suggestions on how to deal with the situation, but the way the co-worker was portrayed here just rubbed me wrong. I've seen this same thing plenty of times, and it's never been anything but an innocent mistake... both on the part of the person raping and the barfly wearing the skimpy outfit, because in my personal experiences the barfly's intent was to make the vagina freely available but lacking knowledge of law prevented them from expressly stating so in the forum. I'm guessing there's a good chance it can be resolved fairly easily without pissing anyone off or getting anyone fired.

      (p.s. I think you had a point, but you didn't make it very well)

  91. Uh... dude... by Anonymous Coward · · Score: 0

    Also, let's assume (for the sake of argument) the last example above is copyrightable. If someone else independently working on the same problem does:

    ;(x+y)*z

    (defun f1 (x y z) (* (+ x y) z))


    Whatever, bro. All new devs code in Java & stuff. Check out this code snippet I stole the other day while browsing from my Mac with the punk rock sticker on the lid:

    newObj = objData.QuickSort();

    wicked stuff. I heard it's a new way of moving things so they're in order of most coolness to least radness. I'm going to get so busted if my company finds out lol

    --
    (yes, possibly off topic, but very similar to a discussion I had with someone the other day)

  92. Haha! by edmunz · · Score: 0, Troll

    Tickle my butt!

  93. grow up kid by Anonymous Coward · · Score: 0

    Why would you "report" him to your superiors? Do you honestly think people care? Weren't you taught that nobody likes snitches? You do not sound like a team player and have zero political intelligence.

    What you do is this... send out an email to your lead saying that you happened to have found the code on the internet, and was wondering if it was safe to use it. Let him deal with it, not you. As long as you keep an email copy of the response, you are covering your ass, and that's all that matters.

    Do you honestly believe that people are going to think you're a hero by revealing that some of the code is taken from somewhere else?

    also, you need to have the wisdom to evaluate the code and see exactly how valuable it is... if it's just generic code, who the fuck cares? If it's Valve's code for Half-Life, I can understand, but cutting-and-pasting someone's implementating of a link list is almost useless.

    Learn a little about the real world, it's not that big of a deal. Just because you read scores of article on slashdot doesn't make it a real world concern for 99.9% of the cases out there.

  94. Codeproject by Jugalator · · Score: 1

    We have some third party code in our application from CodeProject. I just have to plug that site for what it's doing to teach especially Windows programmers in all disciplines, from offering useful UI controls and database API's down to assembly language stuff, and usually with licenses so little restrictive that they can often even be used commercially. For example, if you want a well provden library for managing configuration files, you don't need to spend hours reinventing the wheel -- it's most likely already there.

    --
    Beware: In C++, your friends can see your privates!
  95. Maybe it's not stolen by Exp315 · · Score: 1

    Have you not considered that your project lead may actually be the author of the posted code you found? Lots of people post on bulletin boards and forums under a pseudonym or handle. You could be digging yourself a big hole! In any case, you shouldn't go looking for trouble unnecessarily. The world is a complex place, and everyone has enough problems without you making a big deal out of a questionable violation which is not your responsibility, and where nobody is harmed.

    1. Re:Maybe it's not stolen by Anonymous Coward · · Score: 0

      We had an IP audit some time ago, and the auditor's software (which quite intelligently matched codebases) found a pair of files (.C and .H) matching GPL'ed code in the Linux kernel. Expecting that, I had copies of my posts and replies on LKML prepared, because it was my code all along and the company was using it with my permission. I'd be probably unhappy if some young whippersnapper decided to "report the theft to the authorities" without asking me what's up.

  96. Only 200 lines? by Tablizer · · Score: 1

    It's just 200 lines of code the author posted in a forum.

    Is it really that important of an algorithm to make a fuss over? If it makes cars run on water or the like, I can see why it would be an issue. However, if it just does something that any average programmer can recreate in a day or two, why care? Don't waste time fighting over a near commodity.

  97. no, you are infinging without permission by jilles · · Score: 1

    YANAL but I had some IPR trainings where this kind of stuff was discussed at length.

    Technically copyright applies automatically in most countries. The act of creating something means copyright is granted to you on the form (i.e. not the idea like in patents). Licenses (free or otherwise) are designed to grant you rights and/or restrict rights. This can take the form of "do whatever you want" (e.g. MIT license); contracts specifying in legal terms your rights and obligations (e.g. most commercial licenses, apache and epl) or copyleft licenses (e.g. GPL) that try to negate copyright and turn its restrictions into freedoms.

    In other word without a license normal copyright applies and you are legally required to get explicit permission to do things with the code (like using, copying, redistributing, etc.). Of course you could argue that such permissions are implied by posting it to a public forum. Legally it is a bit a grey area and you might wonder whether the person posting the code is actually the copyright owner. The nice thing to do is just try to contact the person who published it. More than likely they'll be happy to help you out.

    Of course there is the practical side to things and it is pretty unlikely you'll ever be sued for this. Reusing small bits of code that people post on the net is pretty common. That's how the whole GNU thing started. The legal framework of the GPL and other licenses emerged as this practice became more widely spread because various people & companies were starting to apply copyright law and restricting people's rights.

    --

    Jilles
  98. Why not ask? by EmbeddedJanitor · · Score: 1
    Enough people have commented on the legal apect. Why not just email the code creator and ask them to confirm their intentions.

    Even if code has a banner with terms you don't like, you can often ask the people to modify the terms for your use.

    --
    Engineering is the art of compromise.
  99. Mod parent up by dedazo · · Score: 1

    That's a great point that I didn't think about, obviously. I think it's looking more and more like the magic 8-ball sez "yank and rewrite" here. Too many pitfalls.

    --
    Web2.0: I love when people Flickr my cuil and digg my boingboing until my google is reddit and I start to yahoo
    1. Re:Mod parent up by tftp · · Score: 1

      In case of the OP, his best move, IMO, is to treat the whole issue as Someone's Else Problem and forget that he ever looked into this. I assume that the OP is not tasked with due diligence work, otherwise he wouldn't be asking /. And if so, his Web research is nothing but an unauthorized web browsing, a waste of time at the least and an attempt to hurt the company if seen in the worst light possible.

  100. Is it your responsibility? by Nite_Hawk · · Score: 1

    First, please stop repeating the meme that information can be "stolen". It's copyright infringement.

    Having said that, there are a couple of things you should consider:

    1) You are not a lawyer, so don't pretend to be. The less the developers think about copyright issues the more the company can claim unintentional infringement if there is in fact a copyright violation. This is what audits and highly paid IP lawyers are for.

    2) Small companies (such as the one you work for) may not be able to afford code audits, full time lawyers, etc, so you may not have the luxury of ignoring it (assuming you care about the company).

    3) You might be making a mistake. Your project lead may have permission to use the code in question. Perhaps the code posted on the forum isn't the original and is missing the license statement (it could be BSD). Perhaps your project lead is actually the poster who put the code on the forum. Perhaps the code actually originated at your company and was leaked out. There are a lot of possibilities.

    4) Is auditing your Project Lead's code part of your job? Is this something the company hired you to spend time doing, or did you decide to do it on your own? Will the company see it as you trying to save them from potential lawsuits, or as exceeding your authority and spending time doing something they didn't ask you to do?

    Ultimately if you feel responsible for ensuring the legality of using the code, follow some of the other advice here and tell your management you found some of the project source code on the web. Given that you don't *know* that a copyright violation is taking place, leave it at that. If you feel further moral responsibility, do whatever you need to do to ease your conscience, but be ready to find another job if you have to. A lot of companies probably won't see this as being a very big deal.

    1. Re:Is it your responsibility? by JoelKatz · · Score: 1

      "First, please stop repeating the meme that information can be "stolen". It's copyright infringement."

      Copyright infringement is, at least in some cases, a form of stealing. I grant that you might be able to create cases that are copyright infringement but not stealing, but this is most certainly one of them.

      Stealing doesn't require taking something by force. Violating an agreement can be stealing. For example, if we agree that I'll give you my car today and you'll pay me $1,000 next week, not paying me the $1,000 is the same as stealing the car. You took something that wasn't yours and failed to comply with the terms by which the creator of that something is compensated.

      When you read code in a forum, you are bound by copyright law. They set the terms by which the poster agrees to post the work so that you can read them. Copyright sets the default agreement for such transfers, just like the explicit agreement to pay $1,000 next week in the car example.

      Failing to comply with the post/read agreement and using the posted code without the agreed compensation to the poster (which would be a copyright license) is just as much stealing as taking the car without the agreed compensation (the $1,000 next week).

      Violating an agreement in which you get something in exchange for compensation to the provider by not providing the something in exchange is stealing the thing you got.

  101. To all posters saying that its OK if its your code by Anonymous Coward · · Score: 0

    THE CODE ISN'T YOURS! (how does your implied licensing or IP beliefs matter?)
    It is automatically protected by COPYRIGHT with likely no licensing.

    So shut the hell up and all the 13 year old moderators stop giving them positive moderation.
    This is a real and scary issue for business. This 'truthy' bullshit your posting is harmful and stupid.

  102. talk to dev. by mcmonkey · · Score: 1

    1) To re-iterate some advice from above, talk to the original developer. Like someone else said, maybe it is his code and the forum post borrows code from your company, not the other way 'round.

    2) To the folks saying, "code posted to a public forum is free game," it's not that simple. If this is an internal application, I agree. Use the code, enjoy, be healthy.

    If this is a product your company sells externally, get thee (and your project lead) to your legal department. We've seen enough stories here about companies putting GPL code in their products and not keeping to the GPL to know you shouldn't just be selling OPC (other people's code) unless you know what you're doing.

    3) You could always just put an attribution in the comments; that's what I often do.

    Most code you'll come across in forums/usenet/et al is copyrighted in the sense that many things created are automatically copyrighted to the creator, but it's also mostly of the sort that given 10 coders of similar expertise, you'd get 10 very similar programs. The only way to claim exclusive ownership is to be the one person who paid the other 10 to write the code.

    Unless there's explicit notice or license to the contrary, I make use of snippets found on the web in my work for my employer. If the example is sufficiently complex, I'll comment in a pointer to the original author and source.

    Mostly it's for myself--if I ever need to maintian the code, I'll likely want to refer back to the sourse since obviously I wasn't able to figure it out the first time. And no one can claim I'm trying to pass off someone else's work as my own.

    That said, I rarely find useful code I can cut and paste into my work. I may find (or get in response to a query) code that clarifies my thinking. But that is usually followed by some twisting and shaping of the code into the specifics of my need.

    4) A lot of code looks alike. A lot of folks copy and paste from online help. Folks using the same IDE will end up with similar code--getters and setters in Java, events in Visual Studio, etc.

    So...in the grand tradition of AskSlash...we can give no answer. If the original dev is still with company, that's your best place to start.

  103. Not so Easy by sexconker · · Score: 1

    Most people seem to think that this isn't a real dilemma.
    Just use it and be happy.

    However, there are some things to consider.

    1: Did the code REALLY originate from that forum? Or did the poster lift it from somewhere else as well?

    2: Is the code safe/reliable? Obviously, you need to check your own code, but you should be twice as careful with foreign code.

    3: Did the poster mean for it to be used publicly? I STILL find myself on private forums I shouldn't be able to get to (because of Google's cache). If you it's from a private (business/site development/etc) forum, you shouldn't use it. If it's a public forum, and someone is just helping out another person / getting help from others, go ahead and use it.

  104. Who cares if this snippet is "significant" or not? by Wapiti-eater · · Score: 1

    WE DO!!

    The FOSS community and those of us who simply want do do things "The Right Way"(tm) do worry about this kinda thing. Even if it's just 200 lines of cheesy, insignificant crap scraped off a web site. It's the principal that counts!

    Just cuz we're a buncha penguin enthusiasts don't mean we're non-principled. Bleats to the contrary simply foster the stereotype that the Penguinista are ignorant pimply faced youth trying to get a free lunch.

    Either things count or they don't. You can't have it both ways "just because".

    --
    Senior NCO in the fight against entropy. I've seen things, man. Things no one should have to see.....
  105. Common sense? by Bearpaw · · Score: 1

    "Common sense isn't."

    A fair amount of what many people refer to as "common sense" seems to be preconceptions and/or personal preferences propped up with the bare minimum of after-the-fact rationalizing.

  106. fishing? by Bearpaw · · Score: 1

    And if nothing else, you could always take him fishing...


    That's so last century. These days, take him to a quail shoot.
  107. OT: Burning money by Bloater · · Score: 4, Interesting

    Burning a $20 bill makes everybody (except you) richer. With a reduced money supply everybody else's dollar becomes more valuable. It takes a while to filter through to the labour market, but it does. That bill represent the wealth that you brought to everybody else so that one of them will give you something if you bring it to them. If you burn it instead, they still benefit from the work you did to earn that money, but now you won't be able to get them to give you stuff so they also get to keep the stuff and sell it to somebody else.

    1. Re:OT: Burning money by cp.tar · · Score: 1

      So everything you have to do to make the dollar strong again is burn Bill Gates' money.

      Instant-rich!

      --
      Ignore this signature. By order.
    2. Re:OT: Burning money by howlingmadhowie · · Score: 1

      with one 20$ bill, that may be right. however, the value of the total currency in circulation should equal the value of the economy. if someone removed 1 billion dollars from the economy by burning bank notes, the treasury would just print a billion dollars and pump it back in.

    3. Re:OT: Burning money by luggage66 · · Score: 1

      You also hurt the economy by not spending that $20, negating any tiny amount of deflation you caused. Everyone else's $20 bill is worth more, but they have less of them.

      Not that I think this applies to the original question at all...

    4. Re:OT: Burning money by Creepy · · Score: 1

      Or just watch the value of the dollar slide to zero and trade a Euro for $40 trillion. You can then burn as many $20s as you want (it's still good for kindling...).

    5. Re:OT: Burning money by cp.tar · · Score: 1

      Or just watch the value of the dollar slide to zero and trade a Euro for $40 trillion. You can then burn as many $20s as you want (it's still good for kindling...).

      Nah.

      I'd buy $40 gazillion (or was it brazillion?) for 1 Euro, then wait as the economy recovers.

      Anyway, the point is that if I listened to you, I'd still burn *my* money, even if it's just 1 Euro.
      The point is that you burn someone else's money.

      --
      Ignore this signature. By order.
    6. Re:OT: Burning money by afidel · · Score: 1

      More importantly the real value of the dollar has almost nothing to do with the money in circulation, only a small fraction of the dollars out there are physically in existence, the rest are just digits in computers. The value of those bits is determined primarily by the fed funds rate and the trading ratio of the dollar to other world currencies.

      --
      There are 4 boxes to use in the defense of liberty: soap, ballot, jury, ammo. Use in that order. Starting now.
    7. Re:OT: Burning money by hypermanng · · Score: 1

      I don't particularly want the dollar strong. I'd rather have US goods competitively priced in the global market.

      --
      I am the one true god. However, as an atheist, I don't believe in myself. I guess I have a self-esteem problem.
    8. Re:OT: Burning money by ozmanjusri · · Score: 2, Funny
      I'd rather have US goods competitively priced in the global market.

      Me too.

      I'm always happy to buy cheap gear built by underpaid Americans in sweatshops.

      --
      "I've got more toys than Teruhisa Kitahara."
    9. Re:OT: Burning money by Anonymous Coward · · Score: 0

      And if we all burn all our money at once, we will instantaneously all become infinitely wealthy.

      This concept needs some work (as in labor).

    10. Re:OT: Burning money by Bloater · · Score: 1

      Heh, yeah. As the token becomes less fine-grained it becomes less valuable (it's less useful to hold) and at some point does so at a greater rate than the deflation caused by money supply contraction. If you burn it all slowly then everybody just stops using that currency and uses something else instead - like gold or sterling silver. I think we (in Britain) used to (a loonng time ago) actually used 1lb of sterling silver - a particular silver alloy - as a standard currency denomination that's why our currency is called "sterling" and the primary unit is called "pounds" - 1lb sterling, 2lb sterling, etc.

      Also changing the value of a currency both rapidly and unevenly makes possibly disastrous things happen because the banks have organised their deals as a bet against that happening, if they lose their bet you can't withdraw your savings.

      If everybody could destroy 1% of their money (including the banks writing off their loans in the same proportion) every year for 100 years, with super-fine granularity then a $20000 salary would change to $2000 after some time but a $2000 item would also cost only $200 so no loss there :)

      One key point back with the gold standard (where a bank note represented a share of a particular quantity of gold - which could change as the government traded) is that it was difficult for the government to create and destroy money in the way I described in order to make us more or less poor in relation to other people (to manipulate imports and exports and temper growth rates) relying instead on the banks to lend and withhold lending (where they create "fake" money - it's a currency future but its counted as money within the regulated banks) and hoping they could speculate successfully on the world gold markets.

    11. Re:OT: Burning money by morethanapapercert · · Score: 2, Interesting

      That would be what? roughly 8% of all U.S. currency in circulation? (approximately *700B$ in circulation, B.G.'s net worth is roughly 56B$)
      well, just because I am bored and want to have some fun with figures tonight:
      56 Billion dollars U.S. is 3,000,666 cubic feet of paper weighing 1,120,000 lbs
      (more than 500 feet long, 200 feet wide and 30 feet thick)
            Assuming we build some kind of furnace capable of burning paper with perfect efficiency at one pound per minute(I know, I know...)** it would take almost 78 days to burn it all, releasing 8,000 BTU's every minute. Again assuming perfect efficiency from heat into electrical power, it would produce over 8434 Kw/h, enough to supply almost my entire energy budget for the year. Given 24 hr operation and no delays in firing up and shutting down, over 1800 people would have their electricity provided for the year.***

      *American Billion 1,000,000,000 (1E9) not the international Billion 1,000,000,000,000 (1E12)
      **perfect efficiency is of course impossible, and short of some heavy duty forced air and very high temps, a pound of paper takes a lot longer than 1 minute to burn.
      **what a wonderfully wasteful application of money. 56 billion could buy an awful lot more electricity than that.

      --
      I need a wheelchair van for my son. Help me get the word out. https://www.gofundme.com/wheelchair-van-for-jj
    12. Re:OT: Burning money by Anonymous Coward · · Score: 0

      I believe you are incorrect. The bills in your pocket are just paper notes and ultimately worthless. If you burn them all, the "value" they represent is not diminished; just your (and anyone else's) access to it. You will not be enriching anyone but the Fed, who will just turn around and print more bills to make up for any loss in circulation (before lending them to the government, with interest).

    13. Re:OT: Burning money by Benaiah · · Score: 1

      If everybody could destroy 1% of their money (including the banks writing off their loans in the same proportion) every year for 100 years, with super-fine granularity then a $20000 salary would change to $2000 after some time but a $2000 item would also cost only $200 so no loss there :) Seriously?
      Where the hell did you pull those numbers... If you remove 1% over 100 years you get something like 36.6% of the original amount not 10%

      Maybe I missed some special financial deflationary calculation... or factor in relativity...
    14. Re:OT: Burning money by TheLink · · Score: 2, Informative

      In which case you are in effect giving the money to the treasury.

      But this is why it is a big benefit to the USA that Saudi Arabia sells oil in USD, Japan, China etc sell stuff in USD and so on. This means hundreds of countries around the world will need to hold and keep US Dollars.

      Then whenever the US Gov decides to print money, they get to instantly tax all those entities around the world who are holding those US dollars that just got cheaper.

      So Japan and China sell stuff to the USA and get lots of US Dollars from the USA, and then they use those US dollars to buy lots of IOUs in USD from the US Gov, which then repumps the US dollars into the economy. Funny eh? But so far the "perpetual money machine" has been spinning for a lot longer than the previous "machines".

      Of course the US dollars are now being pumped into Iraq, so the machine might stop spinning sooner.

      Same goes if a lot of trades started using the Euro instead of the USD.

      --
    15. Re:OT: Burning money by Bloater · · Score: 1

      Exactly. The value has not gone. The work I did to get the money has still been done. The person I did it for still had some benefit from it and can pass the benefit on (eg, I fixed his door hinges so his customers can now come in and buy something, so the manufacturer can make another item and the manufacturers employees can save a tiny bit more, etc).

      If the feds print money to keep the dollar at the same value then they must essentially give it away for free, but even if they don't, everybody will soon come to value each dollar slightly higher to represent the sum-total value in the economy.

    16. Re:OT: Burning money by Bloater · · Score: 1

      I pulled those numbers out of my arse.

      Extend the number of years, it still holds. When everybody burns their money (and has debt written of) at the same rate nice and slow, everybody is just as rich as they were, just each dollar is worth more - provided you don't get to a point where you can't trade a dollar for anything less than a huge mansion because an impractical currency is an worthless one and the difficulty of trading makes everybody poorer - they have to work harder just to buy something. The condition I put in of being able to do it perfectly finely is necessary for burning so much money to work - but a small amount (like maybe half of it) works over a long enough period.

    17. Re:OT: Burning money by jwo7777777 · · Score: 1

      A brazillion is not a number for describing economics...it is reserved for female pr0n star cup measurement.

    18. Re:OT: Burning money by dilvish_the_damned · · Score: 1

      I tried this at your suggestion and it did not seem to work as you described. In fact burning my $20 bill only made my other $20 bill more lonely.

      --
      I think you underestimate just how much I just dont care.
    19. Re:OT: Burning money by Anonymous Coward · · Score: 0

      Same goes if a lot of trades started using the Euro instead of the USD.

      We can invade, or failing that, we've got nukes.

    20. Re:OT: Burning money by hswerdfe · · Score: 1

      Then whenever the US Gov decides to print money, they get to instantly tax all those entities around the world who are holding those US dollars that just got cheaper. By my understanding the amount of money in the US is decided by the US federal reserve, which is not quite a government run organization. But rather a "quasi-governmental/quasi-private bank" organization. That in practice seems to be largely controlled by the private banks.
      --
      --meh--
    21. Re:OT: Burning money by Creepy · · Score: 1

      That was a maybe not-so-obvious reference to hyperinflation, where in Germany in the 1920s it was cheaper to burn money than to buy firewood with it. The value of the old Mark never did recover, and for a while they backed the new Mark with gold, as I recall (just like the US did at that time).

      If you want to burn someone else's money, take one out of the trash after the crash ;)

    22. Re:OT: Burning money by Bloater · · Score: 1

      The negative effects perceived to be the fault of a "strong" dollar are actually because most Americans (ie, those who use dollars) demand a higher standard of living, better working conditions, and fewer working hours than in China and India. If the value of the dollar halves but the Americans using the dollar still require the standards they currently have then, before long, the export price of US made goods will simply double measured in dollars and stay the same measured in other currencies.

      You *do*, though, get a short period of profit until everybody realises they are piling far more wealth into buying US made goods than they used to - that can be enough to avert a depression in the worst of times. However, when there is a depression hitting the US, other governments will devalue their currencies so they don't have to wait for their domestic markets to notice what's happening. In that scenario, though, Americans *will* stop demanding their current lifestyle, so products will be made much cheaper. You don't get to stay so wealthy, I'm afraid, not without a war over trade, you've overspent and must now pull in your belts.

  108. Simple Solution by moeinvt · · Score: 1

    Just tell the project manager that you have discovered that someone on the team is leaking your source to the Internet. Show him the URL and say

    "See? This is identical to the code that you wrote, including the comments."

  109. Size isn't everything by Yoik · · Score: 1

    Many years ago, I "sold" an application, with source code, that was less that 20 lines of assembler. Strictly speaking I got an extended warranty on a product my company had purchased, because I had written it to diagnose the problem with our purchase. When I asked my boss whether I could give it to the support guy, he asked me to get something for it. It was easy to negotiate extended support from the guy it had helped.

    I was very proud of that hack, and agreeable to "selling" it, but my real motive was to show it off.

    The whole copyright law situation as it stands irritates me because it seems to interfere with creation rather than serving the supposed intent of encouraging it. Laws need to be consistently enforceable to be meaningful, and detecting violations that invisibly use parts and pieces doesn't seem to be. A "whole" work in some sense, like a short story in an anthology or my little hack is relatively trackable. I can't propose an exact rewrite of the law, but there seems to be something wrong with it.

  110. Trivial by TheTapani · · Score: 1

    Do a search and replace for the variable/function names, reorder lines that can be swapped etc. Express things in a different way.

    Copyright protects the form and not the idea(s). As long as the code you use is distinct, the original copyright no longer applies to it.

  111. Be a Team Player and Talk to The Guy First. by johnnnyboy · · Score: 1


    I think it would make sense to talk to the guy, which so happens to be your project lead. Tell him about your copyright concerns and give him a chance to fix it. You'll not only get an ally but someone who will apreciate your honesty and trust you. Since you're new you need to build up your networking circle within the company.

    I myself ran into a similar situation, meaning I'm new to this team and someone with seniority checked in some questionable code. I could have by by passed him and talked to the big cheese of your department which would have destroyed him but I decided not to
    and voiced my concerns with the person instead. Everything worked out. I now have a guy on my team that trusts me. This to me is more valuable.

    My advice is simply to be a team player.

    --
    "If a show of teeth is not enough, bite ... but bite hard!"
    1. Re:Be a Team Player and Talk to The Guy First. by sherpajohn · · Score: 1

      That's my answer as well - bring it to the project lead - who knows, maybe he wrote it then posted it on a forum. Though that's likely not a wise thing for him to have done, though its not quite as bad as the other option - that the code was taken from this forum and used in the company's program. Where I work, if I discovered something like this - well I would be obligated to bring it to management's attention, or so the document I have to sign every year tells me - honesty and integrity above all else.

      --

      Going on means going far
      Going far means returning
  112. EXPERTS EXCHANGE? by JavaManJim · · Score: 1

    Was the source code found on Expert's Exchange? There they have thousands of code examples that subscribers can use. Yes in most cases credit should be mentioned in your own source.

    Thanks,
    Jim

    1. Re:EXPERTS EXCHANGE? by mozkill · · Score: 1

      i just have to say, "experts exchange sucks".

      --

      -- Betting on the survival of the media industry is a serious risk. I advise investing elsewhere.
  113. Link please... by butterwise · · Score: 1

    I could use some free code.

    --
    If a baby duck is a "duckling," why would anyone want to eat "dumplings?"
  114. Pretty much everything you just wrote is wrong by Anonymous+Brave+Guy · · Score: 1

    No offence, but answers like this, and the first post for that matter, are exactly why posting questions like this to Slashdot is a bad idea.

    In just about any jurisdiction, for many years now, works automatically fall under their creator's copyright unless there is another agreement. It does not enter the public domain until either the work is released to the public domain by the copyright holder or the copyright expires. The fact that the work is published on some web site makes absolutely no difference. The fact that it's not supplied with any explicit licence agreement makes absolutely no difference. If the code is ripped from someone else, and not for a fair use or whatever your jurisdiction calls the concept, then it is copyright infringement. There is no doubt about this, nor any need to weasel out saying call a lawyer. It is just basic copyright law.

    As for the Bruce Perens thing, I haven't seen the talk in question, but I suspect it had more to do with patents than copyright. Rewriting the code in some significant way most certainly does make it a different beast from a copyright perspective, because copyright doesn't apply to the idea, it applies to the particular expression. You can't just rip someone's code and do an obvious search and replace or something similarly trivial, because then you would be creating a derived work using the original, which isn't allowed unless you qualify as fair use. But you can't copyright an algorithm (though in some places you can effectively patent one) so if you choose to completely rewrite the same algorithm in a different way then that's a new thing as far as copyright goes.

    --
    If you disagree, post your argument. (-1, Overrated) isn't your personal censorship tool for views you don't like.
  115. You should follow up on it by Tired+and+Emotional · · Score: 1
    In the company I work for, not following up would potentially be a dismissable offense.

    The code may not have come from the web site - they may both have a common source. Worse case would be if that common source code was, for example, protected by GPL and the version you found on the web site was in fact not legal itself. In that case there is no way you want to ship your product with this code in it as it would then be GPL'd itself. (Unless of course you are shipping under GPL already)

    Also, don't just go in and rewrite it. You've read it now so any replacement you write could be a derivative work. The new code needs to be written by someone who has not seen the original code.

    But the first step is to establish provenance for the existing code. Just because you found it on the web does not mean there is a problem here. Without knowing the provenance of the web code it does not tell you much at all.

    --
    Squirrel!
  116. Obvious answer by Anonymous Coward · · Score: 0

    Give it back.

  117. not true anymore (in USA at least) by curri · · Score: 1

    This used to be how copyright worked in the USA, but it has changed. I think most countries nowadays start copyright with creation, registration gives you proof of that (and in the US a chance for more $ in damages :) but the product is still copyrighted regardless. Of course, check your local laws, IANAL etc

  118. If you steal code... by flaming+error · · Score: 1

    ...you really should give it back.


    The western world's "Intellectual Property" rules are Fucked Up Beyond All Recognition. When you've got a couple free hours, watch, listen, or read what Lawrence Lessig says.

    If I just set aside whatever I think the IP rules say, and just think about whether it's moral/ethical to utilize example code somebody posted in a public forum, I can't imagine this act hurting anybody at all.

    Copying proven technology is what engineers are supposed to do. This copyright hogwash is just a lawyerly game.

  119. Can't Copyright How to do Something by Anonymous Coward · · Score: 0

    Code is HOW to do something. Not really a work of art/print by itself. Code with no purpose is no more than jiberish. Therefore the way I see it, your code is how to do something. You can't copyright how to swing a hammer, but I suppose you can copyright instructions on how to swing a hammer. So just don't use the comments and your golden.

    1. Re:Can't Copyright How to do Something by maxwell+demon · · Score: 1

      But the code are the instructions, in a format the compiler can "understand".

      --
      The Tao of math: The numbers you can count are not the real numbers.
  120. The best strategy by caywen · · Score: 1

    I'd go ahead and integrate the code as is, then sue the original author for stealing the code from your company. A good offense is the best defense.

  121. Ummm by Cornflake917 · · Score: 1

    I don't know what I would do in this sort of situation. But I know what I wouldn't do:

    Publicly announce to thousands of people that my company may be acting in a unethical or illegal manner.

  122. It is all about "intent." by mlwmohawk · · Score: 2, Interesting

    If the original author posted the code to a forum as an example, without disclaiming any assumed or implied rights, then you are free to use it. The mere act of publicly posting the example is clearly an act that grants permission to use, however, you should look at the forum copyright policy as that may have further limitations.

    1. Re:It is all about "intent." by SwashbucklingCowboy · · Score: 1

      You're nuts!

      If you create something then there's implied copyright on it, whether someone puts the "(c)" on there or not. Any rights that are not specifically granted to users of the code are not grantef to the users.

      I sure hope you don't work at MY company!

    2. Re:It is all about "intent." by mlwmohawk · · Score: 1

      You are missing the point.

      I did not say there was no copyright protection or there was no copyright of the work.

      If the forum does not have any copyright rules (as I mentioned) then the author's posting of the code in an open and public forum intended as an example without any explicit limitations would be considered by a "reasonable man" to be intended to be used by any readers for any purpose.

      "Copyright" grants rights and protections to people who create, but it also conveys rights to the general public to use "published works." The act of publishing a work, i.e. posting to a forum in this case, implies a grant of a number of rights. If you don't limit those rights at time of publication, then you lose them.

    3. Re:It is all about "intent." by SwashbucklingCowboy · · Score: 1

      If the forum does not have any copyright rules (as I mentioned) then the author's posting of the code in an open and public forum intended as an example without any explicit limitations would be considered by a "reasonable man" to be intended to be used by any readers for any purpose.

      Courts are not about reason, they are about the law. If there are no copyright rules in the forum, then the author retains all rights to the code. ALL RIGHTS.

      The act of publishing a work, i.e. posting to a forum in this case, implies a grant of a number of rights. If you don't limit those rights at time of publication, then you lose them.

      You have no clue what you're talking about.

      I suggest you do some reading on the subject. You might find this article useful: http://www.nppa.org/news_and_events/news/2006/08/copyright.html While it discusses photographs instead of source code, the idea is the same as both are subject to copyright protection. You might find this text particularly illuminating: There is no such thing as an implied copyright waiver, i.e. if a photograph has been used in violation of a copyright, the fact that the copyright holder did not seek to enforce the copyright at the time does not mean s/he waives his copyright. Copyrights must be explicitly waived...

    4. Re:It is all about "intent." by SpinyNorman · · Score: 1

      You are 100% wrong.

      Under US law anything inherently copyrightable is automatically copyright protected. No need to declare it as such or take any other action. Posting code on the web no more automatically grants any rights to it than posting a photo or anything else does - the creator retains copyright and can grant or deny rights to use/modify for private/commercial/on-the-moon-only or whatever rights he chooses.

      The OP should try contacting the original author and ask what rights anyone else has to use it... is it OK to use it commercially and to modify it (if the need should arise).

    5. Re:It is all about "intent." by mlwmohawk · · Score: 1

      You are still confused about "intent"

      Posting a picture on the web implies that people may look at it.

      Posting a sample of source code in a public forum implies people may use it.

      The big problem with copyright is that these questions are not settled. We are both right with regards to general case law, but in this specific example, while I think I am more right with regard to this particular topic, the judge is a wildcard.

    6. Re:It is all about "intent." by mlwmohawk · · Score: 1

      Under US law anything inherently copyrightable is automatically copyright protected.

      No one disputes this statement.

      the creator retains copyright and can grant or deny rights to use/modify for private/commercial/on-the-moon-only or whatever rights he chooses.

      Absolutely 100% correct.

      At issue is the "intent" of the author when he posts the code to a public forum with no disclaimer. It is all a matter of context and intent. If I post code to a public forum whose intention is to help software programmers, it can be "assumed" by a "reasonable man" that I give permission to use that example code. It is "obvious" that this is the intention of the posting of that code, i.e. "this is how you do it..."

      Now, copyright law is a squirrelly area of law. Things that have been previously been considered legal have been found to be illegal when argued by skillful lawyers. *I* argue that is is impossible to know with 100% certainty what is and what is not infringement in the current intellectual property environment (weasel fest), but mine is as valid an argument as one could make and is based on actual case law.

  123. Half the world doesn't understand copyright by bzipitidoo · · Score: 1

    Good grief kid, just let the code be used already. Don't assume the worst. If legal problems arise (big "if"), they can be worked out later with a payment or a rewrite or possibly even a demonstration that it's Fair Use or it's copyright has expired. And this can be done amicably, without "cruel and unusual" punishment.

    I think a good faith effort has already been made. There was no notice of anything attached to the code. Look at the difficulties just trying to find out what is right. Both the license and authors are unknown. Maybe the code is an example, and intended for exactly this sort of reuse, does it need to be sprinkled with all kinds of assurances that it's OK to reuse? The code was obtained 3rd hand, making it doubly difficult to run down more info. Presumably this was tried, or the asker wouldn't even know of this issue? At the least, some distinctive phrases from the comments were tried in a search engine? What more is reasonable to expect? Even going as far as searching for the comments is asking a lot.

    That these sort of questions are being asked at all, and that they sparked a big discussion, underscores how screwed up copyright law is. It's major chilling effects to conclude that when in doubt, it shouldn't be used. That copyright law can cause such fear as to distort the market because everyone is bending over backward to avoid even the hint of a violation suggests the due diligence is too onerous and the penalties are way too harsh. This is software code we're talking about here, not radioactive fuel where extreme paranoia and safety precautions are a Good Idea. This is using a copy of something, not clubbing of baby seals. Get a little perspective.

    --
    Intellectual Property is a monopolistic, selfish, and defective concept. It is "tyranny over the mind of man"
  124. You're new here aren't you? by Anonymous Coward · · Score: 0

    Anyone who posts code to a forum like that has to just be giving it away, unless there's some clear license agreement somewhere close by.

    Sounds like a non-issue to me.

    I used to think the same way as the poster, before I knew much about programming but thought I did. I would read examples on Windows programming that would do the simplest of things and then try to put my own spin on it because I felt guilty copying it verbatim.

    Trust me, at 200 lines the forum writer probably did not post their life's work or some masterpiece. Unless they've come up with some sort of mind-blowing new 200 line algorithm, in which case a forum seems like a poor place to debut it. My bet is it's a general example they wanted to share with the forum community.

    I also agree with the comment about about writing a comment attributing it - if anything this will help you later in case you truly didn't know what the "pirated" code was doing and wanted to check the source.

    On that note, I think it's pretty funny there's a large population at Slashdot (maybe just a minority, but still) who thinks all information should be free and glamorizes sites like Pirate Bay, and yet when a question comes up about having 200 lines of most likely trivial code non-nonchalantly posted to some forum used sans permission everyone is up in arms.

    Give me a break. I've had the code I did not post publicly for entire projects stolen and then barely attributed only after I caught the person in the act. It sure makes this entire question seem a little petty.

  125. WHO IS THE ORINGINAL AUTHOR by Anonymous Coward · · Score: 0

    Just because it's posted on a website doesn't mean the poster or blogger had permission to began with. Who made who, who really wrote the code?

  126. Question of Provenance by SwashbucklingCowboy · · Score: 3, Insightful

    There is a question of provenance of the code. Just because you found it on some web site doesn't mean THEY didn't copy it from somewhere else and remove the copyright notices - it happens. It's also possible that both got if from a public domain source (there isn't that much code in the public domain, but there is some). However, I strongly suggest you report it to your superiors within the company. If they decide not to do anything about it then don't worry.

    Copyright infringement is one of those things where ignorance is not bliss. The longer it goes on, the higher your company's potential liability.

  127. Forum's Terms & Conditions by Anonymous Coward · · Score: 1, Informative

    Did you read the forum's terms & conditions? It might have some section on author's & forum's rights over posted content.

  128. It is easy to use a code snippet. by Anonymous Coward · · Score: 0

    Study the 200 lines of code, see what it does, write up a spec, hand the spec to someone else on your team that has never seen the original code, have them write up code to the given spec and you are 100% in the clear. This is the method originally used to create IBM clones.

  129. The greater good by Weaselmancer · · Score: 1

    I wonder if this is a cognitive dissonance. Ethical job and family support are both needed but can't be at the same time.

    I don't think it's an either-or type of problem. You have to look at the relative merits of each solution path and pick the one that does the most good. In other words, moral relativism.

    Squeal on the lead programmer? Possible good: Other coder gets paid a royalty, or at least the infringing code will be rewritten. Company avoids a one in a zillion chance of a lawsuit. Possible bad: You've offended the guy you're working for - have fun with that. Or worse yet, you're unemployed, and people who count on you are out of luck.

    The bad is larger than the good, at least from the point of view of the person who found the code. Therefore - don't do it.

    The business world probably is like that. That doesn't mean you should be.

    If you're employed, you're in the business world and you have to play by their rules. Sucks, but it beats starvation. I hate to be so negative about things but that's the way things simply are. Job = money = food. No job = no money = starvation. Those are the stakes, and as much as I hate to say it, idealism has little place in any of it.

    --
    Weaselmancer
    rediculous.
  130. Rename the variables and... by Boomer_Zz · · Score: 1

    That should fix her up!

  131. s/report to/ask advice from/g by Sloppy · · Score: 1

    Remember that your goal is to assess and correct a possible error. It's not about "tattling;" it's just about heading off possible trouble. Make sure you're in the right frame of mind before you bring anyone else into it.

    --
    As copyright owner of this comment, I authorize everyone to defeat any technological measure which limits access to it.
    1. Re:s/report to/ask advice from/g by faedle · · Score: 1

      I agree.

      Simply taking the guy aside and just saying "hey, dude, it's no big deal or nothing, but.. how should I proceed with this?" doesn't sound like a major Career Limiting Move.

  132. Rewriting is easy by Anonymous Coward · · Score: 0

    You don't have to totally change every little part of the code. Let's face it, there are only three things that might link your code to the original author: Variable names, comments, and layout/indenting. Change all the variable/function names, rewrite the comments in your own words, and change the presentation of the code so that it doesn't resemble the original piece. It'll take about a minute, and you won't have to worry about some lawyer emailing your company in five years because somehow the original author of that code snippet worked out that you had used it.

  133. does no one here ever ask coding questions? by MooseTick · · Score: 1

    I've asked coding questions in forums and used the coded provided to ME in projects. The responses to ME did not have any licensing instructions. Am I in some sort of violation because I used someone else's code in a project that they offered to me but didn't specifically grant some sort of licensing terms?

    Also, would any of these scenarios be a violation of the law? I would think that at best it would only be a violation if after the fact the code's author decides that their code was being used against what they believed they authorized.

  134. Summary by Jherico · · Score: 3, Interesting
    Based on the replies to this, there appear to be three basic camps of thinking, which can be summarized by the extremes.

    Camp A people would fire someone for taking the time to worry about this because it happens all the time and you're never going to get caught, and the original author of the code probably meant it to be public anyway, even though its illegal.

    Camp B people would fire someone for NOT taking the time to worry about this because its illegal, regardless of intent of the original author and if it came to light it would expose the company to bad press and possibly litigation.

    Camp C people have no earthly clue how copyright law actually works and are speaking out of their collective asses. Sadly, these people would most likely reason along the same lines as Camp A out of ignorance rather than malice and simply behave the same way with the exception that they don't realize they're breaking the law.

    The original poster can certainly decide what kind of person he is (probably B since he asked the question in the first place) and can probably make a guess about what kind of people his employers are (I'm guessing A, again since he had to ask). Then you have to decide what is more important, your job or your ethics. It is a slippery slope when you first start copying code. I had a friend who copied code once. Now he professionally eats babies. True story.

    The fact is that all the commonsense notions about how copyright law works or should work don't take into account that copyright law is not written by individuals, but largely by companies like Disney and Warner Brothers (among others), companies that have a vested interest in maintaining control over a certain mouse and rabbit (among others), both of whom would now long since be in the public domain if not for the endless succession of copyright extensions lobbied for by said corporations. Originally (well, since 1909) copyright expired after 28 years, or 56 if you decided to renew it. And this was a copyright you had to explicitly register. In 1976, copyright became automatic and consisted of life plus 50 years after the authors death (or a static 75 years for 'work for hire'). In 1998 it became life + 70 and either 120 years after creation, or 95 years after publication, whichever is sooner. Its interesting to note the effect on Mickey Mouse. Created in 1928, MM would have left copyrighted status (though still been covered under trademark restrictions) in 1984. Because of the 1976 act, that was pushed to 2003. The 1998 act pushed that back to 2023 at the earliest. So look for another copyright law in 2018 or so.

    --

    Jherico

    What can the average user can do to ensure his security? "Nothing, you're screwed"

    1. Re:Summary by JustNiz · · Score: 1

      you're wrong because all your assumptions are that this IS breaking the law.
      Actually, if you publish something on the internet without copyright instructions, anyone IS free to (re)use it.

    2. Re:Summary by geekoid · · Score: 1

      Not in the US is it isn't.
      It should be, but it is NOT. The moment you write something it is covered by copyright law. Unless you specifically state otherwise, it is assumed in the law and in the courts that the author does NOT want to give it away.

      If you find a manuscript on the bus without copyright notice you do not have copyright on that work and you can not publish it.
      This is no different.

      --
      The Kruger Dunning explains most post on /. http://en.wikipedia.org/wiki/Dunning%E2%80%93Kruger_effect
    3. Re:Summary by JustNiz · · Score: 1

      yes it is different.
      If you find a manuscript on a bus there is no evidence that the author wished to release it, given that he could have simply mislaid it.
      If the author puts the code on the internet without any licence he is explicitly putting it into the public domain via free speech in a public forum.

    4. Re:Summary by JustNiz · · Score: 1

      Also why do you automatically assume the original author is in the US? It didn't mention his geographical location in the article.

    5. Re:Summary by Jherico · · Score: 2, Insightful
      The intent of the author DOES NOT MATTER. Unless there is a license or the forum has an implicit license somewhere (which the author of the original code could not have missed), then the code is copyrighted and not usable under any license whatsoever, no matter what the author meant. I KNOW it doesn't make sense, but that's the way the law is. And even if you're somehow in some gray area, that's actually worse than an outright violation in most cases, because you're better off paying damages and fixing the problem than a year of litigation, stays preventing sales of your product and lawyers crawling up your ass with a microscope during discovery.

      The vast misunderstanding of basic copyright law here reminds me of this exchange (used without permission and don't think the irony is lost on me)

      JOSH
      So, if we're lucky, foreign aid's going to be funded for another 90 days at 75 cents on the dollar. No one who's ever said they wanted bipartisanship has ever meant it. But the people are speaking. Because 68% think we give too much in foreign aid, and 59% think it should be cut.

      WILL
      You like that stat?

      JOSH
      I do.

      WILL
      Why?

      JOSH
      Because 9% think it's too high, and shouldn't be cut! 9% of respondents could not fully get their arms around the question. There should be another box you can check for, "I have utterly no idea what you're talking about. Please, God, don't ask for my input."
      Then again, MOST ask slashdot discussions remind me of that exchange.
      --

      Jherico

      What can the average user can do to ensure his security? "Nothing, you're screwed"

    6. Re:Summary by SwashbucklingCowboy · · Score: 1

      If the author puts the code on the internet without any licence he is explicitly putting it into the public domain via free speech in a public forum.

      You're daft...

    7. Re:Summary by Jherico · · Score: 1

      Its not just in the US. Generally speaking its every country that is part of the WTO or signatory to the Berne Convention, which for all practical purposes is everywhere code is written. Even the most basic research into IP law will show you your original assertion that no notice equals public domain is completely wrong.

      --

      Jherico

      What can the average user can do to ensure his security? "Nothing, you're screwed"

    8. Re:Summary by someone1234 · · Score: 1

      Disney and their bunch copied freely available 'code' and made proprietary versions out of them.
      So originally they were Camp A while now they are Camp B.

      --
      Patents Drive Free Software as Hurricanes Drive Construction Industry
  135. Author's motivation by GrahamCox · · Score: 1

    I can only speak for myself of course, but I give away lots of code. Copyright issues bore the pants off me, and take up way too much time I'd rather be coding. All I really want from anyone using my code is recognition for whatever work I did - as long as you say somewhere "so-and-so wrote this bit" then use it with my blessing. Obviously plenty of licenses cover this - BSD, etc. but sometimes even dealing with that can be annoying.

    Essentially, while the law doesn't necessarily agree with me, I think that if you publish code (and putting it anywhere on the net is an act of publishing) then as far as I'm concerned it's fair game. Use it freely, just remember to attribute it. If you don't want your code used on that basis, don't publish it.

    1. Re:Author's motivation by maxwell+demon · · Score: 1

      About your sig:
      "To be or not to be, that is the answer. What is the square root of 4b^2?: that is the question."
      Only if you use ones complement.

      --
      The Tao of math: The numbers you can count are not the real numbers.
  136. patent - what's that? by toby · · Score: 1

    as long as there is no patent preventing that

    ...and you live in a benighted jurisdiction where that actually matters a damn.

    --
    you had me at #!
  137. Mod parent funny by Anonymous Coward · · Score: 0

    > Is it legitimate to use source code that's publicly available but doesn't fall under any particular license?

    Of course it is. This kind of thing happens all the time.

    Frankly, I'm glad you don't work for us. The fact that you would consider "rewriting" code that works well just because it was written by someone external to your company doesn't speak well for your sense of business priorities or usage of time.

    HAHAHAHAHAHA!!! I laughed so much reading this I almost had a rectal prolapse! This is EXACTLY the sort of answer corporate crooks would give in my country. That sort of greedy illiterate morons that are all greed and no ethics, whose fortune depends on technically literate people to whom they pay slave wages. "If they don't catch you, it isn't illegal". HAHAHAHAHA!

    Oh. I must go to the loo.

  138. I've been that developer. by Beardo+the+Bearded · · Score: 1

    So, the short answer is you can use the code, and so can anyone else.

    The caveat is that some other entity can also use it to hurt you in a court of law. Remember, it's law, not logic.

    I grabbed code from a forum and used it in my code. We then shipped it out to customers. What I didn't wasn't stealing. I asked for help on a problem, and someone in a forum replied with a suggestion. I used it. Later on, when reading another forum, a different person asked for help with the same problem I had. I offered up the same solution that I was given.

    Nobody stole anything from anyone. Bear in mind that free advice is often worth what you paid for it.

    The place I currently work for wanted a new website. I used the NiftyCube (GiYF) template and tweaked it just a little to meet our requirements. (Yes, I know that's GPL.) That's not stealing either.

    If the code has no license, that means you can use it. Technically, it also means you can put a license on it yourself and then sue the original poster. That's why licenses like the GPL were created - to prevent someone from locking down someone else's free work as their own, then suing users.

    For example, if NiftyCube wasn't GPL, then any given web-code generator could put the code in their next release and sue anyone who tried to put it into their website. Or I could put a (c) on it and create a revenue stream for my company.

    --

    ---
    ECHELON is a government program to find words like bomb, jihad, plutonium, assassinate, and anarchy.
  139. Question by jdogs60 · · Score: 1

    Are you absolutely sure the project lead didn't get permission?

  140. Shut up by litewoheat · · Score: 1

    Dude, Get over yourself.

  141. Done all the time by Anonymous Coward · · Score: 0

    Or he's a young programmer who is afraid he's the scapegoat.

    While I do not agree with it, code lifting is done routinely all the time in business. There is no moral high ground, simply a quiet acceptance that this is done. He has nothing to fear being the scapegoat. If he learns to do it he will likely be promoted. And the chances are very low the original author will ever find out if it is a small piece of code.

    One of the reasons this is prevalent is that most programmers can't program worth a hoot. Another is management wants results and "overlooks" copy lift. So almost every product out there either internal or commercial is built using code from many authors that will never see credit for their works.

  142. This is actually kind of hurting my head... by LilMikey · · Score: 1

    People ask for code samples and snippets all of the time. Have you been to vendor forums? Java, C#, C++, there's miles and miles of code offered up in good will by countless forum members. In fact, if you're doing anything reasonably common, do a search, it's probably posted somewhere. You're absolutely right. That code *may* be copyright. But if you took the time to search for every snippet of code in your project and then wrote every instance of code similar to something someone posted online? I'd say that falls a bit out of your job description. You aren't the code police. Now, of course if you happened to stumble across very similar code and what you've seen online is copyright and non-obvious then go ahead and make the change. I see no reason to go searching out copyrighted code and spending your employer's dollar to prove or disprove it's validity, unless that's what you were hired to do.

    --
    LilMikey.com... I'll stop doing it when you sto
  143. Exposing a problem with copyright by Anonymous Coward · · Score: 0

    I think this debate exposes a problem with the current copyright system. There is a difference between works that are informational and works that are functional. This code is functional; for the most part it's not something people are going to use to learn, but rather to do something. If nobody copies it, what was the purpose of it being published to begin with?

    Maybe copyright should be updated so that publishing a functional work to a public location gives an implicit license to copy and use that work.

  144. "use" or "distribute"? by Anonymous Coward · · Score: 0

    I think the most important matter at hand here is whether this code is going to be sold to others for money or just used internally. As far as I can say, the latter is ethically perfectly defendable (see 90% of the other posts about "I am so cool I posted code and I don't care"). Redistributing code from others without their explicit permission, however, is not. Legally as well as ethically. "Others do it too!" is an excuse that does not even work well in kindergarten.

    To give a more realistic answer to the question, by the way; if you are not going to tell the project leader, stop whining. It is not like it is your responsibility if you were not the one that copy/pasted it.

  145. grow up and get a clue by n0f8r · · Score: 1

    for [name your deity]'s sake - grow up an get a clue, 200 lines of code that are publicly available?! would you feel the need to re-discover/implement quicksort? It seems to me that you have much to learn young padawan

    1. Re:grow up and get a clue by Chysn · · Score: 1

      Perhaps the original author should post the code in question to this forum so that we can ascertain whether it's re-implementing quicksort or a brilliant 200-line self-aware neural net factory. I don't think we can be any help at all without seeing the code. Give us a link to the forum, anyway.

      --
      --I'm so big, my sig has its own sig.
      -- See?
  146. Legally or Realistically by deadlock911 · · Score: 1

    Legally, the writer could see it and have an issue with it.
    Realistically, how is he going to see your source code?

  147. How do you know who owns the code? by DavidHumus · · Score: 1

    How do you know the person who posted the code on the web didn't take it from somewhere else?

  148. "No particular license" = "All rights reserved" by DragonWriter · · Score: 1

    Even the comments were the same. It's obvious that a developer at our company found some useful code on the web and copied it. The original author didn't attach any particular license to the code. It's just 200 lines of code the author posted in a forum. Is it legitimate to use source code that's publicly available but doesn't fall under any particular license?


    If it is not specifically dedicated to the public domain, or licensed to you, then its just a copyright-protected work for which you have no specific permissions, and to which you have no rights to copy, make derivative works of, etc., other than whatever minimal rights are available under fair use and other generally-applicable exceptions to the exclusive rights of copyright.

  149. Could you ber more wrong? No, no you couldn't by geekoid · · Score: 1

    you're right it wasn't stealing, but it IS COPYRIGHT infringement.

    "If the code has no license, that means you can use it. "
    NO NO NO NO NO and FUCK NO.

    Not at all, not in a long time. Besides the fact that in the US all code, as well as anything you right, is AUTOMATICALLY covered under copyright. The GPL was a way to share code ownership among the people. IT is needed because it goes against the 'default' copyright laws.

    "For example, if NiftyCube wasn't GPL, then any given web-code generator could put the code in their next release and sue anyone who tried to put it into their website."

    Also wrong. So SO wrong. NiftyCube would automatically have the copyright, so if someone else used it then Nifty Cube could sue them. The GPL protects the person using the code as well as the developer.

    (c) is not needed, although it should be used with your name for more protection.
    (c) John Doe for example. The word "copyright" or the abbreviation "Copr."
      may be used instead of (c)

    The GPL flies in the face of the intent of the 1978 copyright change. This is why some people thought the GPL was worthless. You know who I'm talking about.

    --
    The Kruger Dunning explains most post on /. http://en.wikipedia.org/wiki/Dunning%E2%80%93Kruger_effect
    1. Re:Could you ber more wrong? No, no you couldn't by gordguide · · Score: 1

      " ... Besides the fact that in the US all code, as well as anything you right, is AUTOMATICALLY covered under copyright. ..."

      As far as I know, the US was the only jurisdiction that ever had the requirement that a copyright be registered before it could be asserted. Elsewhere in the world it's always been automatic and exists from the time an original creative work is made in a fixed form. Now that the US has abandoned the registration requirement, it's in step with most other nations on Earth.

      * "most" as in those nations that have any respect for international or IP laws at all. In North Korea they probably throw you in jail for not infringing.

  150. simple solution by DragonTHC · · Score: 1

    Viking Raid.

    Go in and take back your code.

    --
    They're using their grammar skills there.
  151. Three steps by geekoid · · Score: 1

    A) Get Proof
    B) call the BSA
    c) reap your reward. ;)

    --
    The Kruger Dunning explains most post on /. http://en.wikipedia.org/wiki/Dunning%E2%80%93Kruger_effect
  152. Check the forum's license agreement by lnxpilot · · Score: 1

    It should specify what happens to the ownership of material published on that forum.

  153. You cant be serious by steveoc · · Score: 1

    Are you seriously losing sleep over the existence of 200 lines of publically available code in your application ?

    What makes you think that code of any volume is so sacred that it needs to be guarded like the family jewels anyway ? If you are really asking yourself these questions in the first place, then hey - YOU ARE IN THE WRONG GAME BUDDY. You should have studied law or commerce or something else. Forget worrying about 'who should I tell' - start worrying about changing your perspective about what source code is in the first place.

    Producing computer software falls under the category of science, art and engineering. You are always building on existing ideas to create new things, or improve existing processes. The day someone else builds on top of your ideas or improves your processes is the day that you have achieved your goal.

    You probably measure your success (as a programmer) by your next pay cheque, and your primary goal seems to be being seen as a good 'company man', willing to cause whatever damage is neccessary to win a gold star from the boss.

    You must be young - life is just not about that.

    Take a holiday, and look at the amazing beauty and abundance of the world and people around you. Ask yourself what can YOU do to add to that beauty. What can YOU create and share that is going to make this amazing world even better ?

    Then come back to your cubicle after your break, and look at your question again.

  154. NOT A QUESTION by Anonymous Coward · · Score: 0

    Just because a sentence contains a word often associated with asking questions -- how, why, guess, know, etc -- it does not make that sentence a question. 'How to deal with stolen code' is not the same as 'How do you deal with stolen code?'. See?

  155. Report It by Anonymous Coward · · Score: 0

    You didn't make the mess and aren't obliged to clean it.
    You are obliged to inform the person who should clean it.

    Write an e-mail to the lead developer.
    Include the full body of the code, include the URL to the forum, and include the full text from the forum.
    Explain your concern, leaving the final decision on what to do in the hands of the lead developer.
    Print a copy of the e-mail for yourself.

    Later, if/when any shit hits the fan, you've got proof that you did your part.
    If your future employer decides to get nasty, then track down the original author and ask for a 20% "consulting fee" on a $100,000/per-violation proposition. With e-mail proof in hand that you make a good faith effort, no judge will fault you for wanting to keep your job. You just might get sweet revenge and very rich at the same time.

  156. What Type of Code by WebmasterNeal · · Score: 1

    What type of code is this? If it's just html, js, css (basically anything that is downloaded and viewable anyways) I don't think there's much you can do. I recall awhile back on slashdot, a law firm that would sue users just for viewing their code and almost everyone on here laughed and that and posted their code.

    Here's the url to that:

    Law Firm Claims Copyright on View of HTML Source http://yro.slashdot.org/article.pl?sid=07/10/18/2123233

    --
    "During My Service In The United States Congress, I Took The Initiative In Creating The Internet." -Al Gore
  157. Regarding legality by Schraegstrichpunkt · · Score: 3, Informative
    The question to ask is, "If I were sued by the author of this code for copyright infringement, would I have sufficient evidence to defend myself in court?" If the answer is "no", then you shouldn't be distributing the code.

    IANAL; YMMV.

    1. Re:Regarding legality by jeremyp · · Score: 1

      That's only the question to ask if you are a blood sucking lawyer.

      If you are a programmer making a living by programming, the question to ask is "am I ripping off a fellow programmer?".

      --
      All I want is a secure system where it's easy to do anything I want. Is that too much to ask ~~ Randall Munroe
    2. Re:Regarding legality by Jherico · · Score: 1
      >That's only the question to ask if you are a blood sucking lawyer.

      Lawyers don't care if you have enough evidence to defend yourself. They get paid whether you win or lose. For a lawyer the more ambiguous the issue, the better. In point of fact, if you're asking yourself if you'll win a lawsuit, then you've already lost. In this situation, aside from the ethical stance of ripping off another coder (which depending on original coder's intent may not be an issue) but am I exposing my company to litigation. Allowing your company to be sued because you didn't exercise due diligence is stupid, whatever the outcome of the case might be.

      --

      Jherico

      What can the average user can do to ensure his security? "Nothing, you're screwed"

    3. Re:Regarding legality by Schraegstrichpunkt · · Score: 1

      If you are a programmer making a living by programming, the question to ask is "am I ripping off a fellow programmer?".

      What part of what I wrote excludes that from consideration?

  158. playing dumb by treak007 · · Score: 1

    playing dumb won't work because you posted the question on /. and now everyone knows that you know

    The time in which you could have played dumb is over. What I would recommend doing is confronting the employee and telling him to contact the blog owner. Let him worry about it, not you.

    --
    Klingon Software is not released, it escapes, inflicting terrible damage onto the enemy as it does
  159. Re: CV always at the ready! by drapeau06 · · Score: 1

    Why not just keep your CV up to date at all times?

    Could be a bit touchy in unhealthy work environments, I suppose, but for my part, I've found that maintaining an "it's no big thing" attitude about it and always keeping my CV up to date have never bothered any of my employers.

  160. Have you tried to find out by Anonymous Coward · · Score: 0

    who posted it on the web?

    Could it have been the same guy who built it into your product? Maybe he developed it for a separate project, then realised later that it would be useful at work as well.

    Or maybe the guy who added it to your product *did* contact the original author and get permission, and just forgot to mention it in the comments.

    Just a couple of things to think about before you start making accusations.

    The honest, good-faith thing to do is to mention it to your team leader. Doesn't matter that he's the same guy - it's still up to you to treat him as if you believe in his honesty. If he takes it badly, then you have to decide whether you want to take it higher or not - that'll be your call, based on all kinds of things that no-one here can advise you about (how strong is his position in the company? how strongly do you personally feel about ethics? what's the job market like in your area?).

    But there's also a good chance that he'll take it quite well. Make sure you're treating him as innocent until proven guilty.

  161. Consult a lawyer by kabloom · · Score: 1

    You should ask your company's own lawyer. Failing that, you might go ask over on the Copyright forums at Expertlaw.com.

    I know that the FSF considers patches of 10 lines or less as unlikely to be copyrightable because they're small enough that they're unlikely to contain anything truly creative. Probably doesn't work for 200 lines of code.

    Take some time to audit all of this guy's commits.

  162. What kind of code is it? by Mr.+Gus · · Score: 1


    If it's on a forum, chances are it's going to be some example code in response to a "what's wrong with this code?" or "how do I do such and such?" post, in which case I wouldn't worry. It's probably trivial code that the author doesn't care about, and intentionally shared under the assumption that it might be used elsewhere, regardless of whether there's any explicit permission, and even if there isn't clear legal permission, there might as well be. It might even be common sense enough that it isn't copyright-able.

    Of course, if it's something particularly creative, it might be worth it to rewrite it, so you still don't technically have a license to use the code.

  163. How do you know who the copyright owner is ? by kegon · · Score: 1

    The OP should try contacting the original author and ask what rights anyone else has to use it... is it OK to use it commercially and to modify it (if the need should arise).

    How does the OP know that the code on the forum was posted by the original author ?

    For all you know, the code in the forum was copied and pasted from some other source.

    1. Re:How do you know who the copyright owner is ? by Jherico · · Score: 1
      >How does the OP know that the code on the forum was posted by the original author ?

      If the person who posted the code claims it as his own and is lying, unless there's an obvious indication that's he's lying, then the illegality now lies with the poster of the code. If the actual original author showed up and proved his ownership of the code and didn't want to grant the company the license, then the company would certainly have to remove the code but likely wouldn't be subject to any damages.

      --

      Jherico

      What can the average user can do to ensure his security? "Nothing, you're screwed"

  164. Code posted on the web with no license is free... by adatepej · · Score: 1, Informative

    ...in every sense of the word.

    If you have a better way to code that section, then do so, and tell your project leader the truth if he asks -- tell him you replaced it because you could improve it, and tell him you saw it on the web if you're so interested in the subject.

    200 lines of code from the Internet, posted by their author, are free. Period. Nothing to worry about. Not everything needs a license to be used. Ever find a quarter on the ground? Somebody ever give you one? Did you require a deed to prove you had the right to the quarter?

    No, you just used it. And that's what you do with code with no attached license which is posted on the Internet by it's author. Enjoy.

    Man, this society has become ridiculously litigious when people are hung up about this stuff.

  165. I luv it when nerds argue about law by grikdog · · Score: 1

    Law is settled by warfare, not logic - i.e., not who's right, but who's left standing when the dust settles. Which is why Krishna tells Arjuna that he MUST fight. Rather than fill bandwidth with pious libertarian dreck, why not contribute a few bucks to the EFF before our Fearless Leader has beaten the dollar down to peso parity?

    --
    ``Tension, apprehension & dissension have begun!'' - Duffy Wyg&, in Alfred Bester's _The Demolished Man_
  166. Re:Small potatoes/the obvious by Anonymous Coward · · Score: 0

    Why is it obvious someone at the company copied the code from a webpage. The inverse of that logic is that someone from you company used company code and helped someone else out on the forum. Just a thought, but I'm a devil's advocate sometimes. Code doesn't magically originate on the Internet. It's also possible the someone from your company developed it long before he worked at your company(maybe even in school), helped someone out on the Internet, and has been using his code in projects at home and at different companies he's worked for. Either way just redo it to insure you're not in violation, and I wouldn't recommend keeping it as if it's a blue chip in the big game of office politics. The company could just as easily come after you for not reporting a known/possible violation of copyright. Office managers don't like little guys with big chips in the game. ;) Fix it before you lose all of your chips(i.e. lose your job).

  167. Reverse it.. act niave... and inform management... by tempest69 · · Score: 4, Funny
    Explain that somehow the source code got onto the internet from your company.. Then let a higher up know, the some of their code got leaked.

    Then let them figure out the truth, and get indignant with your boss.

    A sleazy thing to do to a sleazy guy

    Storm

    p.s. The correct answer is to get your boss and his in a room, and explain the situation. And more than likely you'll be stuck re-coding it. And your boss will hate your guts, his boss will be cranky with both of you. But it would be the right way to handle the situation.

  168. Copying is not stealing by gfogus · · Score: 1

    Stealing: "is the illegal taking of another person's property without that person's freely-given consent" Copying: The above text was copied from Wikipedia, not stolen.

  169. Never Mind the Bollocks by jeremyp · · Score: 1

    Its perfectly simple. If somebody creates an original work, under UK (where I live) law and US law and the law of lots of other countries it is illegal to copy it.

    That is the default position. Legally, you cannot copy the author's work, full stop. However, the author may grant you a licence to copy his/her work under certain conditions. Essentially, a licence is just a declaration by the author that says "I promise not to sue you for breach of copyright as long as you adhere to these conditions...."

    So the first observation is that "no particular licence" = "no licence". If you find a piece of code on the web with no licence, you cannot legally copy it.

    The second observation is that there is quite often a licence. There might be an implied licence "hey guys, use this fantastic function to turn your knob blue". Or the forum itself might provide a licence "by posting here, you agree any code you post is public domain".

    However, the ethical issue is what should guide your actions. Ask yourself how you would feel if your employer let you spend a month writing software and then fired you without paying you for that month. That's pretty much what you are doing if you use somebody else's code in breach of their copyright. And if your company doesn't respect this ethical position, find a new company.

    --
    All I want is a secure system where it's easy to do anything I want. Is that too much to ask ~~ Randall Munroe
  170. Should I accept? by superswede · · Score: 1

    Hi, I just got a message from a guy in some big company offering to pay for some code that I posted in a newgroups a few years ago. This came as a surprise for me and now the guy asks me to come with an offer. The code is only ~200 rows - sorry, I cannot reveal more, because then they might identify me here - but how much should ask for? Also, what are my rights? If they don't like my offer they might screw me. If so, can I sue them and for how much? /SuperCoder

  171. On Discworld at least by jhantin · · Score: 3, Funny

    In the city of Ankh-Morpork the head of the Guild of Lawyers is in fact a zombie; he was executed but simply refuses to die until his firm's invoices for his defense at trial are paid by his descendants. His partners are vampires. Makes one wonder...

    --
    ...when you're writing a game...tweak the difficulty of "Easy" to something [your mother] can cope with. -- onion2k
  172. Incorrect title. Plagiarized code, not stolen... by NullProg · · Score: 3, Interesting

    While investigating a bug in one of our products, I found source code on a website that was nearly identical to code used in our product.

    Was the bug within the copied code? Sometimes copyright isn't an issue with copied code. Its product quality.

    The three instances of copied code I've found in our commercial product caused major headaches because the code got past QA and failed in the field. It didn't scale, had timing issues, etc.

    In all three cases when I confronted the programmers they could not explain how "their" code worked. In all three cases I didn't have them fired. I made them fix it and apologize to the boss (who had to apologize to our customers).

    As a result, I now have two decent programmers who write their own code. They ask for help when its needed instead of copying off of the internet.

    Enjoy,

    --
    It's just the normal noises in here.
  173. Job Survivability by earlymon · · Score: 1

    First, I heartily agree with those who have advised to discuss this openly with the project lead - privately! - but openly.

    Get the lay of the land. How much of this product that about's to be fielded has been Frankensteined this way? Was the adopted code so easy to understand? How much adopted code will there be in the distribution for which there are no orignal authors to work with when it comes time for doing maintenance? And will you be on the hook for that maintenance?

    If you have a personal problem with the practice, assuming that you even got a {copyright | moral | public domain} acceptable answer - go ahead and quit. This won't be your last job, so if the corporate culture doesn't sit well with you personally, move on and find your right home.

    There's plenty of drek software out there from compromising programmers - don't become one of them.

    On the other hand, if the answer turns out ok, then you've learned a lot, and you might consider staying and learning more and contributing more.

    Otherwise - speaking as a past developer and present employer of developers - my advice would be to ignore those who have been flaming you one way or another, regardless of how their posts were modded. Being a developer or employer empowers no one with any special insights whatsoever - being a good developer or good employer is only what counts.

    You sound like you want to be a good developer. Find out if you have a good employer and make your choice. There is a karma outside of Slashdot, I shit you not - so be brave.

    PS - Don't rewrite the code - the method is already known to you, and plagarism is plagarism whether you copy verbatim or move a few words about after the fact.

    --
    Pathological kinda promises Path + Logical - but instead, you get stuck with pathetic.
  174. Re:Code posted on the web with no license is free. by Jherico · · Score: 2, Insightful
    >200 lines of code from the Internet, posted by their author, are free. Period.

    You would be hard pressed to be more wrong. All creative works are copyrighted and unless licensed are not free for anyone to use except under very specific conditions.

    >Ever find a quarter on the ground? Somebody ever give you one? Did you require a deed to prove you had the right to the quarter?

    That's an asinine comparison. A quarter isn't a creative work. Quarters are not covered under intellectual property law. The comparison you're looking for is finding a novel manuscript on the ground, picking it up, putting your name on it and selling it to a publisher.

    --

    Jherico

    What can the average user can do to ensure his security? "Nothing, you're screwed"

  175. I hope the copied code was not viral. by jdh3.1415 · · Score: 1

    I work for a small company that does a lot of business with that large software company we all know and love. (Hint: They have a monopoly on operating systems and office suites that run on PC's.) I'll call them Company X. Company X is absolutely paranoid that some viral (GPL'ed) code will be accidentally linked with their code. Every contract we sign has pages and pages that deal with this issue. If I went to our legal department and told them I found code that was copied off the internet and the licensing isn't clear, it would be a huge deal. They'd definitely hold up product release until the code could be replaced.

  176. At least understand what your stealing...! by Llynix · · Score: 1

    It happened to me just recently. I posted a snippet of code to my website because I thought others might find it useful. I guess someone did because about a month after I posted it I had a report that someone had sold my code, line by line, to someone else.

    Now you have to understand the code did not work (I said this clearly in my posting, it needed to be modified for whatever specific use.) Furthermore apparently the person clearly plagiarizing and trying to monetize on my work didn't understand this and also couldn't read. The person they sold it to did a quick Google search and came up with my website and code, got their money back and then asked me a few simple questions to get it up and running.

    Copyright is clear on the matter. My code on my website is just that.. MINE! While I put it up with the intention of helping out others, I didn't want someone to apply a formula of cut/paste/$$$. I certainly didn't want to spend time hunting down some scum and sending out nasty grams while debugging the mess he left behind.

    The point is learn how to fucking code. I cut and paste all the time from code snippets. But I understand them, I change variables and often simplify the mathematics and logic. Sometimes I start with something and end up scrapping the entire thing because the original author was an idiot. Rarely do I come across a gem that actually works out of the box like it should. In those cases I give full attribution.

    Heck the piece of code I posted was from a variety of sources on the internet. In the article and code I give URL's and attribution. That's the way it goes.

    All this talk of "it was on the net so it's free to copy" is pure bullshit. Clearly someone posted it for a reason. And while it's free to UNDERSTAND, it's not free to COPY VERBATIM!

  177. context matters by sentientbrendan · · Score: 2, Insightful

    If code is posted on a forum, whether or not it has a license attached to it may not matter. Many forums used by programmers require that posters give the right to use the example code posted, etc. Please check with forums FAQ before panicking.

    You should probably just mention it to him and offer to rewrite it. It would be wise to not act in an accusatory manner when bringing it up. Remember that there are a lot of sources out there that are meant to be used as example code, and that if permission to copy is given it isn't "cheating" to do so.

  178. Which Web Site? by rlp · · Score: 1

    Hopefully you didn't find it here

    --
    [Insert pithy quote here]
  179. bad advice on GPL by sentientbrendan · · Score: 3, Insightful

    >Personally, my favored way of avoiding this problem is to use GPL software...
    This *causes* legal problems, it doesn't solve them and is bad advice. How you can use GPL code in conjunction with your proprietary software is highly legally constrained. If you use GPL libraries, the GPL license then applies to your code. Supposedly LGPL gets around this, but not really due to ambiguities in the license (the license uses the ambiguous term "derives from" which has a different meaning when used with object oriented software). Note that glibc has a special exception, and that it is generally ok to use.

    >We weren't told what license the issued product would be under, and it might BE under GPL.
    It doesn't matter whether the software he is releasing is under GPL. You can't just apply the GPL to someone else's non GPL code without their permission. You'd not only be opening up your company to lawsuit, but probably everyone who uses your code.

    The GPL is not a magic license that you can invoke and use other people's software however you want. It is a useful license in many situations, but it clearly does nothing to help the OP.

    1. Re:bad advice on GPL by Anonymous Coward · · Score: 1, Informative

      The fact that "derives from" has a seperate meaning in OO does not create an ambiguity in the license. Lawyers and judges do not use OO terminology.

      In any case the phrase "derives from" appears nowhere in the LGPL, having just searched it. In fact the characters "deriv" do not appear at all so you're basically making this up.

    2. Re:bad advice on GPL by HiThere · · Score: 1

      Somehow I don't think you read what I wrote. Let me spell out a few things that didn't get mentioned.

      1) If you're using GPL code, then you can use examples from other GPL code to solve your problems. This "gets around" the problem under discussion because you and the example code share the same license, and it gives you permission to do exactly what is being done.

      2) If the code is from a standard algorithm, or a text presenting a standard algorithm, then it's purpose is to be used in code. We just don't know whether or not that is true.

      Also, as was pointed out in a different post, many forums in their "Terms of Service" require you to assign the right to reuse the posted text under a non-exclusive public license. The exact terms and conditions vary from forum to forum.

      --

      I think we've pushed this "anyone can grow up to be president" thing too far.
  180. You did talk to the Project Lead right? by MrSteveSD · · Score: 1

    Surely your first thought wasn't to report him to higher management. If it was, I hope you never work with me :) For all you know he might have asked the original author for permission to use it in an email or something.

  181. Re:Code posted on the web with no license is free. by 808140 · · Score: 1

    Let me second the sibling poster's objections, and add a few other points of my own: code posted in a forum may have been written by the poster on the spot, but if it compiles and works, in all likelihood he copied it from somewhere else himself. Lots of code sitting around on the internet (and discussed in forums) is GPL'd, and including 200 lines of GPL'd code in a closed source product will have your company in for a world of hurt if anyone ever finds out. People who write GPL'd software are... passionate.

    Secondly, 200 lines of Java may not do much, but 200 lines of a denser language (like Haskell, for example) could be decidedly non-trivial. xmonad, a fully-featured tiling window manager for X11, is under 500 lines of code. Even if it's 200 lines of a sparse language, it may do something non-trivial and a fair use argument would fall flat on its face in that situation.

    While I agree with your general feeling that our societies have become far too litigious, your solution seems to be to put your head in the sand and pretend that they haven't. Unfortunately, whether we like it or not, you can (and will, if anyone ever finds out) get sued for things like this.

    Regardless of whether this registers as right or wrong on your personal moral compass, CYA dictates that you rewrite the code as quickly as possible and hope no one ever finds out.

  182. Go nuts. by Anonymous Coward · · Score: 0

    Dear guy-who-wrote-the-question,

    If you and your company happen to reside in Sweden, please ignore the previous 100+
    replies and and do what ever you want. Seriously. Go nuts.

    Best wishes,

    America

  183. If it were me... by OneShirtChris · · Score: 1

    i'm a code monkey much as yourself. However, being a contractor it doesn't matter to me if the company i'm contracted through could get screwed because another developer stole some code. That was for full disclosure. also, if it's in a place such as a public forum (one you don't have to pay to be a part of, or must have ieee membership to participate in) if all you need to post is an email address and a password then it's in the public domain, and unless the person posting put some restriction on it it's free game. You may want to check that poster's profile maybe he put something in there that would umbrella all his posts under some kind of agreement. But again, it there's nothing then it's up for grabs. I wouldn't raise too much hell about it especially being a new hire. (calling out your boss isn't the best idea)

  184. Innocent Comment by Chysn · · Score: 1

    Okay, I'm putting myself in your position here. Looking around, find a couple hundred lines of code that were "written" by my boss, but aren't really. I don't wanna make trouble for my boss. I also don't wanna be blamed if it later turns out that somebody really cares about this.

    So here's what I'd do. Find something wrong with the code. Something tiny. Find a minor flaw, or a way to slightly optimize it. Whatever, doesn't matter. Then comment your change, wording it in such a way as to indicate that this code existed before you found the "problem" and fixed it.

    That way, if nobody cares, nobody needs to say anything. On the other hand, if the whatever hits the fan, your comment will indicate that you made a change to the "work" of somebody else.

    --
    --I'm so big, my sig has its own sig.
    -- See?
  185. Re:Uhhhhh... what? by RockRampantly · · Score: 1

    Agreed. I see pointers and the address-of operator so it's some form of C or C++, but the first line makes no sense to me. I'm assuming it's a function declaration of return type BOOL, but there isn't an argument list, not even an empty one. And the square-bracket notation on line 6 is also completely foreign. It must be something like Microsoft's crazy extensions their IDE uses (or perhaps Apple, since this is apparently for OSX).

  186. Interesting prospect by leabre · · Score: 1

    It sounds like something is missing from the summary. Why would someone be so "paranoid" to mention to management about this egregious act of lifted code from someplace that had no particular copyright terms attached or not obviously obviously implied? The tone in which the inquisitor implied is that the co-worker is a thief and going to land the company in major trouble when, in if there is nothing more to the story, then nothing is wrong and its better just to forget about it and move on. Perhaps the poster of the story has something against the lead programmer?

    But I have a different theory: Perhaps all this fear about copyright violation this, intellectual property rights that, SCO v. Linux this, Microsoft v. world that... that the younger breed of programmers/individuals are naturally paranoid of things they don't need to live in fear of and we'll start seeing a lot more of this culture-of-fear. Perhaps not much longer we'll see a breed of younger individuals just as much afraid of copying music that they'll report their parents for ripping a tune from the CD or from Internet broadcast (I'm not saying either is right or wrong).

    The tone and extreme reaction to wanting to report someone to management from lifting code from a source that appears to have not attributed copyright terms/intent seems to suggest to me that there's a generation of coders living in fear resulting from massive industry propaganda and slashdot knee-jerk reactions just waiting to creep out of the woodwork as they age into career maturity in the upcoming years. My theory is this: this is just the beginning. Or, there's more to the story than reported in the original summary. You decide.

    Thanks,
    Leabre

  187. When, what, who, where, why? by BeanBagKing · · Score: 1

    sooo many questions.

    Is the person who posted the code the owner?
    If not, did he have permission to give it away?
    If so, did he mean to allow it to be used by anyone, anywhere?
    Is there a license, somewhere out there, attached to this?

    Who knows. I'd start by trying to contact the person who posted the code, ask him these questions, and a few more. Let him know what the situation is. If there's a problem, then he knows the situation and can take action. Contact him anonymously and if there is a problem then he can take appropriate action and you didn't do anything anyone knows about. That covers the legal aspects and keeps your job intact. If there isn't a problem, then nothing changes.

    If you can't contact him then the situation gets more complicated. My suggestion is to read between the lines. A lot of people will post code to help someone out if they publicly request it on a forum, I've done that and I don't care if MS or Google want to use my lowly little code snippits, and in a major piece of software, 200 lines would be lowly. If it looks like someone threw up some code that they don't care about, then I'd say run with it. That's skirting the legal edge a bit (maybe more). I'd say it's legal to use if there's no copyright, author information, header, etc. in the comments or the post, but I'm no copyright attorney, and even if not, this may not be the most moral thing to do.

    One option you might want to run with is taking it to the lead developer. I know he's the "bad guy" in this case, but he's also the only other person in the company you can talk to about it without reveling that the code is stolen. He should know that if the new guy can google a few lines or whatever and find the code that anyone else could too. Together you may be able to re-write it as you said you could, and with him as the lead dev. you wouldn't have to find excuses for making huge last minute changes.

    All in all, not a position I'd want to be in, goodluck to you.

  188. Please post the code by Anonymous Coward · · Score: 0

    It's really hard for the group to help you if you don;t post the code.

  189. -1 Troll by Schmodus · · Score: 1

    This article is clearly trolling.

  190. C or C++? by Anonymous Coward · · Score: 0

    Please tell me you are kidding. Believe it or not, some languages have similar, but different syntax. Since some function calls seem to look like C and some seem to look like smalltalk, I will assume this is Objective C.

    Or was that a whooshing sound I just heard?

  191. Leave it. by danielk1982 · · Score: 1

    Don't be such a boyscout.

    This is only 200 lines of code from a random forum posting - leave it and don't worry about it.

  192. Implicit consent by nbauman · · Score: 1

    If the author of the code posted it in a forum, I would personally call that implicit permission to use the code. Otherwise, why even post it? To show off his great coding ability? Every programmer (myself included) does this all the time Yes, I thought of implicit consent too. If you post something on the Internet in a way that makes it clear that you intend it to be copied, then you have consent.

    Who decides that it's "clear"? If worse comes to worse, a jury would decide. But a statement like, "Here's how you can do it," or a forum where programmers exchange examples for each other, would make it pretty clear.

    Of course it would make things simpler and cheaper if you had it in writing. I don't know if it's necessary to have it in writing, since some copyright rights have to be transferred in writing.

    IANAL (I'm too logical to get through the law school admissions test), but I've dealt with lawyers extensively. At one company I worked at, we were typing an expensive industry directory into our own database, with the intention of modifying it and using it ourselves. We checked with the company's lawyers, and they told us that it was OK, because the directory was intended to be used that way (they didn't even get into Feith).

    If I were a lawyer, and I had to defend a client for infringing on copyright in exactly such a case, I'd use the arguments here in Slashdot to support the idea that it's customary in the industry to share and use code under such circumstances, and I'd get a programmer to testify to that as an expert witness.

    There might also be a defense of fair use.

    Too bad there aren't more lawyers with nothing better to do than post on Slashdot.
  193. Maybe mention it to the guy that put it there? by VeryVito · · Score: 1

    You say the project lead is the one that put the code there? Ask them about it (in an "I just noticed this and want to make sure it's ok to still use this" way; not in a "What the hell is this?" way) -- and ask 'em if it's ok to leave it there. Your butt's covered, the "offense" has been noted, and it's time for a coffee break!

  194. Report him? WTF by Anonymous Coward · · Score: 0

    Why the hell is one of your first thoughts to "report him"? Report him to who, the C++ police? It's honourable you'd like to avoid potential law suits for the company, but your option to report your boss over something so lame is childish.

    If the guy is the project lead, then why don't you just say "Hey, I found this code here is from this forum, would you like me to re-write it or change it so we don't end up with any legal problems?". He'll either say yeah, change it, or laugh his ass off and say leave it. You're now absolved of responsibility (ianal). Understand?

  195. Re:Uhhhhh... what? by Discordantus · · Score: 1

    *sigh* This is an example of Objective-C.

  196. The public domain by hadaso · · Score: 4, Insightful

    The problem with copyright law is that if you don't explicitly allow use of your content then no use is allowed (except "fair" use that is not well defined).

    So if you want the content you post to be freely and legally usable by everyone you have to license it. You don't have to bother with all kinds of FOSS licenses as you can just declare that it is in the public domain, which means that you are still the copyright holder but you license your work to everyone to do whatever they want with it.

    So the OP raises a valid point: that code represents a risk to the organization he works for. Perhaps a small risk, but if later it is discovered it might cost money to the organization. If this was code used in a FOSS project and someone posted a comment about it I believe the issue would be immediately addressed by either locating the source and verifying that it is reusable (and documenting the fact in the source0 or replacing it. A closed source project might react differently (such as by making sure the code is not exposed to the outside world so that infringement can not be detected) but it still would want to reduce the risks involved in using unlicensed content.

    This aspect of copyright law was perhaps good at the time when the mere fact that a work is published indicated that someone made an effort and investment in publishing it. It is very inappropriate today because no real effort and practically no investment is needed to publish content, and people do post lots of content with the intention that everybody could use it freely. This should be changed and this change would be good for everybody, and especially for those who don't want their works freely distributed, because one of the arguments available now is that there is no way to tell content that is freely distributable from content that is not, and most of the unmarked content out there was meant to be freely distributable by the autheor, despite the author's failure to explicitly attach a license (including a license that puts the content in the public domain).

  197. To quote my IP lawyer..... by OmanLegend · · Score: 2, Insightful

    IANAL-However, Code that is not created by someone who has signed a work for hire agreement could create a title defect. My IP lawyer (who probably reads this site) says they're like cockroaches, and give investors nightmares, because it can create SERIOUS issues. Well, I mean, only serious issues if you like owning your company, being able to raise capital, not getting your pants sued off (sin pantolones es no beuno!)

    Again- IANAL

  198. What doesn't go around doesn't come around by presidenteloco · · Score: 1

    There is no freakin' way you U.S.A. coder types are going to retain any kind of dominant position in
    software if you don't learn to share a little more freely. The most successful of you right now
    are either open source contributors, or work for Google, a company that while not open source,
    has lots of free interfaces and components that anyone can use, and Google's search function essentially
    is a tool for enabling widesperead, indiscriminant, free in both senses sharing of information.
    Both of these approaches build wealth by building a large community of shared work, which builds
    value faster than any other approach can.

    Code is like math, written out longhand. Can you imagine how useless a mathematician
    is who keeps their work to themself.

    --

    Where are we going and why are we in a handbasket?
  199. Now why is it... by msormune · · Score: 1

    ... that people here are educated enough to cry out when someone makes a claim that downloading stuff is stealing (it's really a copyright infringement), but when someone uses some a part of code without promise, it's suddenly stealing?

  200. Only crap projects have that much code by Anonymous Coward · · Score: 0

    Have it ever occured to you that it's because of bad selection of languages/frameworks/tools, combined with very obviously bad design, that your 2 million lines "portion" of the codebase is so fscking large. Try rubycocoa and reduce your portion to 20,000 lines. Oh, you're on windows. Well, tough.

  201. Hmm by Anonymous Coward · · Score: 0

    I remember when we outsourced some development to indonesia, the code came back with some very strange comments in it, some even in German.

    A quick google for one of the lines of code with a suspicious comment, bingo, matched the code exactly, we even found files they had scraped off the internet and left in copyright notices, and notices not to copy the code.

    But it was indonesia, so we just had them publicly lashed and all was fine.

  202. Does your boss read Slashdot? by bigblackcar · · Score: 1

    A good solution would be make a post to Slashdot describing the issue, and hope that your boss confesses to you after reading it.

  203. Posting on the web = implicit license to copy by presidenteloco · · Score: 1

    You have put your "precious" stuff on a server the sole purpose of which is to allow people
    to click a hyperlink which will cause a copy of your stuff to be created (with them as the agent of the copying action.)

    So we are left with: Either every hyperlink click on the web is a copyright violation, or
    none of them are because web posting (unless somehow qualified by a stated license restriction)
    indicates intent to allow copying, and since no stipulation of copying to where or where not has
    been made, then copying it into my codebase is hunky dory too.

    We have to face the fact that the whole web is in fact illegal under copyright law, so this just shows
    that copyright law, as currently interpreted and applied, is an ass and deserves the general ignoring
    that it gets.

    --

    Where are we going and why are we in a handbasket?
  204. Licence issues are irrelevant by hugetoon · · Score: 1

    It's more a question about how to handle this particular situation in enterprise on professional level. Let's summarize: - you come across something that could harm the enterprise - person who could be considered liable is still here and has power - no one knows that you are aware and you don't have the obligation to check such thinks there are really only to options to you IMHO: 1) less moral but more secure: shut up and pretend you didn't notice anything (btw stop posting about it on public sites) if shit happen the one who stole the code will have to handle the situation. optionnaly you could "accidentally" collect evidence of the fact that you have nothing to do with this legacy code. 2) more moral but involves risk if the one who stole the code is an asshole: you talk to him and express your doubts about this situation. what you risk is that he could see you as a threat and try to mitigate this treat in a way you'd rather avoid I can't estimate which of the two options above is better for you. To make a decision you need to know what kind of person this person is.

  205. Re:Code posted on the web with no license is free. by Falladir · · Score: 1

    You had better mean "novel" in the sense of "new." If you mean in the sense of "a novel," then for a stronger analogy, you should say "finding a scrap of paper with a poem on it." (sorry for nitpicking the analogy. Other than that, I can't contribute to the discussion.)

  206. Swapping to Linux makes Windows More Valuable by giafly · · Score: 1

    Assuming you retire your Windows install disk and never touch it again, this means there is a reduced supply, so everybody else's copy of Windows becomes more valuable.

    --
    Reduce, reuse, cycle
  207. Who gains? by Archtech · · Score: 1

    I find it amusing, though silly, that the outcome might very likely be something like this (in financial terms):

    Poster's company buys a license: cost (say) $1,000.
    Code author earns $1,000 (subject to tax), but has to draw up a suitable license and get involved in all sorts of other legal stuff.
    Both parties have to hire lawyers to advise them, draw up legal documents, etc. Lawyers bill, say, 20 hours at $500/hour. Total cost of lawyers: $10,000.

    Hmmmm.

    --
    I am sure that there are many other solipsists out there.
    1. Re:Who gains? by guardian-ct · · Score: 1

      They could just find some license posted in some other forum, copy it, and use that license instead of spending $10,000 on lawyers.

      Oh, wait... Oops.

    2. Re:Who gains? by Archtech · · Score: 1

      I like it, I like it!! Mod parent up to 5 "funny", please!

      --
      I am sure that there are many other solipsists out there.
  208. Sue the author? by Open_Sauce · · Score: 1

    Relax about the forum code. If the author posted it in the forum, then (as pointed out) the implied consent is there, even when automatic copyright applies in favour of the author.

    Technically the author could come back and say: "Hey, that's my copyright!". But then the author has contributed the forum entry knowing it might possibly be used or adapted for a real-world use. So this person has attempted to subvert YOUR code with copyrighted material? Seriously, that is questionnable use of a web forum.

    And if the code belongs to a third party? Well the forum poster is a partially liable party to the copyright breach, since they have done the oringinal code lifting.

    And for those of you who DON'T understand public domain:

    If I wrote a poem and held it up behind the president being sworn into office, then there is NO doubt that I automatically own the copyright to the poem, but the video of the event can be freely copied and re-used by TV networks without asking to "re-publish" my poem. By waving it in the air at a public event I have placed the item in the public domain and fair use applies. But I still own the copyright. Copyright and public domain can coexist in this way. That is, I couldn't publish a book of poems and add yours in, but I COULD write a book about presidents and include a reference to the poem, since it has fallen into the public domain.

    Here's a poem I've just thought of. I reserve all rights to its use. (Note: I have no such rights, I'm honestly just being a very silly pseudo-lawyer!) I call it "A hover, Text decoration? None!"

    a:hover { text-decoration: none }

    Get real.

  209. My copyright has been infringed by Anonymous Coward · · Score: 0

    Hey! I invented the phrase "I work for a small company as a software developer". So you have no right to use those words. That is from my English language program which performs an act of information transference.

  210. Have you checked your for next ? by PermanentMarker · · Score: 1

    Just for the record i just pattended the for next loop

    For i = 1 to n
              [.. your non patended code]
    Next

    Also included in my patend

    for j = 1 to n
              [.. your non patended code]
    Next

    As long as you wont use i, it's no problem; however if you did use my patended i or j or n as used in the patended "for next" then you wil have to re write your code. Patend nr #8972183001-2007 under EU and American copyright laws.

    How long will it take to have 12 monkeys randomly typing and generate your source code, an is that a patent violation ?

    --
    I know you're out there. I can feel you now. I know that you're afraid. You're afraid of us. You're afraid of change.
  211. Check the forum policy by fmoliveira · · Score: 1

    By posting in most foruns, you have to agree that everything you post is in some type of license.

  212. Difference in Mindset by Anonymous Coward · · Score: 1, Funny

    I think it's a difference in mindset. Many of us think of knowledge as belonging to society. We think of knowledge as a kind of library. We checkout some ideas and we publish some ideas. We realize that all of us can profit by sharing. Imagine if every scientific idea was copyrighted so if you wanted to do anything you had to either pay a license fee to every person that thought of some part of your invention.

    For instance if you wanted to build an airplane you would first have to pay an idea license fee to: Leonardo da Vinci Idea Holdings, Galileo Gravity Institute, the Newton Center for Motion, the Entreprise de Rozier-d'Arlandes, Das Swedenborg Unternehmen, Cayley Corp, Penaud Inc, Wnk Works, the Royal Aeronautical Society, Otto Air, Percy's Planes, Chanute's Chutes, Mozhaysky's Motorplanes, Zeppelin Aeronautical, Langley Aircraft, Manly Motors, Wright Fliers, Curtis Aviation, Santos-Dumont Dirigibles, etc, etc, etc.

    Unfortunately there are others that think ideas should be bought and sold like cattle. The cattle people have this bizarre idea that if you get a piece of paper that says you thought of something first, regardless of whether you did or not, you have some kind of exclusive right to that idea; no one is allowed to think the idea up after you.

    That kind of thinking is evil.

  213. Its just not clear to me by methuselah · · Score: 2, Insightful

    10 print "hello world"
    20 goto 10

    Who owns this code? I just wrote it out of my head because I am sure I read it in a book somewhere. I couldn't tell you which one it was so long ago. Some logic is just obvious. I could complicate the above code in order to "re-write" it but it, would still be the same thing. It seems to me that as long as you don't take something that you have found in its entirety and use as your own and distribute it there is some fair use there. Where that line is, is blurry. Is every sampled sound in some "popular" music that is used without explicit permission a violation of copyright? Then if i sample the sample of the sampled sound from that music and use a bit of that then, who's copyright did I violate? This whole discussion is terribly confusing...

  214. Scapegoat by swb311 · · Score: 1

    Been there, done that. My ass is still a little sore.

  215. Wow. by mindstrm · · Score: 1

    There are a lot of moral and ethical arguments here...

    This is business, and your job.

    1) Don't assume the person who did this is evil, bad, or incompetent.
    2) Ask whoever you report to about the issue in writing. Bring it to their attention a a possibly copyright issue.

    Then just let it go unless you are asked to do something else.

    UNLESS

    Unless you feel this particular issue is of grave risk to the company.. then you might want to go over a head and escalate it.. but be sure about what you are doing and aware of who you might piss off.

    Don't start getting pissy about it just on principle.

  216. IANAL, but... by Anonymous Coward · · Score: 0

    IANAL but you understand so next to nothing of Copyright that even I can help you in legal matters when your employer inevitably gets sued for your violations and promptly passes the blame on you.

    Pay by the hour okay? The visits to a law library take time and I need to find one first... (Lawyers, psst! Should I wear horn-rimmed fake glasses to court? What about at first meeting with client?)

  217. manners by sadwings · · Score: 1

    Generally, if I am looking for a solution in a syntactical way, I may cut and paste a FOR LOOP (for example), then change the variable names to my own and move on.

    If I actually lift a framework or process from the web, I make sure I link the website and author in the comment section.

    If source code is on the web, it's free game. It's not realistic to think that, if you post your code and it's good, that it won't end up in the code repository of some large corporation.

    I did run into a situation like this at my old work. A main routine we used was lifted from the web and, while it was probably legal, the person that lifted it replaced the author's name with his own.

    After a couple of years I found the original on the web and lost respect for the person that did it. I think it's a great skill to be able to find and use things on the web and reduce the cost of your project, but if you didn't write it you have to give the credit to the author.

  218. Changing 200 Lines by madsheep · · Score: 1

    So it making some changes to only 200 lines of code normally considered a major change? Sounds like you could get away with rewriting this in under an hour and not affect much.. but what do I know. Good luck.

  219. Stolen Code... or Free'd Code? by amagine · · Score: 1

    The whole issue of locking down code has never sat well with me. It stifles progress and encourages a constant re-invention of the wheel. If you are able to write code that is worthy of use by other programmers, kudos! And in that same token, you should be able to continue to write new and better code, instead of locking it down and sitting on your laurels. The whole point of the internet IMO is the free sharing of information and ideas. Unfortunately and in some aspects of convenience, commercialism has infiltrated the internet to a large degree. We need to stop thinking we need to hoard our code like a treasure heap, and realize the incredible wealth attained by sharing knowledge. Krap! Politicians seem to understand this notion also, you scratch my wealthy ass, I'll scratch yours Dog. my lil'nickle

  220. Forum Policies & Procedures by JSThePatriot · · Score: 1

    There are a few things you would probably want to check on if this is a major concern to you. (It definitely sounds like it is) First is the forum open to public searching, or did you have to log in to view the information? If it's public, then I would just say read the Forum Policies to be sure that there are no hidden licensing added in there. The reason I say to do this is due to the fact that a couple of programming forums I am on have a few lines in their terms of use that states the poster has sole rights to the source code, and that before using any of said source you are to contact the poster for permission.

    I hope this helps some. I don't have a problem using posted code, but I do check the forums public vs registered policies.

  221. Code from "public" sources by Anonymous Coward · · Score: 0

    Under US Copyright law, anything you produce is automatically copyrighted to you, but you must mark the material as such. Employment contracts often require the employee to automatically assign the copyright to the employer or they define contract work. Posting material to a public forum (assuming the original poster wrote the code AND retains the copyright) without a copyright notice as to how that material may be used might be considered as permission to freely reuse the material because the author failed to even marginally protect the work. Note that the forum in which the material was posted might have a blanket policy covering all postings.

    You can completely avoid this problem in the future by *learning* from such material and creating your own body of work from that *knowledge*. Nobody (in the US) can copyright an idea or concept (that is handled by patent law, trade secrets, etc.), only an implementation. Just comment your implementation indicating that you wrote the code from knowledge you accumulated from various sources (Internet sources will be assumed).

    The original poster is justified in his concern in these litigious times. I would suggest that he take this issue to the person that inserted the code with a "is this going to be a problem for the company" frame of mind (i.e, through in a bunch of "dude"s when you talk to him). If that person is your "boss", you have fulfilled your obligation to the company, and possibly your liability, by bringing the issue to management's attention. If you are truly concerned, talk with a tech lawyer and ignore the idealistic opinions expressed in this thread.

  222. Ask the original programmer by TheGreatOrangePeel · · Score: 1

    I imagine this will get lost in the depths of "not in the top 3 on /." and won't get much attention as a result, but on the off chance that it'll still get read the appropriate person I'll suggest it as I haven't seen anything like it moderated '3' or higher.

    Fist, document your findings. I'd save things like the URL of the forum post, the HTML of the page (read: file->save as). The next thing I'd do is try and get in touch with the original author of the code and ask something like, "Is it fair to assume this code should be acceptable for anyone to use freely?" I wouldn't mention that it's for a commercial product; people tend to see dollar signs when you mention something like that. Document the interaction with the individual. If the original programmer says its fine, document that as well and give everything you've gathered to the individual who put it in the code in the first place. If they say that it isn't okay to use the code, document that, call a meeting with the manager, project lead and anyone else you feel is appropriate and explain the whole situation in a no-fault kind of way: "I found this, I asked the author, here's the answer, this is how much time we have until we go live and/or test, here are my proposed changes."

    I freely admit that I'm frequently criticized for this type of approach because it "takes longer" (which isn't true, it just takes people longer to hear anything about it so they THINK it takes longer) than taking it through traditional channels, but I like to have everything I can possibly have before I bring something out into the open. This way I know what does and does not need to be done and I can present facts without any ambiguity and in your present situation this approach will document that you were not the one to use someone else's code illegally while addressing the issue at hand.

  223. JEEZ, PPL HAVE A LOT OF TIME. by Anonymous Coward · · Score: 0

    Hello there.

    So you foudn some code, taken from a web forum and apparently posted as an example, that some guy in *your* team took, applied, and made *your* stuff work. So he found something which answers his issues, apparently provided sot hat it can be used, and used it and made things work. You want to nitpick and report him for that?

    You, sir,

    * have no sense of propriety.
    * no sense of common courtesy.
    * no sense of loyalty to the place you work
    * have an exaggarated sense of loyalty to copyrights and still no idea of its proper use.

    All this hullaballoo over a bunch of code posted n an open forum, to be used by others.

    Now, if the guy had stolen from some propretyary of een opensource software, it might be a big deal. As things stand, you are, from your employers perspective,

    * wasting time over made up issues,
    * nitpicking
    * maybe looking for a way to get back at yout team lead for something,
    * and unless something of a genius, a liability now or in near future.

    I suggest you join RIAA or some similar concern where your talents can be put to good use. Otherwise, plan on living in the real world sometime soon. good luck at that.

  224. Actually I Wrote That... by bratwiz · · Score: 1


    Actually I wrote that. In the early 70's. It took me nearly two weeks of 20-hour days to get that right. I really resent it being re-posted without the original copyright. Some 'tard nicked it just as I was finished with it... removed the copyright and I've been hosed ever since. I had originally intended to use it as leverage to start my global business ("MicroSloth") and dominate the world. Unfortunately the 'tard that ripped it got the business plan too. (Shrug) What can you do?

  225. Setting yourself up... by TheIndifferentiate · · Score: 1

    If this bothers you, then you are seriously setting yourself up for a career full of grief and misery. If you report everyone you see doing this, 1) you'll be reporting everyone except yourself and 2) management will get tired of hearing it. There are other practical implications to this too. If you are a lily white purist about this, it is going to take you longer to write equivalent code from scratch than your peers and you will provide less value to any employer. I would even think you are probably going to worry that code you have written yourself with no outside aid may resemble other code made available on the Internet or in books.

    The trouble with copyright on code is that copyright is meant to protect an author's original work, and an author will, say, write a story using a set of given words. You too may write a story and even use an entirely different set of words, but if your story ends up telling the same tale, you are in violation of the author's copyright. How I see that this applies to code is that it is a tool (set of words) to accomplish a task (tell a story) and the set of tasks which programmers accomplish is a lot more narrow in scope than all the possibilities that one could come up with when telling a story, so it greatly increases the odds that someone out there has written code that will appear similar to yours and if the whole point of copyright is to protect the story, then you already start out in hot water because to accomplish the task you necessarily will be telling the same story! Essentially, copyright does not lend itself well to computer code. And software trends also complicate matters because the big idea with OO programming (and top-down programming to a lesser extent) is code reuse!

  226. Depends on the employer and the project by UninvitedCompany · · Score: 1

    My present employer places great emphasis on intellectual property, and I can't imagine a new hire (or anyone else) being penalized for bringing up the situation described with management. If anything, we'd give them a medal. And yes, we would discard code and rewrite it to resolve IP problems, if we found that the code was a copyright violation.

    Other employers aren't like that, especially smaller employers producing products where the code won't be seen by many people, or people working on internal software that will never see the light of day.

  227. copyrights in code snippets ... by Anonymous Coward · · Score: 0

    //copyright 2007 by 'The Anonymous Coward'
    System.out.println("test")

  228. Relax, somewhat by Anonymous Coward · · Score: 0

    Copyright lawed is a tangled illogical mess, but I think you came here looking for practical advice rather than legal advice.

    Downside for reusing code you don't have an explicit license to, and which was not written within your company =
    probability of getting caught X probability that someone will care X consequences for getting caught by someone who cares.

    I can't shed any real light on the third factors, but if you avoid using anything that has any kind of restrictive license in it, and avoid using anything from a competitor, I'd say the chance that anyone would care is very close to nil and because of that, I personally would have no qualms about using the code, especially since you said it was posted in a public forum.

    That said, not every business feels the same way, hence the AC post. If you're in a business where they're really paranoid about such stuff, your mindset might be appreciated and your discovery rewarded... maybe. However, don't underestimate how much you'll be disliked by your peers, and not just the guy you identified. Legally correct or not, your degree of paranoia about whether this constitutes fair use is fantastically unproductive, and not going to be shared by your peers, who are rightly more interested in getting the job done as quickly and easily as possible. You will be seen by them primarily as a meddling bastard.

  229. It's not that the code is public domain by ghostbar38 · · Score: 0

    It doesn't have any license but by default it does have copyright and the original author could prove it with the forum post.

    If the time is not enough to rewrite de code then let the code there and try to work on it in another time, plus, is not probably that the original author discover that his code was stolen.

    --
    ghostbar page.
  230. Are you really sure which way the copying went? by ralatalo · · Score: 1

    Are you sure he found the code on the web and didn't actually post the code on the web? Does the block of code form a complete 'expression'? Or is it only something so small as to demonstrate how to do something?

  231. Dismal by oblivion95 · · Score: 1

    If Economics is "The Dismal Science," copyright law should be called "The Dismal Jurisprudence." It is the most inexact, illogical, philosophically unfounded, and inevitably abused subject of law.

    No one here is really sure what's legal, although everyone has an inkling that torts are pending. And this is despite the likelihood that there is nothing in the code which a typical coder could not come up with himself. On top of that, there is the morally repugnant proposition that my own work is somehow compromised by the fact that I might have noticed some code published errantly in a public forum.

    Copyright law has veered far from its original intention: To encourage the useful Arts.

  232. What do your ASSUMPTIONS say about you? by nick_davison · · Score: 2, Insightful
    The important thing to note is the original poster is an ASSUMING the worst:
    • He is automatically assuming the original coder, who's now the lead he's meant to report to, acted with malice.
    • He has absolutely no proof that the guy deliberately did anything wrong.
    • He has absolutely no proof that they guy wasn't simply given the code by another coder on the project and has no idea it comes with a license.
    • He has absolutely no proof that the guy hasn't already attained a license and it's in his desk drawer.
    • He has absolutely no way of knowing if the original coder actually worked at that company and the code on the web is the derivative.
    If he goes with his suggested options of an unapproved recode or reporting the issue to more senior management, without going to the lead first:
    • He automatically demonstrates he's assumed the worst of his lead without even talking to him.
    • He has no respect for the reporting structure of the organization.
    • He's willing to waste senior management's time with things a more junior manager should have looked at first.
    • He's willing to waste company time doing a recode that may prove to be totally unnecessary and he certainly hasn't checked the facts to find out either way.
    The only real option in this situation is to send a brief, tactful email to the lead along the lines of, "Hey, I noted [this code] is similar to [this code]. Just confirming you're aware and have made whatever decision you feel appropriate in terms of licensing?" Then keep the email.

    The lead may have a good reason, may not have had a good reason but takes an appropriate response (securing the license, recoding), or may choose to bury it.

    ONLY when there's proof the lead's actions are deliberately sketchy does it become appropriate to consider jumping him in the chain and reporting, to ensure more senior management know they're being exposed to a liability.

    Pretty much every other option demonstrates the new coder has serious issues with respecting the people he works with. He may or may not be right. If he isn't, he's pretty much destroyed himself in the organization. If he is, he still has to prove malice on the lead's part or he risks the lead saying, "Wow, I never knew. I wish he'd come to me instead of thinking he was above playing with the team."
  233. Re:Code posted on the web with no license is free. by adatepej · · Score: 1

    I said code posted by the author -- not code posted.

    If it's of uncertain origin, obviously that's not kosher. (Or, technically, it is of uncertain kosher-ness.)

    Therefore, I agree that CYA (whatever that is, but I'll go with you) dictates you re-write it.

    But, again, if it's posted by the author, which was stated in the question, and the author notes no license, then there is no license. He is implicitly releasing the code without any license by posting it on the web without noting a license.

  234. Re:Code posted on the web with no license is free. by adatepej · · Score: 1

    It's not asinine.

    Code which is placed on the internet by its author, without any license or qualification as to what it may be used for, is free for anyone to use, at least in the US. Period.

    If you aren't certain the "author" is really the author, or you aren't willing to risk being sued even though you've done nothing wrong, you shouldn't use the code -- just as you shouldn't pick a quarter up off the road unless you want to risk being accused, wrongly, of stealing it from someone who'd just set it down.

    In either case, the law is on your side when you use the code or the quarter, but, of course, someone may still sue you. The relevant analogies all hold, and nothing about it was asinine.

    The case of the manuscript, as you posted it, is an asinine comparison, though. A manuscript which is on the ground is nothing like code *posted by its author on the internet*, in a forum, point of posting in which is to allow other people to use the code.

    A manuscript on the street is not free for use, as intellectual property, unless it is released for such use. It is not released for such use by merely being dropped on the street, by an unknown person, for unknown (or no) reasons. By relinquishing possession of a single copy of the manuscript, the author has not necessarily relinquished possession of the content of the manuscript.

    On the other hand, a person who drops a quarter and walks away *has* relinquished possession of the quarter *and the right to use the quarter*. In the same way, an author who posts code on an internet programming forum without qualifying the post in anyway has released that code for use without a license. Yet, again, dropping a book on the ground, which may or may not be copyrighted, etc., does not mean relinquishing possession of the book, it only means relinquishing possession of the manuscript, not of rights to use the content of the book.

    Therefore, a man who finds a quarter on the ground or code posted by its author on a forum without any qualifications has a right to use them. A person who finds a manuscript on the ground has no guarantee that the author hasn't copyrighted the book, etc. It wasn't "posted" by its author, and it isn't a finder's-keepers matter like a quarter, because it's intellectual property which exists outside of the physical manuscript.

    So, rubber and glue, baby. Quarters and author-posted-no-license-code are for use when found, and manuscripts are not necessarily. Therefore, my quarter and code analogy was good, and your manuscript and code analogy reeks.

  235. Rewrite it??? by Anonymous Coward · · Score: 0

    Its 200 lines of code. That really shouldn't take very long to rewrite - stay an hour or two late one day and re-write the 200 lines.

    Problem solved.

  236. Re:Code posted on the web with no license is free. by 808140 · · Score: 1

    CYA stands for "cover your ass".

  237. We're all standing on the shoulders of giants. by Anonymous Coward · · Score: 0

    IANAL and I have a hard time thinking like one. I may have lived a sheltered life, but all the coders I've known were quite happy to share their knowledge, they'd just like a little recognition now and then. If a chunk of code was ingenious or very time-consuming to produce, the author has the option to NOT post said code in a public forum. The original poster comes off a little paranoid and/or maybe a little self-righteous, worrying about 200 lines of code. We're talking about some small piece of functionality, not an entire application --and it's code the author didn't bother protecting or restricting in any way. Sounds analogous to an unopened six-pack left in a public park (free --as in beer). If you need to feel better about it, clean up the formatting, re-factor a little, and rename some objects. Voila, you've got "original" code! Works that way in all fields of academia.

  238. API by GWBasic · · Score: 1

    Is the "stolen" code an example of how to use an API? A product that I work with uses the Capicom hashing DLL. The calls to Capicom look JUST like the web examples, but that's how you use the API. There's not much you can do except change variable names and put the URL of the source in a comment.

  239. Re:Code posted on the web with no license is free. by Jherico · · Score: 1
    >Code which is placed on the internet by its author, without any license or qualification as to what it may be used for, is free for anyone to use, at least in the US. Period.

    Troll.

    --

    Jherico

    What can the average user can do to ensure his security? "Nothing, you're screwed"

  240. whats your f****** problem, its none of your b... by Pharago · · Score: 1

    stop pretending beeing a good 'guy' you are just looking on the web for a free advise of how to scr3w your boss about ::Lol(200 lines of code); and disguise as legal whatever...

  241. Re: by Anonymous Coward · · Score: 0

    just remove the damn comments and change the variable names. problem solved.

  242. dept of commerce code audits by peter303 · · Score: 1

    I work for a large software company with much international business. In order to get an export license our code- source and libraries- undergoes an audit to make sure there isnt any deep encryption or other prohibited stuff. The audit is like the anti-plagarism searches used at schools. It turns up lots of other things like GPL and open source.
    Some our customers demand zer third party code. This utter fantasy in modern programming, especially when enough of this leaks into the commercial compiler libraries. But maximal documentation and sudit trails is something we can offer.

  243. fair use by shentino · · Score: 1

    I'm afraid that I can't give you good advice, as the law only works when someone makes a challenge. For example, if someone steals your car and vanishes, you don't automatically get it back unless you A) report it stolen, and B) press charges. Similiarly if someone hurts you. YOu don't get paid unless you sue them first. And companies like doing stuff like this all the time. People are inherently cheap, backstabbing, greedy bastards. The question is...do you want to risk your job by blowing the whistle? By all means, do whatever you believe is right. But remember, martyrs die because the establishment doesn't like them. If you want to do the right thing, you must be prepared to put up with the backlash from the evil that made it wrong to begin with.

  244. Appropriate action by Anonymous Coward · · Score: 0

    I'd say, go to your boss, and point out the code you noticed. When he tells you he'll accept responsibility for it and decide what to do, drop the issue and don't mention it again. Its out of your hands. No one's life is at stake. Plagiarism of 100 lines of code is a civil case and you'll only be hurting yourself by pursuing it further. If you feel so strongly about the issue, seek employment elsewhere. If you notify the author of the code snippet in this case, right or wrong, expect to be under the microscope..with any misstep resulting in your employment termination.

    My advice, go get a job with the RIAA or SCO...you'll fit right in there.