Follow Slashdot stories on Twitter

 



Forgot your password?
typodupeerror
×
Software

Code Copying Survey for Developers 389

Struan Robertson writes "With all the controversy surrounding SCO's allegations that its Unix code was copied into Linux, we're running a survey with ZD Net to gauge industry practice on code copying. Do you keep a code library? Do you take it from one employer to another? These are the questions we're asking. All answers will be anonymous. The results - with expert legal analysis - will be published free - we're not doing this to sell reports etc. If you're a developer and happy to help, see our questions on SurveyMonkey.com."
This discussion has been archived. No new comments can be posted.

Code Copying Survey for Developers

Comments Filter:
  • Larger companies (Score:3, Informative)

    by BCW2 ( 168187 ) on Thursday April 08, 2004 @02:40PM (#8806370) Journal
    In most large companies with their own programmers, when a program is needed to do a specific funtion, they look at their old code to see if something comes close and then modify it as needed. This saves much time and $. If something is already there just use it if it works, save debugging and writing time.
    But this is pre-existing company code, not from a personel library. Many do keep a personel library of generic modules that can be assembled to do many things in many ways. None of this would be considered proprietery IP by anyone. Although I'm sure some companies and Universities would try. There are only x number of ways to do any function in any language. Similarities will abound between programs that do the same thing, written in the same language. You can't avoid it.
  • by kbonin ( 58917 ) on Thursday April 08, 2004 @02:44PM (#8806430)
    I maintain at home a library of code under an open source (BSD style) license. Once an employer has given me permission to use and contribute back into that library, THEN I use it at work, and I take it with me when I go. If they want to pay me to reinvent the wheel, its on their dime, no problem! If they want the advantages my existing code, then they have to let me keep improvements. Sort of an informal LGPL license, without the "lesser" wording that smacks of posturing.

    To the point - This survey did not allow me to clarify that my code library brought between jobs was legal, and it bugs me that it may be used to support the position that more people ignore the law than may actually do so.
  • by Queuetue ( 156269 ) <queuetue AT gmail DOT com> on Thursday April 08, 2004 @02:53PM (#8806562) Homepage
    I don't think you hold copyright on a derivative work - not even the "diff" you created.

    I generally just turn over copyright to the owner, so it does not come up, but I believe you would have to do significant, original work, in order to hold the copyright.

    But in that case, it's not derivative anyway and you hold copyright alone.
  • by eddy the lip ( 20794 ) on Thursday April 08, 2004 @02:56PM (#8806600)

    I'm kind of spamming this thread, but this is a common misconception that I think is important for us all to be aware of. If you're coding as a contractor in North America, it is not considered a work-for-hire unless you have a contract that explicitly states that it is. That code is a big part of your value as a contractor. Don't be too quick to give it away.

    (See my comment here [slashdot.org])

  • by Koyaanisqatsi ( 581196 ) on Thursday April 08, 2004 @02:57PM (#8806627)
    Don't forget to look at this demo of things to come w/ software patents:

    http://webshop.ffii.org/ [ffii.org]

    And if you're an European citizen, please sign the petition:

    http://petition.eurolinux.org/ [eurolinux.org]

  • MS Astroturfers! (Score:5, Informative)

    by Queuetue ( 156269 ) <queuetue AT gmail DOT com> on Thursday April 08, 2004 @03:07PM (#8806752) Homepage
    I'd think pretty long and hard before answering these questions. This group appears to be a MS astroturf (false grassroots) organization, going as far as quoting [out-law.com] that shill Didio from the Yankee Group.

    The survey is full of misleading questions and will *force* you to admit you steal. Watch out.
  • Re:Good reason... (Score:3, Informative)

    by golgotha007 ( 62687 ) on Thursday April 08, 2004 @03:54PM (#8807472)
    Sorry, but a hack != programmer.

    indeed.

    i started out as a 'hack' basically finding code snippets that almost did what i wanted, but i found in every case that i had to modify these code snippets to perform the exact task i was after.

    do this for a few years and pretty soon you migrate from a 'hack' into a 'programmer'.

    from one employment to another, i keep all the code that i contributed. i don't do this to simply drop this code into another project, but i use it as a reference and how i did a particular thing.

  • by ChaseTec ( 447725 ) <chase@osdev.org> on Thursday April 08, 2004 @03:56PM (#8807490) Homepage
    Good coders just use "design patterns" ;)

    I can say that as a Sun Certified Java Instructor one of the most common questions I see from entry level developers is "are there any gode sites I can copy and paste from?". I usually point these type of people to JavaAlmanac [javaalmanac.com]. In more advanced classes we end up spending more and more time talking about design patterns because there really is no point to reinventing the wheel. A this level most developers treat design patterns as more of a framework then anything else, mantaining a code library for examples but writing new code to tailor to the need at hand. After all the end job of most developers is to implement business logic and since business processes always change you're never going to be able to copy and paste for any decent sized business app.

  • Re:Code library. (Score:3, Informative)

    by mr3038 ( 121693 ) on Thursday April 08, 2004 @04:09PM (#8807676)
    Don't forget that most of the calendar using world formats its dates as dd/mm/yyyy, not our American system of mm/dd/yyyy. So if you plan on writing software for use outside of the U.S., this would be a really useful piece of code to keep laying around.

    Actually, most of the world [qsl.net] is following ISO 8601 standard [cam.ac.uk], which says that you should use YYYY-MM-DD instead. The ISO 8601 time format is also recommended by W3C [w3.org].

  • by eddy the lip ( 20794 ) on Thursday April 08, 2004 @04:10PM (#8807683)
    OK, so do you go through the business of having them sign a license agreement for your code library? Do they have to go to you for maintenance, or can they do it themselves? How do you handle this legally?

    Depends on the situation...I've rarely been an employee, so I'll answer for clients.

    First, I don't usually bring it up. The chances of my/our code finding it's way into the wild this way aren't that great. We're not doing anything cutting edge, just your standard business logic kind of stuff. Bringing up IP during contract negotiations is a great way to lose contracts. Some might consider it kind of sneaky, but unfortunately, it's the world we live in. It's not like we're looking for reasons to sue people, the important thing is that we keep the right to use it.

    Me -- I usually just give 'em the code from my library.

    You have to be careful with that - if you explicitly sign over the rights to the code, they can come after you if you ever re-use it. They probably won't, but I have seen situations where I was glad that it wasn't a risk I had to think about. On the other hand, if you mean you just use your code and never discuss IP with them, it's still yours.

    When it has come up, in almost every situation they were fine with a license that said (roughly) that they can use it or modify it themselves as they see fit and sell it providing no copies are retained and that this same license transfers with the sale. We've occasionally broached various open source licenses as a good way around this, and it's almost universally not understood. So we stopped doing that - don't scare your clients.

  • by Landaras ( 159892 ) <neilNO@SPAMwehneman.com> on Thursday April 08, 2004 @04:27PM (#8807988) Homepage
    Block quoth the original poster...

    Our intellectual property laws, when interpreted strictly, are a bit of a farce...[A]s a society, we have never ever, even for a day, played by the basic copyright rules "100%."


    You've just summed up a major point that Lawrence Lessig makes in his new book, Free Culture.

    For those who don't know, Dr. Lessig argued "our side" before the Supreme Court in Eldred v. Ashcroft.

    In his new book Dr. Lessig discusses that case, how every new content industry (radio, film, cable, etc..) has "pirated" an existing industry, how our government willingly allowed this to happen, and many other excellent points.

    The entire book is available for FREE (as in speech) as a PDF here [free-culture.org].

    Those who want to buy a hard copy and have the referrer commission go to Creative Commons can do so here [free-culture.org].

    - Neil Wehneman
  • Re:Sure, Why Not? (Score:1, Informative)

    by Anonymous Coward on Thursday April 08, 2004 @04:42PM (#8808208)
    Indeed. Most NDA's are required by law to have a preset expiration on its validity (one to two years from date of leaving the company is standard in the IT field).

    The only NDA that can be legally made without a preset time limit are those that affect national security. Even those terminate eventually, however... at such time that it is determined that the information is no longer sensitive enough to affect security, the NDA is lifted.

  • by shaitand ( 626655 ) * on Thursday April 08, 2004 @11:18PM (#8811908) Journal
    Informative????

    "I don't think you hold copyright on a derivative work - not even the "diff" you created."

    No you don't own the collective work, that generally is held by the original author, but you most certainly DO own the code which you actually wrote if said code is copyrightable. Which is why you must explicitly contribute it and there are no shortage of projects which require you to turn copyright over to them or at least sign some sort of legal permission slip.

    "I generally just turn over copyright to the owner, so it does not come up, but I believe you would have to do significant, original work, in order to hold the copyright.

    But in that case, it's not derivative anyway and you hold copyright alone."

    If there is a single line of original open source code in your source then you most defininately do NOT own the copyright. If what you wrote is significant (read copyrightable) or even the entire project minus one sort routine you "borrowed", then it qualifies as a derivative, and if it did not, you have no legal rights to distribute a binary (or even source under an imcompatible license) which contains that routine (of course personal use is another matter. All the code you wrote however you own, so you'd probably just write your own routine and finish things off in this case.
  • Re:Loop (Score:2, Informative)

    by larry bagina ( 561269 ) on Friday April 09, 2004 @12:52AM (#8812515) Journal
    recursion? in lambda calculus yes, but early computers sucked for recursion. With a modern ISA, you usually have a nice stack with push and pop instructions. when you call a subroutine, the current instruction pointer is stored on the stack and automatically popped back when you exit the subroutine.

    Compare that to an early instruction set (like MIX in TAOCP 1-3). Subroutines are faked with self-modifying code (which makes recursion impossible):

    move R15,#return_here
    goto subroutine
    return_here
    ...
    subroutine
    store R15 exit_sub+1 ; R15 = return address
    ...
    exit_sub goto 0000 ; place holder
    If subroutine recurses on itself, you lose the return address. I'm not an export on early ISAs, but many of the ones I've seen had to do stuff like that.

Two can Live as Cheaply as One for Half as Long. -- Howard Kandel

Working...