Slashdot Mirror


Code Copying Survey for Developers

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

389 comments

  1. Loop by andy666 · · Score: 5, Funny

    I think the first person to write a loop should complain a lot!

    1. Re:Loop by Anonymous Coward · · Score: 0

      I guess the point is that most code is not really very original. Yeah, granted. But the market place determines its value. It may not always be original but if you want something you may need to pay for it - even if it has unoriginal "loops" in it.

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

      Yes, and then keep complaining... again and again.

    3. Re:Loop by Anonymous Coward · · Score: 0

      The loop isn't even that old - it is from the 1960's. Before that everything was recursion.

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

      Recursion is the tool of the devil and I will never ever use it. If I do, you have orders to shoot me.

    5. Re:Loop by RLW · · Score: 2, Funny

      Hey, I was the first to write an infinite loop. I should get infinitely more money than loop-boy!

    6. Re:Loop by jbmarsh80 · · Score: 1

      You have a point though? So now I can't use my quicksort algorithm i wrote in high school because someone copyrighted their source code and it had a quicksort?!?!

    7. Re:Loop by Virtex · · Score: 2, Insightful

      Infinite loop? Nonsense. There's no such thing. They're fairy tales told to scare young programmers into submission. I've been programming for 100 years and I've yet to see a loop that ran forever. One way or another, they always terminate, whether by a Control-C, hardware failure, or any of a million other ways. Infinite indeed.

      --
      For every post, there is an equal and opposite re-post.
    8. Re:Loop by Anonymous Coward · · Score: 0

      And the first person who wrote an infinite loop should complain over and over and over and ...

    9. Re:Loop by larry+bagina · · Score: 2, Informative
      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.
      --
      Do you even lift?

      These aren't the 'roids you're looking for.

    10. Re:Loop by Bandit0013 · · Score: 1

      I'm currently having an interesting discussion with an ex employer. I'll explain it in very generic terms.

      We had a project going to develop a software product with another company. Said project was cancelled in the planning phase. I thought the idea was worthwhile and asked my company to pursue it without the other company. They said no, they weren't interested.

      I go home and develop said software on my own machine with my own materials and my own time. I used no documentation, or code in this project (well there was no code, it was just in planning. I argue that the concept of this software is in the public domain since there are other companies that do this type of product).

      I have since left the company and I am planning to launch said product soon. However, the company thinks that they have legal ownership of this product and may sue me. My lawyers are 95% certain the company won't win, but still it shows you how delicate IP issues can be.

  2. well.. by Anonymous Coward · · Score: 0, Redundant


    .. if all code was "free", then this wouldn't be an issue.

    1. Re:well.. by Anonymous Coward · · Score: 1, Funny

      You mean the part about getting paid to write code?

    2. Re:well.. by Saeed+al-Sahaf · · Score: 1

      "Free"? As in BEER? Someone's got to pay, we don't like in a Socialist world, people (even coders) have to eat...

      --
      "Who are in control, they are not in control of anything - they don't even control themselves!" - Glen Beck
    3. Re:well.. by Oligonicella · · Score: 2, Insightful

      Ah, good. One presumes then, that *you* will be writing and posting on the net a library of routines and snippets donated to posterity.

      Didn't think so.

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

      If they had to eat, they wouldn't advocate the use of open source, because that would mean noone would get paid to write code, which in turn means that I definitely picked the wrong major in college. Thanks a lot, punks. They're ruining it for us who actually wants to earn money on our skills, and I resent them.

    5. Re:well.. by The+Snowman · · Score: 1

      Someone's got to pay, we don't like in a Socialist world, people (even coders) have to eat...

      Ideally, F/OSS and proprietary software would coexist relatively peacefully, each with a good chunk of the market. This ensures everyone has access to good software without having to pirate it, and it ensures programmers get paid. Granted current Linux companies sell services to make up the difference, and some developers get paid (e.g. Linus) by companies so they can afford to develop free software.

      I think that with OSS companies like Red Hat selling services and traditional closed-source companies like Microsoft selling their products, both sides of the camp have incentive to produce good software affordably, and everyone gets fed.

      --
      24 beers in a case, 24 hours in a day. Coincidence? I think not!
  3. Yup, and I keep it... by tcopeland · · Score: 5, Funny

    ...right here. And here, too.

    And lots of other folks contribute too. Good times!

    1. Re:Yup, and I keep it... by jdavidb · · Score: 1

      Don't forget here.

      No, I don't keep a code library, because it's easier to just use the work of these guys, who are definitely better programmers than me. :)

    2. Re:Yup, and I keep it... by Anonymous Coward · · Score: 0

      Boy Howdie!! I sure do. Also if I for some reason I dont have access to it much of it is backed up inside my skull and when retrieved uses the same variable names and conventions as when it's coppied from my code library.

  4. Do you keep a code library? by Anonymous Coward · · Score: 5, Funny

    Hell no, I like rewriting conversion and formatting routines. That's like a paid vacation!

    1. Re:Do you keep a code library? by RLW · · Score: 5, Funny

      Exactly. Why keep a code library around when you can get paid to rewrite stuff which can be put together nearly in your sleep? It's a good way to start the day while I'm still groggy. Then I can get paid to debug it in the afternoon after I wake up.

    2. Re:Do you keep a code library? by Anonymous Coward · · Score: 0

      I've had my dot files (.emacs, .profile, ...) for over ten years. Does that violate non-disclosre?

    3. Re:Do you keep a code library? by Anonymous Coward · · Score: 0

      Sheesh, man. Keeping a library doesn't mean that you don't get that 'paid vacation'. It just means it's even more of a vaction.

      "Sure, all this infrastructure is going to take a while to get together. It should be done by friday afternoon."

      <run 'scp me@home:~/my-library.tar.gz .' while boss isn't looking>

    4. Re:Do you keep a code library? by Anonymous Coward · · Score: 0

      I don't keep my code libraries, either. They are all total pieces of shit, and rewrites result in much better code (I learn from my mistakes).

    5. Re:Do you keep a code library? by epiphani · · Score: 1

      Because simple coding is boring coding.

      --
      .
    6. Re:Do you keep a code library? by Ctrl-Z · · Score: 1

      Yeah, but it leaves more time for porn. Think about it.

      --
      www.timcoleman.com is a total waste of your time. Never go there.
    7. Re:Do you keep a code library? by sICE · · Score: 1
      Why keep a code library around when you can get paid to rewrite stuff which can be put together nearly in your sleep?
      Because I can play quake one hours or two, then show out my nice formatting routine, at the coffee room.
      It's a good way to start the day while I'm still groggy.
      Ok there :-)
      Then I can get paid to debug it in the afternoon after I wake up.
      Then I can get paid to debug/re someone else's code in the afternoon after I wake up.
  5. Sure, Why Not? by Saeed+al-Sahaf · · Score: 5, Insightful
    Yes, it's standard to keep a code lib, and take it from job to job. Why reinvent the wheel?

    This is one reason that software patents are just silly. At some point, virtually every technique will have been written, then software companies will indeed all become like SCO: A few developers and a fucking platoon of IP lawyers.

    --
    "Who are in control, they are not in control of anything - they don't even control themselves!" - Glen Beck
    1. Re:Sure, Why Not? by Throtex · · Score: 2, Funny

      And when that happens, I wanna be in that platoon!

    2. Re:Sure, Why Not? by Anonymous Coward · · Score: 0

      Oh, I get it: It's a PORN VID: A Platoon of Fucking Lawyers...

    3. Re:Sure, why not? by pjt33 · · Score: 1

      Depends on the country. IIRC in the UK the default position is that code you develop at work belongs to the company.

    4. Re:Sure, Why Not? by mrtrumbe · · Score: 5, Interesting
      Because it's illegal?

      Seriously, though, would you really trust a person who completely relied on copy/pasting legacy code into current projects? Do you know where that person got the code to begin with? Did he write it? Does he even understand the code?

      While just about everyone I know keeps a personal code library containing *some* proprietary code, most don't actively use it. Those who are unscrupulous enough to copy/paste the code into current projects are not people you want around in the long term. I mean, did they even think about the best solution to the problem before doing that copy/paste?

      Most people I know use their library as a reference for future development. This allows them to take the best features/ideas of their historical library and integrate those ideas in new and better ways into their current projects. And I don't see a problem with this behavior. Any person with a decent memory would remember their best ideas and features, anyway, so the illegality of this behavior is questionable.

      Taft

    5. Re:Sure, why not? by PlatinumInitiate · · Score: 1

      Depends on the country. IIRC in the UK the default position is that code you develop at work belongs to the company.

      Good point. I should have mentioned that I am talking from a South African perspective.

    6. Re:Sure, Why Not? by somethinghollow · · Score: 5, Insightful

      1) Not only that, I think programmers should share. We are, after all, computer scientists. What if every other scientist locked up all of their secrets and just said, "Yeah the Earth moves around the Sun. I won't tell you why or how I know, though."

      2) In the beginning, people shared code to do common things (e.g. sorting algorithems). I wonder if they mean "Do you keep a copy of your sorting algorithems to use in other programs?" or "Do you keep a copy of your accounting software to recompile at your next job?"

      3) I agree w/ the parent. It's just plain stupid to re-write some things when you have a perfectly good solution already written. Besides, if you write it over enough times, you'll remember how to write it... then you are ALWAYS carrying around code from job to job. You can't not take it.

    7. Re:Sure, Why Not? by Anonymous Coward · · Score: 2, Interesting

      > Because it's illegal?

      I do a lot of independent work, and I make sure that my contracts spell out the fact that I will be using and maintaining my own code library. Just don't sign an "All Your Base" contract if you don't intend on keeping it.

      Occassionally I get a client that doesn't like that arrangement, but then I get paid to rewrite boilerplate code, which is easy money.

      (OTOH, I have worked with guys who's "code library" consists of tons of (c) shithole.com stuff from their former employers.)

    8. Re:Sure, Why Not? by Anonymous Coward · · Score: 0
      Because it's illegal?


      Not necessarily. I always negotiate up front with an emplyoyer the fact that there will be some code I will that I own the copyright to.

      Seriously, though, would you really trust a person who completely relied on copy/pasting legacy code into current projects? Do you know where that person got the code to begin with? Did he write it? Does he even understand the code?


      Who said anything about cut and paste? It's more likely that the code library is just that, a library -- include files, functions calls and all that. You may have a point with regards to trust, but I don't see any distinction between using a personal library and a library from a third party.
    9. Re:Sure, Why Not? by stevesliva · · Score: 2, Interesting

      I once heard a lecture from some overpaid consultant type who talked about asking prospective devs to bring code samples to an interview. Anyone who brought copyrighted code from an ex-employer was given a lecture and shown the door. Pretty harsh, but perhaps a good screen if your highest priority is anal code-retentiveness.

      --
      Who do you get to be an expert to tell you something's not obvious? The least insightful person you can find? -J Roberts
    10. Re:Sure, why not? by Gumshoe · · Score: 1
      Unless you specifically sign an NDA or it's in your contract that you are not allowed to do this, I don't see what the problem is.


      That's not true. There's nothing stopping you from writing the code and putting it into the Public Domain. No problem with copyright ownership or licences and I find it hard to believe that any company would object to the use of Public Domain code. At least I've not encountered one yet.
    11. Re:Sure, Why Not? by Anonymous Coward · · Score: 0

      Good point -- my contracts also cover that I'll be keeping a reference copy of the sourcecode. (Didn't used to, but then I started getting asked to bring code examples to interviews.) However in that situation, they'd probably show me the door before I got a chance to explain.

    12. Re:Sure, Why Not? by mrtrumbe · · Score: 1
      Who said anything about cut and paste? It's more likely that the code library is just that, a library -- include files, functions calls and all that. You may have a point with regards to trust, but I don't see any distinction between using a personal library and a library from a third party.

      This is true. However, it has been my experience that those who are re-using code they don't own try to hide that fact as best they can. Therefore, they probably won't take a full library and release it into production with their current application. Rather, they would try to obfuscate the fact that the code was "stolen"/illegal by burying it in their own libraries and code.

      And this is where things start getting tricky. A good programmer with full knowledge of the "stolen" code would probably be able to do this well and have no negative effects. A mediocre programmer who doesn't fully understand the code might use a code snippet out of context in such a way as to introduce bugs.

      The quality of the copied code is also at issue. If it was a well designed object oriented library (highly decoupled classes, etc), you would likely be able to quite easily pull a few classes out of that library and use them quickly with a low probability of introducing bugs. If, however, the code was five monsterous c functions, this might not be so easy.

      When all is said and done, I'll trust those programmers who think about every problem and try to apply the most appropriate solution. They should be able to discuss and explain their solutions and why they fit the problem in the best/most cost effective way. After that, I trust them to do their job. In a team environment, quick copy and pastes or wholesale uses of improperly obtained libraries probably wouldn't fly anyway. At least not in my team...

      Taft

    13. Re:Sure, Why Not? by bgog · · Score: 1

      I think you are missing the point of a "code library." I would NEVER have a single line of prorietary code in a code library. A legal code library contains utility code such as hash-tables and macros for doing common things. I don't keep one myself but I see no issue with an engineer having a utility library of utility code that doesn't contain buisness logic.

      Frankly I think your proposal have referencing proprietary code is far more seedy than a guy who re-uses a decent hash table (common concept) that he wrote.

    14. Re:Sure, Why Not? by Anonymous Coward · · Score: 0
      Because it's illegal?



      only if you write it on your boss's time ... I have a library .... and a folder in my filing cabinet with letters from past employers where they agree to a free non-exclusive contract to use my software in their products

    15. Re:Sure, Why Not? by Anonymous Coward · · Score: 0
      And I don't see a problem with this behavior. Any person with a decent memory would remember their best ideas and features, anyway, so the illegality of this behavior is questionable.


      The non-disclosre agreement has a brain-wipe clause... doesn'it it?

    16. Re:Sure, Why Not? by dubious9 · · Score: 4, Insightful

      Which brings us upon an interesting question. Even if you didn't bring the same exact code, you're the same exact person. If you implement the code in the same way, if you have a good memory it could be almost verbatim. Same class/file name, variable etc.

      Is that illegal? To be legal can I never write a program with similar functionality? Or do I just have to do it in a different way? How different does it need to be to be legal?

      If you can defend reimplementing something very similar, then how different is that then copying the file exactly?

      I guess my point is that at some point a reimplementation by the same person for the same thing looks like you copied it exactly then changed things around.

      --
      Why, o why must the sky fall when I've learned to fly?
    17. Re:Sure, Why Not? by mrtrumbe · · Score: 1
      You are a noble man/woman.

      However, many (most?) programmers have a different definition of code library that goes something like: any code I have ever written. Or maybe: any code I come into contact with (ie. cvs co MyCompaniesMainCodeTree). This is unfortunately probably the most common definition of "code library."

      I agree with you that it shouldn't be done, but as long as people don't go around blatently copying old code they don't own into new products, I guess I just don't care. At least not for the projects I'm involved with.

      Taft

    18. Re:Sure, Why Not? by GlassHeart · · Score: 1
      I think programmers should share. We are, after all, computer scientists. What if every other scientist locked up all of their secrets

      Scientists regularly lock up their secrets. The chemists who developed Coca-Cola are still keeping its formula a secret. The nuclear bomb and rocket scientists also keep their secrets. Even in the basic sciences where money and lives are rarely at stake, it's prudent to keep your discoveries secret until you are ready to publish, because unscrupulous scientists routinely steal important discoveries and fame.

      It's just plain stupid to re-write some things when you have a perfectly good solution already written. Besides, if you write it over enough times, you'll remember how to write it... then you are ALWAYS carrying around code from job to job. You can't not take it.

      Depends on the solution. The obvious example is a patented solution you wrote for a previous company, which you clearly cannot take along (without proper license). Beyond that, there are solutions worth significant money whose secrecy you were contractually obligated to protect, even if you invented it. An implementation of binary search that you copied from a book anyway is probably not covered.

    19. Re:Sure, Why Not? by saden1 · · Score: 2, Interesting

      I take all my utility functions with me but I have never taken nor will I ever take any code that is at the core of the software product. I mean it is useless because the effert of having to re-engineer the code is more cumbersome than starting all over again.

      Why re-write email or zip utilities? Also, any process flow control code is fair game.

      --

      -----
      One is born into aristocracy, but mediocrity can only be achieved through hard work.
    20. Re:Sure, Why Not? by scotch · · Score: 2, Interesting
      Just because code is copyrighted, doesn't mean one isn't allowed to possess it or show it to others. These actions might have been expressly allowed by interviewee's former employer, or could possibly be covered under copyright fair use if not expressly prohibited by previous employer's NDA, contracts, etc.

      In short, if I ever meet that overpaid consultant type, I'll punch him in the throat.

      --
      XML causes global warming.
    21. Re:Sure, Why Not? by It'sYerMam · · Score: 2, Insightful
      unscrupulous scientists routinely steal important discoveries and fame.

      And therein lies the game. What should be happening is for scientists to be working together and cooperating to achieve a common goal, not competing and impeding one another for their own betterment.
      If your goal as a scientists is personal fame then you deserve no help whatsoever. If on the other hand you're trying to obtain the meaning of life for the people of the world's enjoyment, you should receive full cooperation.

      --
      im in ur .sig, writin ur memes.
    22. Re:Sure, Why Not? by jonathanduty · · Score: 1

      I always negotiate up front with an emplyoyer

      Yes, if you negotiate that up front and the employer agrees, then it is ok. But the employer is paying you for your time to develope THEIR (not your) product. If you have not negotiated that then you have no right to play high and mighty. That and the fact that you may be screwing yourself and your future clients in the future.

    23. Re:Sure, Why Not? by Kindaian · · Score: 2, Interesting

      Get real...

      Unless you are talking about direct hardware programming or strange math stuff (like crypto or 3D stuff), there is no such thing as propriatary code.

      What exists is a huge amount of plain code to produce a innovator software.

      When was the last time that you coded something where you can say: "i'm the first to code this in the world!".

    24. Re:Sure, Why Not? by Glug · · Score: 2, Insightful

      Because it's illegal?

      I would rephrase that to "Because employers place erroneous (and, alas, believed by the courts) claims of ownership on the code that programmers bring into a workplace in their heads and notebooks."

      This allows them to take the best features/ideas of their historical library and integrate those ideas in new and better ways...

      As you pointed out, taking features/ideas from their historical library and integrating them in new and better ways can be illegal.

      The problem is not that programmers sometimes reuse some of their own source code to avoid wasting time by having to reimplement some mundane algorithm, but that IP law does not recognize that the line between what code an employer owns and what an employee owns must fall somewhere outside of the employee's head rather than within it. You simply cannot own people's minds, humourous examples involving the current presidential administration notwithstanding.

    25. Re:Sure, Why Not? by Ryan+Amos · · Score: 1

      That's why a lot of tech companies had clauses in their contracts that said you could not work for another tech company for 2 years after leaving. I'm not sure how legal that is, but this has been a problem for a while. I personally think that people/companies are too proud of their code; the end result is what you're selling anyway. MAYBE something like cryptography or specialized applications (a la Google) requires "secret" algorithms, but in 90% of the stuff anyone around here ever sees, there's nothing so secret that you can't learn it from a published book.

    26. Re:Sure, Why Not? by forevermore · · Score: 3, Interesting
      Because it's illegal?

      Why is that? I make all of my clients aware (in the contract) that I have a code library, and will use it and add to it from the current project as I see fit, with a big exception for "private" code (specific to the project, which would belong to the client and not me). My code library is part of what they pay me for - it lets me get projects done in a fraction of the time than if I had to code everything from scratch. But then again, I do NOT consider private code as part of my library, even if I have a backup copy or two sitting around on my network.

      Seriously, though, would you really trust a person who completely relied on copy/pasting legacy code into current projects?

      Who's copying verbatim? Granted, I have some general utility routines (forking commands, javascript mouseover stuff) but most of my code library isn't generalized enough to do this, so I copy/paste where I can, and make modifications where needed (and then I debug it).

      --
      Do you really need reason for beer? Wingman Brewers
    27. Re:Sure, Why Not? by DJBigShow · · Score: 1

      What makes you think that someone who would copy/paste code without firsting determining if it's the best possible implementation or not, would actually spend the time to come up with the best possible implementation without a code library? That kind of engineer won't do it regardless of whether they have a code library at their disposal or not. I for one, have a code library that I share with other engineers. When we determine that what we have doesn't fit the best implementation possible of something, we modify the code library so that it does fit without changing existing APIs. This allows us to enhance our code library for future use, while rising the probability that we will have the best possible solution the next time around. As to whether it's illegal or not, I think that depends on your employment situation. In my situation for example, my employer knows that I have this code library, and that a few other engineers I share it with all contribute to it. Our employer also knows that we have every intention on taking this library with us when we leave. We do have this in writing, of course. You are probably wondering why the employer would agree to something like this? The advantage for the employer is that by allowing us to use the code library we brought with us -- which we wouldn't use unless the above agreement was made -- we are able to finish projects much quicker. Not only are we able to finish them much quicker, but the QA cycle of such projects are proven to be shorter. The reason is because the code in our library has already been proven time and time again in other projects. I don't know of an employer who doesn't want faster project deadlines, and shorter QA cycles while also gaining quality and flexability. -DJBS

    28. Re:Sure, Why Not? by torokun · · Score: 1

      Unfortunately, without compensation this is just communism. I think everyone should cooperate and build on each others' work, but compensate each other for the work they build on...

    29. Re:Sure, Why Not? by imbaczek · · Score: 1
      Because it's illegal?

      One good reason for lawyers to be illegal, too.

    30. Re:Sure, Why Not? by dgmartin98 · · Score: 3, Interesting

      Ya know, I had an interview where at the end of the interview, the manager told me there's one more thing he requires for this interview: He wanted to see code samples, design documents, or presentations that I previously wrote.

      I looked at him kinda funny, and hesitantly said something like, "Ummm.... ok... I'll have to check with my previous employer and ask for the files and their permission."

      Of course, my previous employer thought that request was odd, and didn't grant it. I emailed the interviewer my thesis and a conference publication instead (publicly available).

      My question is: Has anyone else ever encountered this in a technical field?

      I've heard of artists, writers, and photographers presenting their portfolio to new employers or clients, but I assume they actually own their own portfolio.

      --
      FPGA, Wireless, ASIC, Verilog, VHDL, HW, 10yr exp, Team Lead, Ottawa (More? Email above. slashdotusername=dgmartin98 )
    31. Re:Sure, Why Not? by Anonymous Coward · · Score: 1, Informative
      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.

    32. Re:Sure, Why Not? by AK+Marc · · Score: 1

      Seriously, though, would you really trust a person who completely relied on copy/pasting legacy code into current projects?

      I wouldn't trust anyone that "completely relied" on any one specific technique, excluding the consideration of all others. You are answering your own question in the question.

      Would you trust someone that spent hours evaluating all possible implementations of a sorting algorithm every time he needed to use a sort? I'd be happy with someone that had a few common algorithms on a disk with them and used them where appropriate.

    33. Re:Sure, Why Not? by BlackHawk-666 · · Score: 3, Interesting
      The part of my library I use most is the bread and butter stuff e.g. a template for accessing a database and calling a stored proc, etc. We've all done the code a thousand times, and we know how to do it, but using the template library saves having to type it all in again and possibly leave off 1 important feature. I don't feel in the least bad about this since I wrote all that code and know it backwards.

      OTOH, I also have a vast libary of various projects that I have worked on and use this to crib out solutions for current ones. I usually don't cut and paste from this since it is the form I am after, not the code.

      As for remembering it all...fuck me...can you really remember the 100s of thousands of API calls we all deal with now. I couldn't remember them all when it was just the Win32 API, let alone all the news ones - praise be to Intellisense!

      --
      All those moments will be lost in time, like tears in rain.
    34. Re:Sure, Why Not? by BlackHawk-666 · · Score: 1

      I had a guy come to interview and he offered to show us the code from his previous job. We showed him the door. At the interview stage this is a massive breach of confidence and shows disloyalty to the employer. I expect all of my developers to have a library of code, but I also expect them to be discreet with it. Why make them re-write all the standard routines over and over again when they can work from templates or crib from a previous project. That said, it is totally wrong to drop in a complete library developed elsewhere. Not wrong to peek at some tough routines they solved previously, but wrong to CTRL C V it into our code.

      --
      All those moments will be lost in time, like tears in rain.
    35. Re:Sure, Why Not? by BlackHawk-666 · · Score: 1

      Hmmm, I would have to really search hard to remember a time when I was the first to write something or pioneer and new technique. I think people in research jobs get a chance to do that but business is all just coding the same old crap over and over again. Maybe the actual app is something new, but it's usually made up of recycle parts and techniques. I do still write a lot of innovative stuff, but it's nothing that another programmer over the other side of the world hasn't also just done. Stepwise refinement is about all we seem to get these days.

      --
      All those moments will be lost in time, like tears in rain.
    36. Re:Sure, Why Not? by BlackHawk-666 · · Score: 1

      A mediocre programmer who doesn't fully understand the code might use a code snippet out of context in such a way as to introduce bugs.A mediocre coder could also do this without the help of a library/template routine. At least with a template he/she has a vastly improved chance of getting it better.

      --
      All those moments will be lost in time, like tears in rain.
    37. Re:Sure, Why Not? by revividus · · Score: 3, Insightful
      Reminds me of when John Fogerty (orig of CCR) was sued by his old record company b/c they said one of his songs sounded too much like CCR. A bit about that here I like the line "Critics had a field day contending that Fantasy was suing John Fogerty for sounding like John Fogerty"

      On another slant, all the Safari sites, like this one have, right beneath the search function on the left a box you can check to "Search for code fragments only".... Of course, these are published expressly for the purpose of educating, so there's nothing illegal about using snippets of code from technical books. I wonder how much actual production code contains code from O'Reilly (or insert other publisher) books in it?

    38. Re:Sure, Why Not? by BlackHawk-666 · · Score: 1
      They are working together for a common goal, the goal of the business they work for:

      Discover secret science stuff

      ?

      Profit!

      --
      All those moments will be lost in time, like tears in rain.
    39. Re:Sure, Why Not? by ConceptJunkie · · Score: 1

      My code library consists of everything I've written in the last 10 years or so. It very well could be everything from every company I've worked with, but with a few exceptions, none of that code would be worth having.

      I don't blatently copy old code from old projects and old jobs (by the way, what happens when a company ceases to exist), but usually it's along the lines of... "I've done this before... now how did I do that?... Oh, yeah" and move on.

      --
      You are in a maze of twisty little passages, all alike.
    40. Re:Sure, Why Not? by fupeg · · Score: 1
      We are, after all, computer scientists.
      Titles are generally overrated, but there is a difference between an "application developer", "software engineer", and "computer scientist." If nothing else, they can be differentiated by how easily they are replaced by somebody in India...
    41. Re:Sure, Why Not? by llefler · · Score: 1

      Why make them re-write all the standard routines over and over again when they can work from templates or crib from a previous project.

      A couple reasons. The most important to you is that you don't know what kind of contract they had with previous employers. Why take unnecessary risks. The libraries that they would link or copy/paste are most likely simple, repetitive routines that could easily be re-created.

      Another reason is that unless they are job hopping, in which case you probably don't want them anyway, their libraries have accumulated over years. And it would be a good time for them to take another look at them and see what can be improved with more advanced techniques and wisdom.

      If the library is significant, then so are the risks of using it. If it's not, then it's trivial to rewrite them. And chances are you already have many of the routines in your current libraries.

      --
      It is amazing what you can accomplish if you do not care who gets the credit. -- Harry Truman
    42. Re:Sure, Why Not? by Greg@UF · · Score: 2, Interesting

      I certainly ask to see code samples for prospective employees.

      You'd be amazed how many people out there only think that they can program.

      If I'm going to be paying someone good money for coding for me, I'm going to want to know that they're capable of doing the job. Cv's are no more than a general indicator, references and referees can be unreliable, and you sure can't believe what the job applicant says !

      So yeah, I need to look at code that they've written. I can see their commenting style, their variable naming style, general coding style, and even get a good idea of their competance.
      That only takes me 5 - 10 minutes.

      Yeah, I also look under the hood of any car I'm thinking of buying, too.

      --
      -- You can't give it, you can't even buy it, and you just don't get it!
    43. Re:Sure, Why Not? by williamhb · · Score: 2, Insightful

      Many corporately employed artists, writers, etc, do not own copyright on their portfolio, but it is accepted standard practice for them to show copies of work at job interviews. I have heard of it happening often amongst interviews for technical writers (where being able to write clearly about a technical topic is important), but seeing code samples from an applicant for a programming job is surely of limited value: Is the interviewer going to know the applicant's products that well that she/he is going to be able to see why particular design decisions were made? And by the time you take into account company coding standards, code reviews, and other people making maintenance changes to the code, how much of the formatting is an indication of that individual programmer's skills? More usual is to get asked a bunch of technical questions by an engineer sitting in on the interview and to get into a bit of a discussion that will also reveal if you have an understanding of the new company's field or not.

    44. Re:Sure, Why Not? by Tired+and+Emotional · · Score: 1
      If that happens, you don't want to work for such a set of lamers. You should say "thankyou very much for your time" and get out. Asking such a question is fundamentally unethical and you can be sure any such employer is going to fail to meet other legally mandated requirements, possibly as bad as failing to remit withheld income tax or to provide a safe non-toxic workplace.

      Now, having you sit down and write some code during the interview is perfectly acceptable and is going to tell an interviewer far more about you. I've done that lots of times.

      Its a good reason to contribute some of (your own, of course)code to open source. This has been a well recognized way of advertising your skills since at least the early 1970s.

      --
      Squirrel!
    45. Re:Sure, Why Not? by Anonymous Coward · · Score: 0

      Say it with me slowly:

      Cryptography never requires secret algorithms.

      Security by obscurity is no security at all.

    46. Re:Sure, Why Not? by Anonymous Coward · · Score: 3, Interesting

      Yes. I was being interviewed by a large, online brokerage house in San Fran. The manager wanted to see my programming from my previous job.

      I told them that the code in question involved priviledged information and was not available for review. I also didn't have a copy of it, and was 100% sure my previous employer would not give it to me.

      She got upset and kept pressing the issue. I tired to be reasonable and tell her I could write something tonight and send it in the next day if she needed to see my code quality. She refused and wanted to see production code. I tried explaining again that this was not something I had access to presently and that it frankly sounded a bit suspicious that she would want it. She kept at it. Finally I got up and told her that this job wasn't worth it.

      The HR person called me later that day to complain about my behavior at the interview. I told her what happened and why it was a problem, from both a legal and moral standpoint. Dead silence on the other end. I thanked her and hung up.

    47. Re:Sure, Why Not? by Anonymous Coward · · Score: 0

      Please tell me where you work, so I won't make the mistake of trying to get a job at such an unethical company.

    48. Re:Sure, Why Not? by Anonymous Coward · · Score: 1, Interesting

      I encountered a similar request, and when I told them that I had signed a non-disclosure agreement and could not show them code belonging to my former employer, they looked at me like I came from another planet. I'd speculate that idiot managers would be far more likely to be responsible for the illegal use of code than the majority of programmers. In today's economy, 'Do it or consider yourself fired' packs a lot of weight.

    49. Re:Sure, Why Not? by Mr.+Slippery · · Score: 1
      So yeah, I need to look at code that they've written.

      And they need to follow NDAs they've signed that prohibit them from keeping copies of code they've written for former employers, or risk getting crushed by lawyers. (Check the paperwork that your employees sign and see if they can show their next employer the stuff they right for you.) Catch 22.

      Now, I'm sure that many of them have some tar files of old projects lying around that they never got around to deleting, and might even look at them for a reminder about problems that they've seen before, skirting on the edge of "fair use". But to show it to you, and expose themselves to legal sanction, would be foolhardy.

      --
      Tom Swiss | the infamous tms | my blog
      You cannot wash away blood with blood
    50. Re:Sure, Why Not? by Sbev · · Score: 3, Funny

      Code samples are a joke... Who knows who really wrote the code.

      The point was driven into me when I was hiring several contractors for some positions. Standard company policy required developers to submit code samples. One day when I was reviewing candidates, I noticed a previous employee's name in the list. After I checked the code samples I almost fell on the floor.

      First he sent code that was written while he was working for the company, in direct violation of his signed severence agreement. The company's copyright was in the header of the first file I opened.

      Second, the code looked very familar. Reviewing the code closer, I realized I was actual developer who wrote the code. The code was for a project that he was never allowed to touch.

      In short... please don't go by code samples...

    51. Re:Sure, Why Not? by larry+bagina · · Score: 1

      Yet another reason open source rules.

      --
      Do you even lift?

      These aren't the 'roids you're looking for.

    52. Re:Sure, Why Not? by larry+bagina · · Score: 1

      I had one pre-interview where they asked half a dozen C-programming related questions. Simple stuff (write a recursive factorial subroutine, what is the assert macro and when should it be used, stuff like that). I guess it weeded out people that read the first 2 chapters of C for dummies or something, but most of the people the company hired had masters degrees or better.

      --
      Do you even lift?

      These aren't the 'roids you're looking for.

    53. Re:Sure, Why Not? by NotQuiteReal · · Score: 1
      Hey - I just cut-n-paste too!

      Cool, my C code works in C++ too!

      Damn, my C++ Code needs a little tweaking... there we go, now it's Java!

      Hey my Java code doesn't compile... That's got it, I just "re-wrote it" in C#!

      As a bonus; No two files ever diff - especially that pesky copyright comment block at the top! (although, the ones that say copyright ME, are fair-use ;-)

      [I had to abandon my FORTRAN, various assembler and Lisp code snippets. Of course, my Perl was Write-Only, from the start...]

      --
      This issue is a bit more complicated than you think.
    54. Re:Sure, Why Not? by fegu · · Score: 2, Insightful

      This problem is easy to solve. If the guy isn't interested or dedicated enough to have done even ONE small project for fun in his spare time, then we're simply not interested in hiring him. We require geeks. Geeks invariably have some opensource contributions, a half-done MP3 player, some cool IRC bot or similar to show. This is so because they think coding is, you know, fun.

      --
      "There is no substitute for thinking" - Bjarne Stroustrup
    55. Re:Sure, Why Not? by Quantum+Jim · · Score: 1
      Scientists regularly lock up their secrets.

      Indeed, that used to be the standard practice of scientists and mathematicians. Niccolo Tartaglia for example tried to keep secret an algorithm for determining cubic roots. Fortunately, his work was leaked to the world by Girolamo Cardano and eventually lead to the understanding of complex numbers. (Interesting factoid: Cardano was the illegitimate son of another mathematician, and his mother tried to abort him.) In another strange case, Robert Hook published his famous theory as a Latin Cryptogram: CEIIINOSSSTTUV! What kind of sick mind would think of that! :-) He determined the relationship that describes the behavior of simple harmonic oscillators.

      --
      It is impossible to enjoy idling thoroughly unless one has plenty of work to do.
      - Jerome Klapka Jerome
    56. Re:Sure, Why Not? by Anonymous Coward · · Score: 0

      "If you have not negotiated that then you have no right to play high and mighty."

      You have a serious attitude problem. Talk to me like that in real life and you'd be sitting on your arse.

    57. Re:Sure, Why Not? by Anonymous Coward · · Score: 0
      It might tell you more about the coding conventions followed at their employer, lots of places have naming and commenting standards to follow.
      And that's even if you can be sure that the applicant wrote the code in question, which you can't.
      In short, pointless.

      If you must you could come up with some tests/questions - i.e. ask the candidate for their coding conventions etc.

    58. Re:Sure, Why Not? by Greg@UF · · Score: 1

      There's nothing unethical about it.
      Unethical is saying you're a linux guru, when you're not. Unethical is saying you have years of coding in a particular language, when what you mean is, you did 2 weeks at school learning about it.

      Of the people I've asked to see code samples, one went back to his ex-employer, and was granted permission to show his code. I didn't get a copy, and didn't want a copy. 10 mins behind thesource code showed he didn't understand recursion.

      Several others gave me open-source samples or hobby code samples. Most of those didn't measure up either. Believe me, it doesn't take long looking at code to see whether a candidate knows their stuff or not. If the code is faked, or stolen from someone else, that doesn't take long to figure out either.

      I have never asked people to break an NDA, with the one exception above, where the guy offered to ask his previous employer, and got permission.

      The single biggest expense in a business is the employees. Of course I'm going to check out a candidate's puported skills. I'd ask to see a truck driver's current driver's license, too.

      --
      -- You can't give it, you can't even buy it, and you just don't get it!
    59. Re:Sure, Why Not? by Quince+alPillan · · Score: 1

      I've had this happen at the current job I'm at now.

      They wanted to look at my code to see what style I used, how many comments, variable names and such. It wasn't much of a problem since I had just graduated from school and just had to track down my zip disk with my homework on it.

      The biggest thing that they talked about was that I actually commented my code!

    60. Re:Sure, Why Not? by BlackHawk-666 · · Score: 2, Insightful
      This is pretty much spot on. The libraries I personally hold are getting quite old and new techniques should be investiated before using one of the templates. That's why I investigate the appropriate tech prior to starting a project and will write new template routines as required to stay fresh with modern innovations.

      As for using anything more significant than code snippets, I wouldn't do that. Standard libraries are available either freely (thanks GNU) or at a reasonable price in comparison to a project. I usually get a purchase order for any significant library which we will require to develop a project. For me, my library is all about saving keystrokes and reducing simple errors, rather than dropping in 10,000 lines of code that rightfully belongs to another company.

      --
      All those moments will be lost in time, like tears in rain.
    61. Re:Sure, Why Not? by jawahar · · Score: 1


      If you have an apple and I have an apple and we exchange apples then you and I will still each have one apple.
      But if you have an idea and I have an idea and we exchange these ideas, then each of us will have two ideas.

      George Bernard Shaw

    62. Re:Sure, Why Not? by cmanuh · · Score: 1

      so what if you get fired by the company? can they hold you to that agreement? if so will they pay you for the 2 years that you're not allowed to work for a tech company.

    63. Re:Sure, Why Not? by GlassHeart · · Score: 1

      Right. What have you done for the world, and why do you deserve the right to tell other people what they should be working for?

    64. Re:Sure, Why Not? by It'sYerMam · · Score: 1
      An opinion is a good thing to have.

      Socialism and democracy and working together are actually good things and make life better to live. I 'd be happy to have a debate about this - it's your turn to put a point forward :)

      --
      im in ur .sig, writin ur memes.
    65. Re:Sure, Why Not? by chochos · · Score: 1

      An important difference with artists, writers and photographers is that they usually publish their work, so it's not a big deal to carry around pictures of advertisements they've done for a previous employer. The employer doesn't own those, the client does. But they were created for everyone to see (in the case of publicity, logos, etc).
      Code, on the other hand, is usually treated as something secret. So the code you write while working for one company is usually inaccessible to you once you leave that company; there's usually a clause in your contract stating that all the code you write while working for said company is their property.
      Finally... I've been in the situation you mention too. I usually only talk about the general architecture of some application or system I worked on for a previous employer. People can tell if you know what you're talking about or not, better than if you show them code (which could have been written by someone else).
      If someone wants to look at your code, the best thing to do is give you a small test and have you write a small program right there.

    66. Re:Sure, Why Not? by Anonymous Coward · · Score: 0

      I'm with you here. For an artist and their portfolio, it's a similar situation. If they haven't done some art on their own free time, just experimental mockups or whatever, how did they ever become a competent artist that you would actually want to employ in a commercial setting?

      I think it's better to show off code you do in your free time, even if it isn't 100% perfect (what ever is?), because basically it's almost impossible to become a competent programmer without having, at some point, done something on your own time, which you own.

      Of course, as you become more adept, it's probably more likely that you'll spend more of your time doing commercial projects, so maybe your freely available code becomes outdated. I guess the only answer to that is to keep your hat in the ring, so to speak.

    67. Re:Sure, Why Not? by Anonymous Coward · · Score: 0

      One of the things I love most about programming on Unix-like platforms is that the API makes some semblence of sense. :) Win32 just could never be a sane API, because its evolution from Win16 and its cooperative multitasking roots. All this stuff about message passing and event loops and message pumps is just a PITA to deal with.

      Of course, not having to deal with a GUI when you don't want to is a nice bonus. If you had to program every Unix program with X, I imagine you'd have the same kvetching from developers about how many calls there are. The Xlib API is truly formidable.

    68. Re:Sure, Why Not? by GlassHeart · · Score: 1
      Socialism and democracy and working together are actually good things and make life better to live.

      They are also idealized systems. To take your previous assertion, how would you identify the scientists who are out for only personal fame (or fortune) before they have received it?

      The point I was trying to make was far too subtle, and the actual words I chose were far too confrontational. Mainly I fear a social system, as you proposed, where a moral opinion (majority or minority) is supreme. I would like to be judged by the merits of my work, where my motives are my own business.

  6. Do this survey, help SCO's lawyers by Anonymous Coward · · Score: 0

    I don't think so.

    1. Re:Do this survey, help SCO's lawyers by superpulpsicle · · Score: 1

      Only way to keep SCO lawyers away from you is keep your code private like M$.

      I am so surprised SCO lawyers didn't try to trademark "you are fired."

    2. Re:Do this survey, help SCO's lawyers by Anonymous Coward · · Score: 0

      Well Donald Trump is in the process of trademarking/copyrighting this phrase

    3. Re:Do this survey, help SCO's lawyers by Anonymous Coward · · Score: 0

      Heh, SCO is gonna sue DT for stealing their phrase if it ever worked out.

    4. Re:Do this survey, help SCO's lawyers by Anonymous Coward · · Score: 0

      Since I'm sure he is the first person to ever say this, afterall. How would this be possible?

    5. Re:Do this survey, help SCO's lawyers by los+furtive · · Score: 1

      Only way to keep SCO lawyers away from you is keep your code private like M$

      Wrong! Do you think IBM's AIX code is open? No, but they got dinged by SCO.

      So much for your theory.

      --

      I'm a writer, a poet, a genius, I know it. I don't buy software, I grow it.

    6. Re:Do this survey, help SCO's lawyers by Anonymous Coward · · Score: 0

      You, sir, are an ass. AIX hasn't been "dinged" by anyone.

  7. Yeah, sure.... by Anonymous Coward · · Score: 0

    "All answers will be anonymous."

    riiiiiigggggggghhhhhttttt...

  8. You’d be surprised how much of a career… by Anonymous Coward · · Score: 4, Interesting

    ...you can build on view source followed by a cut-and-paste. I beg, borrow, or steal from wherever I can and I expect you to do the same from me. I am open to learning new techniques, code structure, and excellent documentation from the code I read and steal. I have never taken a core money making idea and used it as the central core of my own money making idea, but everything else is fair game as far as I am concerned.

  9. Anti-business? by Anonymous Coward · · Score: 2, Insightful

    we're not doing this to sell reports etc.

    Not to troll, but why are so many people here opposed to business and money? The submitter probably knows (from experience) someone here will accuse him/her of greed in the first five posts if they didn't add that discaimer.

    1. Re:Anti-business? by Trespass · · Score: 1

      Assuming this was not a rhetorical question, but my guess is that this site (and Free Software in general) attracts a lot of idealists who tend to associate anything involving business and money with the corporate ogilopoly that most of us in the west have grown up under.

      Untree, but not an uncommon mistake.

    2. Re:Anti-business? by wcbarksdale · · Score: 1

      Not necessarily anti-business; a lot of people simply don't see the point in doing a business's research work for them for free.

    3. Re:Anti-business? by John+Courtland · · Score: 1

      Free of bias? Being paid for something sometimes forces a bias that is unacceptable in a study.

      --
      Slashdot is proof that Sturgeon's Law applies to mankind.
    4. Re:Anti-business? by Pieroxy · · Score: 1

      What kind of bias trying to sell you report afterward would force?

    5. Re:Anti-business? by schemanista · · Score: 1

      What kind of bias trying to sell you report afterward would force?

      Sorry Yoda, but what did you just say?

      --
      I saw that shot more than a few times back when Starbuck was a man. ~ lucabrasi999
    6. Re:Anti-business? by rjelks · · Score: 1

      OMG, schemanista, you owe me a new keyboard. I may be getting punching before lunch, but that one made me laugh out loud. I wish I had some mod points.

    7. Re:Anti-business? by Pieroxy · · Score: 1

      Dammit! Just one character missing and the whole sentence is just gone!

      What kind of bias trying to sell your report afterward would force?

      See? It all makes sense now! :-D

  10. Code library. by FictionPimp · · Score: 5, Interesting
    I maintain a code library. But its written very generic. I usually copy that code and use modify it to fit the project i'm working on. I dont see a problem with that because the code is technically different in each project and used in a different way. For example (this one is a little far fetched) Lets say I wrote a function to format a date. In 1 program I may use that function to only output as mm/dd/yyyy. In another program I may use that same function to only output mm/yy.

    Its technically the same code, but I remove the the parts that are not used.

    Besides, even if I didn't have the database. I will write a function to do something very close to the exact same way 90% of the time. Most of the developers I know have very reconizable styles. I can usually tell who on my team wrote what parts by the code alone.

    Sorry for my spelling errors, I dont have time to spellcheck.

    1. Re:Code library. by Karl+Cocknozzle · · Score: 1
      For example (this one is a little far fetched) Lets say I wrote a function to format a date. In 1 program I may use that function to only output as mm/dd/yyyy. In another program I may use that same function to only output mm/yy.

      I don't see that as farfetched. 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.
      --
      Who did what now?
    2. Re:Code library. by Anonymous Coward · · Score: 2, Interesting

      The difference is that code libraries are good engineering, while copy-n-paste code is just the sign of a hack.

      story: I got called in to this web project where the 'developers' copied tons of code and in most cases didn't even bother to change the name of the variables. So you got tons of spaghetti code that looked like this:

      var stolenVar1 = myVar1;
      var stolenVar2 = myVar2;
      var stolenVar3 = myVar3; /*
      copied code here
      */
      myVar1 = stolenVar1;
      myVar2 = stolenVar3; //!!

      The same blocks of code were copied several times, and of course they were completely buggy. Total bitch to fix.

    3. Re:Code library. by jtev · · Score: 1

      That's why good programers write their code as self contained functions and do as little as posible in line. And only steal from other good programers, or rewrite interesting hacks with good style. Of course then you run into dependancy hell, but realy only in languages that support linking. In non-linked langues like javascript, everything is included in the page anyway.

      --
      That which is done from love exists beyond good and evil
    4. Re:Code library. by nuser · · Score: 1

      I think the dates example is good. If you have a package (Oracle) that does various date manipulations I don't see the harm in taking a copy with you. There are only so many ways to calculate working days, transform year/week/day (from a mainframe), calculate start date to meet a deadline and so on. It's not hard, just tedious, to re-write so why bother? OTOH if I was working on software that was to be sold then maybe that would be a different matter..

    5. Re:Code library. by mr3038 · · Score: 2, Informative
      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 is following ISO 8601 standard, which says that you should use YYYY-MM-DD instead. The ISO 8601 time format is also recommended by W3C.

      --
      _________________________
      Spelling and grammar mistakes left as an exercise for the reader.
    6. Re:Code library. by g-san · · Score: 1

      Regarding your comment, there is another approach which is to see if the modification to the original function is useful and there is potential for more without breaking it's "genericalness". With one more argument to the function you can expand it so it's useful the next time around with less or no modification.

      Regarding the article, I haven't taken code from one place to another cause they never use the same language. :) But that does tend to show you the strengths and weaknesses of different languages for different tasks.

    7. Re:Code library. by Karl+Cocknozzle · · Score: 1
      Actually, most of the world is following ISO 8601 standard, which says that you should use YYYY-MM-DD instead. The ISO 8601 time format is also recommended by W3C.

      I was just referring to writing dates commonly... Not about programming or computers. However, even though the format they use on the PC is different than the way they write, the point is still valid: If you have a good date conversion routine, hold onto a copy. It will probably come into play again in your future at some point.
      --
      Who did what now?
  11. Code libraries aren't that helpful by Future+Man+3000 · · Score: 4, Interesting
    For the most part, when you go into a new job you're maintaining or cleaning somebody else's work. A library of programming and style books is probably worth more than a code library.

    Besides, the parts of a code library that are most likely to be reusable are also most likely to be publically known algorithms (B-Tree, MD5 hash, etc.) and therefore published in some form already. It's probably wrong to take something that you were specifically paid to produce for one company along with you to another, so don't do it.

    --

    I never vote for anyone. I always vote against.
    -- W.C. Fields

  12. Re:You’d be surprised how much of a career by Anonymous Coward · · Score: 0

    Well said, Mr. McBride!

  13. Question 6 by Anonymous Coward · · Score: 5, Insightful

    Is unreasonable. You are assuming I would reuse code but not saying if its in house or between companies. In my stats class this question would be deemed unethical and slanted. Thus, the results of the survey would be thrown out.

    1. Re:Question 6 by The+Snowman · · Score: 1

      Is unreasonable. You are assuming I would reuse code but not saying if its in house or between companies. In my stats class this question would be deemed unethical and slanted. Thus, the results of the survey would be thrown out.

      My Probability and Statistics professor, with two PhDs (one in statistics), went on a tirade one class about surveys, especially anonymous online surveys. He said that you must carefully choose who answers the survey so it is an accurate representation of the population. He said that online surveys make no differentiation about who answers, and this can cause an unseen bias in the data. He does not trust surveys like this, even if thousands of people respond.

      That class was cool. I earned a B, but I got an A thanks to tests with 150 points and only 100 of them count. I love 50% extra credit!

      --
      24 beers in a case, 24 hours in a day. Coincidence? I think not!
    2. Re:Question 6 by Anonymous Coward · · Score: 0

      Actually, question 6 is biased because it only gives 2 options for answers, and both of them are affirmative in nature. One says you'd copy if no one knows, the other says you'd copy even if someone knows. But there isn't a NO answer to select.

    3. Re:Question 6 by Bozdune · · Score: 1

      You think Question 6 is unanswerable, later on it gets worse, and it ends up twisting you into categories where you don't belong. I had no choice but to bail before finishing. I claim the results will be uninterpretable.

      Good survey design is difficult. Very difficult.

    4. Re:Question 6 by Anonymous Coward · · Score: 0

      I bailed because the entire survey also doesn't differentiate between code developed for your employer and code developed in your spare time.

      I know for a fact that where I live, I have ownership of any code I write in my spare time (not related to work projects, of course), and am free to license it as I see fit, including contributing it to open source projects and/or work projects for my current or future employers.

  14. Kind of a stupid survey. by Queuetue · · Score: 5, Insightful

    It asks

    3. By law, who do you think owns the rights in a piece of software that you develop or in code that you write?

    Me
    My employer
    The client who commissioned and is paying for the development

    But never asks where I developed it, nor what legal documents exist to protect various parties.

    Obviously, if I'm working on code under a work for hire agreement, it belongs to the guy with the cash. If not, It's copyright me. If it's OSS code that I need to improve for a client's benefit, of course it doesn't belong to either of us - it belongs to the original author.

    Did I do it at home? Did I start it before or after getting involved with the company or client? Does the client mind freeing the source? Does it contain proprietary information?

    This survey is worthless so far, except to publish articles.

    1. Re:Kind of a stupid survey. by Bob(TM) · · Score: 2, Interesting

      I agree - that was a question similar to "have you stopped beating your wife?"

      I worked for a contracting company that 1) wrote and marketed its own software, 2) developed software at the request and for other companies, and 3) developed software for its own use to accomplish work tasks for other companies. Depending on the nature of work, either the client owned it (also, we contracted with the Federal gov - which, by law, requires software developed by them to pass in the public domain) or the company retained ownership. Also, the terms of my employment agreement stipulated (at my insistance) that software I develop not directly related to accomplishing a specific project function is mine.

      So ... where is the "ALL OF THE ABOVE" selection?

      --

      The little guy just ain't getting it, is he?
    2. Re:Kind of a stupid survey. by Anonymous Coward · · Score: 0

      Is it just me or does it seem that the survey is bias towards making developers look like they are unlawful?

      The results of this survey are going to be in favor of the SCO supporters. I dont think its common that programmers take chunks of code to other employers.

      this is a terrible survey! I hope its a joke.

    3. Re:Kind of a stupid survey. by gooser23 · · Score: 1

      Logically, the correct answer is always (or nearly-always) 3. "The client who commissioned and is paying for the development".

      If you're an employee, then the client is your employeer.
      If you're contract, then the client is... erm... the client.
      If you're doing it for yourself, the then client is you.
      If its for GPL'ed (or similar) code, then the client is the license.

      I guess for those last two clients aren't paying in cash, and therein lies the problem with the question.

      --
      "Dying tickles!" -- Ralph Wiggum
    4. Re:Kind of a stupid survey. by eddy+the+lip · · Score: 5, Interesting

      I'm pretty sure that this is what you meant, but just to clarify (under US law at least - it's the same in Canada, but I couldn't find a reference quickly) - if you're an independent contractor, the copyright only belongs to the guy with the cash if it's explicitly stated in the contract that this is a work for hire.

      Only certain kinds of work actually qualify as a "work for hire" under the copyright statute. For example, it is a common misconception that software qualifies as a work for hire. It is not, however, one of the enumerated categories of works that qualifies as a work for hire in the copyright statute.
      Source

      When freelancing, or representing my company, I never assign the copyright to the buyer, unless:

      • they understand that all code used will be written from scratch,
      • that this will dramatically increase the development time of the project
      • that $x is the price if it's not a work for hire, and that $x + $bignum is the price if it is.

      Part of what people get when they hire me or my company is a big-ass code library. It's impossible to be competitive these days without that. I'm not about to assign any part of that to someone else, and I'm not going to be giving them copyright on anything I might develop for them without appropriate compensation.

      As for the survey, yeah, most of the questions were maddeningly vague. They didn't include most of the copyright situations I've been faced with, including the one where I had an employee contract stating that they could use anything I wrote for them as they saw fit, and so could I.

      --

      This is the voice of World Control. I bring you Peace.

    5. Re:Kind of a stupid survey. by UCRowerG · · Score: 1, Insightful
      Is it just me or does it seem that the survey is bias towards making developers look like they are unlawful?

      Exactly. Question #6 doesn't even have a "mu" option:

      6. Would you re-use blocks of code written elsewhere

      * Only if you were confident that nobody would find out

      * Whether it would be found out or not

      What if I already answered "I don't re-use code (that I don't own)"?

    6. Re:Kind of a stupid survey. by Queuetue · · Score: 1

      Wow, it sounds like we share a desk. :)

      Glad to hear I'm not alone - I was starting to worry I was, based on this dumb survey.

    7. Re:Kind of a stupid survey. by civilizedINTENSITY · · Score: 3, Insightful

      When you improve or extend GPL-ed code, don't you then own the changes you made? Wouldn't you and the orignal author then have copyright interests in your derived work?

    8. Re:Kind of a stupid survey. by Queuetue · · Score: 3, Informative

      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.

    9. Re:Kind of a stupid survey. by eddy+the+lip · · Score: 2, Informative

      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)

      --

      This is the voice of World Control. I bring you Peace.

    10. Re:Kind of a stupid survey. by Anonymous Coward · · Score: 0

      I'm not about to assign any part of that to someone else, and I'm not going to be giving them copyright on anything I might develop for them without appropriate compensation

      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?

      Me -- I usually just give 'em the code from my library. A very large percentange of my clients have a strong desire to own all the code (because they have their own "take over the world" plans), and a strong desire not to enter legal negotiations with their hired hands. I make up for it in added value and being able to focus my talents on actually interesting problems.

    11. Re:Kind of a stupid survey. by akajerry · · Score: 2, Insightful

      > If it's OSS code that I need to improve for a
      > client's benefit, of course it doesn't belong
      > to either of us - it belongs to the original author.

      Actually if doesn't matter if you're improving OSS code or writing from scratch, the code still belongs to the client. However if the original OSS code is used under a copyleft license like GPL the owner of the modifications is required to also release the modifications under the same copyleft license.

      The distinction is that the original author of the unmodified OSS code cannot turn around and incorporate your modification into his/her codebase and license it to someone else under different terms.

      Also, the GPL does not actually require you to release your modifications, it just restricts you from releasing the modification under any other terms than the GPL. I.e. you can keep the modification to your self or release them under GPL, but you cannot sell them.

    12. Re:Kind of a stupid survey. by Anonymous Coward · · Score: 0

      "Stupid survey" are kind words.

      To be clear, taking code, even for reference, from your employer is stealing. That is no different than working on the latest automotive technology and taking the blueprints with you to the next auto company, "for reference" or to "avoid reinventing the wheel" (pardon the pun!). So the survey is basically asking people are you cheating, stealing, and lying?
      And if its an online survey, it aint anonymous. They will find out, just a matter of how much its worth.

    13. Re:Kind of a stupid survey. by Anonymous Coward · · Score: 2, Insightful

      If your contributions are small enough then they can be 'fair used' away by the original author and they retain copyright. However as your contributions grow then yes you do retain ownership of them.

    14. Re:Kind of a stupid survey. by eddy+the+lip · · Score: 1
      > Wow, it sounds like we share a desk. :)

      Then would you kindly get your TCL manuals off of it? ;)

      Seriously, though, I'm amazed how few fellow coders think about this. I mean, it's either your career or (for many in open source) idealogy. It's important stuff. And I wish more would think about it. I've had clients that were honestly surprised that they didn't get the full IP because "that's how the last guy did it." And for small clients, IP is the last thing you want to bring up during contract negotiations. They don't want to have to think about it, and it's awful easy for them to get cold feet at that point. I know that might sound kind of sneaky, but after losing a few contracts for no other reason, you find yourself adapting. Ah, well...capitalism. Love it or starve. *

      * Not to be mistaken for an endorsement of our econimic system. I just live here.

      --

      This is the voice of World Control. I bring you Peace.

    15. Re:Kind of a stupid survey. by eddy+the+lip · · Score: 2, Informative
      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.

      --

      This is the voice of World Control. I bring you Peace.

    16. Re:Kind of a stupid survey. by Rick+and+Roll · · Score: 1
      If your contributions are small enough then they can be 'fair used' away by the original author and they retain copyright. However as your contributions grow then yes you do retain ownership of them.

      That is correct, I believe, and very succinctly written. Too bad you're an AC and I have no mod points. The only thing most people see is the other answer on the thread, the wrong answer. Hopefully this will draw attention to the right answer.

      I personally prefer BSD-style licenses. But I am not anti-GPL and would be happy to contribute to GPL projects, such as Linux. And I get sick of hearing all these myths about the GPL.

    17. Re:Kind of a stupid survey. by mark-t · · Score: 1
      It doesn't matter wheere you developed it.

      If you developed it at home on your own time, then technically it was _YOU_ that commissioned the project, and is _YOU_ that is paying for it (with your time), so you're safe with answer c regardless.

    18. Re:Kind of a stupid survey. by mark-t · · Score: 1
      A license is not a client.

      When you develop GPL code, it is *YOU* that holds the copyright on it... not the GPL. The GPL is just the terms of the copyright and has nothing to do with who owns the code.

    19. Re:Kind of a stupid survey. by Error27 · · Score: 1

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

      Legally you do, if the diff is copyrightable. It's always safest to assume that it is.

      >> I generally just turn over copyright to the owner, so it does not come up,

      By definition if you signed a copyright transfer then it came up. Your statement is self contradictory.

    20. Re:Kind of a stupid survey. by Lord+Grey · · Score: 1
      We do this a little differently, but entirely aware of the copyright/IP laws.

      Basically, we also maintain a large code library (some of which is posted as freely-available libraries from our web site) that gets reused for almost every project. We require our customers to sign a contract that specifies the following:

      • We do strictly Work For Hire work. The final product is owned by the customer.
      • We will use freely-available source code, libraries, utilities, etc. to complete the project, including our own code, and the customer does not have any ownership of that 'shared code' beyond whatever the license indicates.
      • Unless expressly prohibited, we opt to include useful functions/libraries written for the project in our own code library and make it freely available. The customer pays extra if this is denied.
      In the end, the customer is happy that they now "own" the thing they paid for, they're happy that they can go elsewhere to have it maintained if needed, and they're happy that we're not going to come back and hit them up over IP issues.

      And there is another interesting side-effect: Sales tax doesn't apply to Work For Hire work.

      --
      // Beyond Here Lie Dragons
    21. Re:Kind of a stupid survey. by Anonymous Coward · · Score: 0

      > if you explicitly sign over the rights to the code, they can come after you if you ever re-use it.

      Well, I mentioned this above -- I have a contract which says "you own everything, but I still own and will be maintaining my code library" -- probably not 100% legally airtight, but the intent is clear.

      I'm usually very upfront about my library, because I've worked for so many folks with dotcom $$$s in their eyes, and I've seen realworld legal problems from sketchy code libraries. It's never been a problem -- if they don't want to sign it, it's going to cost them $ to reimpliment.

      > you mean you just use your code and never discuss IP with them, it's still yours.

      And that's the problem. They don't have legal rights to copy/sell it. And it runs counter to almost every employment contract/statement of work. Which puts you in the position to get sued if they ever have their codebase audited (such as before selling it).

    22. Re:Kind of a stupid survey. by eddy+the+lip · · Score: 1
      Well, I mentioned this above -- I have a contract which says "you own everything, but I still own and will be maintaining my code library" -- probably not 100% legally airtight, but the intent is clear.
      Ah, sorry, I missed that part. This is basically what we do in the cases where it comes up. To your second point, if it is an issue in the contract/SOW, then we do present them with the above option. They're nearly always ok with this - and if not, it'll cost 'em to re-implement.

      It depends a lot on the client...we've done work for the dot-com types (amazing how many people still think the web is a get-rich-quick scheme). Those involve big nasty lawyer contracts, and there's always clauses about IP in them. These projects always fall into the "less-fun" category.

      We also do work for individuals, small businesses, NPOs. People whose eyes glaze over when you start using phrases like "code library." None of these have yet fallen into the development-for-resale category, and if they did, that would require a different approach. Basically, if there's nothing contradictory in any agreements with them, we're still covered and it's one less thing to haggle about.

      --

      This is the voice of World Control. I bring you Peace.

    23. Re:Kind of a stupid survey. by eddy+the+lip · · Score: 1

      That's an interesting approach. I'm in the big, white, cold country north of you, so the sales tax thing doesn't apply, but code ownership could be a selling point. I have considered putting our library code under GPL/BSD/etc.for karma and ease-of-licensing issues. The main reason we haven't is because half of our clients go glassy eyed when you start talking about IP, and the other half require big lawyer contracts that deal with IP anyway.

      However, your approach might be the ticket to putting the idea across in an accessible way. Food for thought - thanks...

      --

      This is the voice of World Control. I bring you Peace.

    24. Re:Kind of a stupid survey. by shaitand · · Score: 2, Informative

      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.

  15. grep \brief\backup\*.c* by Anonymous Coward · · Score: 0, Interesting

    After fifteen years of C/C++ coding, I'm pretty sure the answer to life, the universe, and everything is in there somewhere.

    1. Re:grep \brief\backup\*.c* by Hirsto · · Score: 1

      The answer is 42. Now what was the question?

  16. most definately by convolvatron · · Score: 1

    its in many products. and since the IP history is so insanely tainted, no one can really complain, because they themselves aren't really allowed to use it.

    there are other ways to subvert the nonsense..feed it back on itself

  17. Choice? by sploxx · · Score: 5, Interesting

    Emmm. Just got this question in the survey:

    6. Would you re-use blocks of code written elsewhere

    a) ( ) Only if you were confident that nobody would find out

    b) ( ) Whether it would be found out or not

    Where is 'c) I won't'?

    1. Re:Choice? by woodhouse · · Score: 2, Insightful

      Wow, this survey will produce helpful results. For some reason I'm guessing it'll conclude that 100% of programmers would copy code. Genius.

    2. Re:Choice? by SpaceBadger · · Score: 1

      You don't have to answer Q6 (no asterisk). Question 10 is the worst one - you have to answer even though the question is loaded.

    3. Re:Choice? by bolverk · · Score: 3, Insightful

      How about c) If the license permitted it? I've written code for employers under the GPL and the BSD licenses. (My current project is to work on BSD-licensed code). I've even worked under contract where part of the terms were my retaining copyright on the code I wrote. Of course, I'd re-use any of this code in a heartbeat. Just yesterday, I got special permission to use code I wrote on contract three years ago. I'll re-use that code too. This is an extremely poor survey. I can't answer honestly with this survey since there is no option for me to do so.

    4. Re:Choice? by sbrown123 · · Score: 1

      I had the same problem. I stopped doing the survey right there. This appears to me to be a trick question to always get the desired result. Its like asking a question like:

      Q) Do you enjoy killing people?

      A) Yes
      b) Some of the time
      C) never

      No matter how you answer it you can only guage that you have had some experience here (killing people) that would allow you to pick the answer.

    5. Re:Choice? by Hobbex · · Score: 1

      Also:

      10. How much code would you take from the source of a single program without permission?
      Blocks of code comprising up to 5% of the program
      Blocks of code comprising up to 10% of the program
      Blocks of code comprising up to 25% of the program
      Blocks of code comprising up to 50% of the program
      Blocks of code comprising more than 50% of the program


      Where is I wouldn't copy a single line without permission? (I would be nuts to, if everything you write is open source, you can loose the entire program that way!)

    6. Re:Choice? by R_Growler · · Score: 1

      Yes, This one struck me as well.

      And I had to write something to that effect at the end.
      I don't know if it is just me, but the entire survey felt.. Leading somehow. Like I was led in one direction.

      But then again, I'm a Sysadmin. I'm paranoid, bitter and evil by definition.

      R.G.

    7. Re:Choice? by cpmte · · Score: 1

      Don't check either one

    8. Re:Choice? by Coneasfast · · Score: 1

      I think it's a grammatical error, b) should be:

      "No, Whether it would be found out or not"

      --
      Marge, get me your address book, 4 beers, and my conversation hat.
    9. Re:Choice? by Anonymous Coward · · Score: 0

      Well, 0% is "up to" 5% ... it's just that you're not actually taking any ...

      I do wish that they would use better methodology here, however!

      I fear that this will be for some article on SCO-like business practices, and it may well come (via the bad methodology) to an unreasonable conclusion... :/

      I fear that I may already see where it is going and I do not like it at all.

    10. Re:Choice? by Ben+Hutchings · · Score: 2, Interesting

      d) Only with permission

      I've worked on Boehm's garbage collector at two employers, with their blessing. The changes I contributed back while at Roundpoint, are also usable in the code I'm working on at Business Web Software. A former colleague at Roundpoint also sent me some incomplete changes I made there that hadn't yet been contributed back. Since my managers had a clue about FLOSS, this reuse was all perfectly OK with them.

    11. Re:Choice? by sploxx · · Score: 1

      Hehe.. yes. And it's even better. You'd be giving the right answer by selecting anything on that page. The ones who would use the 5% answer are a subset of the ones for the 10% choice and so on. So, this question is somewhat pointless.

      I wrote these two complaints into their feedback box.

    12. Re:Choice? by MindStalker · · Score: 1

      Note, it doesn't ask you the question if your answer for number 9 indicated you wouldn't take code.

    13. Re:Choice? by Anonymous Coward · · Score: 0

      You can choose not to answer those questions, and then moan in the comments section.

    14. Re:Choice? by Anonymous Coward · · Score: 0

      In order for something to be copyrighted, it has to embody a creative work of some sort. So, 1 line probably doesn't cut it.

      So, stuff that is autogenerated by IDEs or just simple wrappers around other libraries probably isn't enough to meet the test either.

    15. Re:Choice? by FuzzyBad-Mofo · · Score: 0, Redundant

      Ah, the age-old question that presumes facts which are not in evidence, or as I like to call it, the "Have you stopped beating your wife?" question.

    16. Re:Choice? by eddy+the+lip · · Score: 1

      I'm going to be maddeningly self-referential here, but I think you're assuming that you're giving away more than you are. If you're writing code as a contractor (I'm being a bit of geo-bigot here and assuming that you're in north america - don't know enough about anyone else's copyright laws), the copyright is yours, unless your contract states otherwise. If you're an employee, then, yes, it is the company's unless you have an agreement otherwise.

      --

      This is the voice of World Control. I bring you Peace.

    17. Re:Choice? by jc42 · · Score: 1

      Where is I wouldn't copy a single line without permission?

      Well, I've often copied single lines of copyrighted programs without permission. Here's a famous example from which I've often plagiarized a single line. I mean that single non-comment line in the middle, of course, since that's what AT&T's copyright obviously covers.

      I posted this example to several newsgroup discussions back in the 1980's, and publicly challenged AT&T's lawyers to charge me with copyright infringement. I and lots of others have wished they had done so. It would have made for a fun court case.

      This is a useful example to keep on hand for when people are overly doctrinaire about "not a single line". There are some things that just can't be owned, no matter how much your company's lawyers would like to own them.

      I also routinely copy lines like "/*" and "*/" and even "}".

      This may not be as trivial observation as it appears, because we've had a number of suggestions that SCO's claimed infringement line counts can easily be explained by counting the lines like these in the linux source.

      There's a lot of absurdity in this whole issue.

      --
      Those who do study history are doomed to stand helplessly by while everyone else repeats it.
    18. Re:Choice? by Curunir_wolf · · Score: 1
      6. Would you re-use blocks of code written elsewhere
      a) ( ) Only if you were confident that nobody would find out
      b) ( ) Whether it would be found out or not

      Kind of like:

      7. Would you beat your children:
      a) Only if I knew they wouldn't tell.
      b) Even if I thought they would tell someone.

      hmph! Sounds like the author already has a story and a conclusion, and just needs to gather a few numbers to justify the pre-determined results.

      --
      "Somebody has to do something. It's just incredibly pathetic it has to be us."
      --- Jerry Garcia
    19. Re:Choice? by kryzx · · Score: 1

      Thank you for participating. This absolutely original and entertaining exercise has been brought to you by the creative litigators of SCO. "Why work when you can sue?"

      ......

      "Your honor, as you can clearly see, our scientific research has proven that 100% of programmers copy code. Linux was developed by these 'programmers', ergo, the 'programmers' copied code when creating Linux. QED. Show me the money."

      --
      "I don't know half of you half as well as I should like, and I like less than half of you half as well as you deserve."
    20. Re:Choice? by Anonymous Coward · · Score: 0

      Kind of like the old grade-school survey:

      Do you:

      a) sing while you masturbate in the shower
      b) keep quiet while masturbating in the shower?

    21. Re:Choice? by shaitand · · Score: 1

      The next question is worse. That question isn't so bad if they defined elsewhere. That could be simply asking if I'd use code I wrote on my laptop in the middle of the night when a crazy idea popped into my head. And doesn't cover what license said code is under so I'd assume it means broadly any code written anywhere other than your chair at work which is covered under any license.

      The next question (or maybe a couple questions further) asked how much code written by someone else you would use without permission. The minimum option is 5%

  18. If Darl was Japanese by Anonymous Coward · · Score: 0

    "All your OS are belong to us" - D.M.

  19. Re:You’d be surprised how much of a career by Anonymous Coward · · Score: 2, Insightful

    Sounds like you don't really understand much of the code you put out . . . I just hope you're not "writing" anything critical.

  20. Underground Economy by stand · · Score: 1

    Every collection of people has its underground economies. They often perform an important function so long as:

    1. The consumers don't abuse the system
    2. busybodies don't start poking around and trying to hold people accountable for what everybody is doing.
    Balance the two and nobody really gets hurt.
    --
    Four fifths of all our troubles in this life would disappear if we would just sit down and keep still. -C. Coolidge
    1. Re:Underground Economy by Anonymous Coward · · Score: 0

      Unfortuanaly all american business culture knows is "Mine, Mine, Mine!", and "Me, Me, Me!".

      Seeing as it is a culture, it perpetuates itself, and feeds back onto itself, and will continue to do so until something dramatic breaks the cycle.

  21. Website Development by Laebshade · · Score: 0

    On a personal level, I use code I've written on multiple websites, such as a simple popup script for images, though I'm sure this isn't what this article is asking, and probably isn't talking about interpreted languages, either.

  22. bad questions by Sharth · · Score: 4, Interesting

    Alot of these questions are very badly written. First off, I'm wandering through it, and I'm wondering if this question is referring to code that I have written, or is it code that I've just found along the way. This "survey" really needed to be beta tested (even in an irc forum or something) before being posted to slashdot. Heck, the mods coulda helped out a little and looked at the survey first...

    1. Re:bad questions by CanSpice · · Score: 2, Insightful

      To risk using a Slashdot cliche, you're new here, aren't you? Thinking that the mods are going to do anything is rather naive around here. Most of the time they can't even be bothered to spell or grammar check submissions, and now you're expecting them to edit another person's survey?

    2. Re:bad questions by Sharth · · Score: 1

      nah, never really expect them to read much, but heck, I thought that they might be interested in the survey so there was more of a chance of them going through it. One in a million chance :)

  23. Sure, why not? by PlatinumInitiate · · Score: 3, Insightful

    Unless you specifically sign an NDA or it's in your contract that you are not allowed to do this, I don't see what the problem is. Writing everything from scratch every time you go onto a new project at a new company when you have code snippets that could be used would be ridiculous - it would be a waste of time and money for your employer. On the other hand, taking work that was done by you (and probably other programmers) and using it at another employer is certainly underhanded, especially if you've signed an NDA stating that you will not do it. If you haven't signed an NDA, check your contract. If nothing about code is mentioned, you are probably safe. Even a lot of "intellectual property" paragraphs can be invalid - people falsely assume that if the y have "intellectual property" protection, they are safe. Actually, the terms have to be very verbose and descriptive, incorporating either copyright rules or patent rules. A lot of NDA contracts that I've seen from prospective employees from their former companies (in the gaming arena, where NDAs are almost universal) were invalid!

  24. Game Creation by PaloDeQueso · · Score: 2, Insightful

    Let's take a look at the game industry, the same code is often used over and over, or at least the same algorithms because you can't afford to loose efficiency in your engine. Especially with modern game engines where the best cards on the market still choke... FarCry? Doom3?. Sharing of code in games is not required, but as an earlier post said, why reinvent the wheel?

  25. Just to be safe... by tallpole · · Score: 3, Insightful

    ... I make sure that I write in a different programming language every time I change jobs.

    Sriously though, the problem with coding, is that it is still more of an art than a science, and therefore the endproduct tends to reflect the style of the developers. It creates legal issues, but it's like asking Da Vinci to paint in a different style for a patron, "because we don't want those Sistine fellas complaining on infringement of copyright"- Ridiculous yes, but very real (IMHO).

    1. Re:Just to be safe... by Anonymous Coward · · Score: 0

      Its only more an art than a science because it is not treated as an engineering field.

      Many of the programmers are undereducated. They do not know what hardware is capable of doing, and how the compiler translates the code to assembly/binary code. Many things are treated as black art mearly because they lack significat amounts of documentation, or the programmer does not feel the need to understand something since they do not have to touch it directly.

      Further, many managers who do not know what is involved in actully producting a product. In any other engineering profession an ENGINEER would be consulted before taking on a project. There would not be insane delivery dates promised, and the client would impose stiff penalties in the contract for failure to deliver.

      It does not help that many of these colleges/universites that are producting these twit manager types are also now delivering these twit programmer types. If you have ever taken an engineering class at an university and a computer science class at an university you will notice that for the most part the engineering professors have actual on job experience delivering products wheres many of the computer science professors are detatched academics that have no idea how to resonablly deliver a product.

    2. Re:Just to be safe... by Anonymous Coward · · Score: 0

      Coding is really only an art to inexperienced programmers. If you do it long enough to become one of the few who "truly get it", you'll realize that you're really nothing more than a drone (highly specialized perhaps, but still a drone), and the code you write is a commodity just like any other product.

      This realization is one component of what keeps the accessible field of computer programmers relatively newbie-ish. Most of those who make this realization end up doing something else for a living, and those who have not yet made it are generally considered to be wet under the ears.

      Now back to the topic, I personally keep a full, working copy of nearly every single piece of software I write, regardless of where it came from. I would never use an entire application I wrote for someone while in their employ for personal gain, however I don't so much as flinch at using generalized components from those applications in new projects. I'll generally reuse anything that I don't consider to be proprietary information which could unfairly give one company an edge over its competition.

    3. Re:Just to be safe... by Javagator · · Score: 1

      In the old days, a king who didn't want an artist to "infringe his copyright" would have the artist's eyes put out.

  26. I get paid hourly by BillFarber · · Score: 5, Funny

    Why would I keep a library of code to help me get the job done faster and for less money?

    1. Re:I get paid hourly by jeremyds · · Score: 1

      Competition. Someone who reuses code is more likely to come in with a lower quote than you on a bid for a project.

    2. Re:I get paid hourly by yora · · Score: 1

      Because you can then bill for the time it would take to re-write the code that you re-used ;-)

      And you can then end up reading /. while you get paid for it too!

  27. Questionnaire by Anonymous Coward · · Score: 0

    1.Are you
    Freelance / independent developer
    Corporate / in-house developer
    Software house developer
    Other (please specify)

    2.Where are you based?
    UK
    Rest of EU
    USA
    Elsewhere

    3.By law, who do you think owns the rights in a piece of software that you develop or in code that you write?
    Me
    My employer
    The client who commissioned and is paying for the development

    4.How often do you or would you re-use blocks of code that you wrote when working elsewhere?
    Regularly
    Sometimes
    Never

    5.Whether you do or do not re-use blocks of code written elsewhere, do you think it is OK to do so?
    Yes
    No
    Don't know

    6.Would you re-use blocks of code written elsewhere
    Only if you were confident that nobody would find out
    Whether it would be found out or not

    7.If you ever use blocks of code in your development that were written by someone else, do you check that you have permission?
    Always
    Usually
    Rarely
    Never

    8.Do you think you need permission to use code that was written outside your company?
    Yes, always
    Not always
    Never

    9.Which if any of the following statements is true
    It's standard practice to use another's code without permission - and it's usually lawful
    It's standard practice to use another's code without permission - but it's usually unlawful
    It's not standard practice to use another's code without permission

    11.Do you have your own code library?
    Yes
    No

    12.Did you write all the code in that library?
    Yes
    No

    13.Would you take your code library with you, if switching from one employer to another?
    Yes
    No

    14.Do you ever try to reproduce the way another piece of software functions, but without copying any code?
    Yes
    No

    15.Have you or would you ever reverse-engineer an application and then reuse that code?
    Yes
    No

    16.Do you have any other comments?

  28. In Smalltalk, you get source... by crovira · · Score: 1

    And you REuse the code. If I had to I'd reimplement it but in the end it would be the same way. (How many ways can you think to write a parser?)

    --
    MSBPodcast.com The opinions expressed here are my own. If you don't like 'em... Think up your own stuff.
    1. Re:In Smalltalk, you get source... by Malc · · Score: 1

      You don't get all of the source with SmallTalk. At some point it ends up calling something in C. It's been too many years since I used SmallTalk, but aren't these the "primitives"?

      That said, you get most of the source to the class library. But then again, I get most of the source from MSFT for their class libraries runtime environments - I regularly debug in to the Microsoft Visual C runtime, MFC, ATL and WTL code.

    2. Re:In Smalltalk, you get source... by cheezit · · Score: 1

      Sure, you get to debug into fopen()....until it hits CreateFileEx(), which is working with a much longer parameter list that contains a bunch of stuff set elsewhere.

      Same deal with (Plauger's) STL, same deal with the (shudder) MFC source, etc. It all stops at Win32, which is often more complex than the upper layer that you are developing on, and the real work gets done below that layer.

      --
      Premature optimization is the root of all evil
    3. Re:In Smalltalk, you get source... by One+Louder · · Score: 1
      In Squeak (the direct descendant of Xerox's Smalltalk-80), you *do* get the source of the primitives and the virtual machine as part of the image.

      They're written in a compatible subset of Smalltalk called "Slang" which is translated to C, which is then compiled and linked to produce a new virtual machine.

      The advantage is that you can modify and run the Smalltalk code to simulate the virtual machine in order to test it, and kick out the C code when you're done. There are a few platform-specific files, of course, that are written in pure C.

  29. I work for a University and... by jcrash · · Score: 3, Interesting

    This question:
    3. By law, who do you think owns the rights in a piece of software that you develop or in code that you write?

    Me

    My employer

    The client who commissioned and is paying for the development

    Is missing: Me AND My employer - as I share the ownership 50/50 due to our inhouse rules.

    --
    I do not fear computers. I fear the lack of them. Isaac Asimov (1920 - 1992)
    1. Re:I work for a University and... by lukewarmfusion · · Score: 2, Interesting

      You're lucky. At my University, the school owns the rights to any and all intellectual property you create while an employee (unless it meets very strict rules of how you did it, when, etc.).... there are a couple of exceptions, but they are upfront contracts stating otherwise.

      It's pretty standard for your employer to own the work they pay you to do for them... so even if there's no outright agreement, they can still make a strong case that it is implied/understood. Gotta cover your own ass these days.

    2. Re:I work for a University and... by timeOday · · Score: 1

      Most schools are like that. Even if you're just a student (ie. you're paying THEM), and write something not for an assignment but on your own time (and equipment), still they claim ownership. Anybody and their dog can claim ownership over your work, the important thing is making arrangements to avoid bad situations. For instance the university land-grabbing statements have to allow for people working for a company, so the company owns the work. So if you're a student and don't want your school to steal your work, set yourself up as a company. And if you have a day job but are moonlighting, get an agreement beforehand and for heaven's sake don't mix the 2.

    3. Re:I work for a University and... by Surt · · Score: 1

      I find it effective to amend the agreements to exclude work undertaken to satisfy any prior contract.

      Have yet to have any of 1 university or 3 employers balk at that.

      And none of them even asked to see a list of prior contracts, so apparently none of them know I have a contract with my wife for all work done on my own time.

      --
      "Who is the Journal of Quantum Physics going to believe?" --Stephen Hawking
    4. Re:I work for a University and... by Keely · · Score: 1

      Now that's a variation on the "honey do" list!

      I wonder if I could sell my hubby on that... ;)

  30. Coding is like painting. by 4/3PI*R^3 · · Score: 3, Insightful
    Overly simplisticly, coding is like painting. All painters use the same colors over and over again. What differentiates a painting is the order and placement of the colors.

    Patenting or copyrighting an individual block of code is like patenting or copyrighting the color red. A painter would never be able to patent or copyright the color red and demand a royalty for all artists who use red. Painters copyright their entire image -- even a large enough sub section is copyrightable.

    Coding should be the same. How many ways can somebody write a decimal to currency string formatting routine? How many ways can somebody write an RGP go greyscale conversion routine?


    note: for those who say "what about Pantone?". Pantone does not copyright the color itself only the name and the Pantone color number is copyrightable. You are always free to use any RGB combination you want but Pantone will guarantee that their color system will always generate the same color on any printer that supports Pantone -- this is the value of Pantone.

    1. Re:Coding is like painting. by Anonymous Coward · · Score: 0

      IANAL and IMBW, but I belive that Eastman Kodak does have a trademark on the combination of the particular shade of red and the particular shade of yellow that they traditially use for their packaging. Yes, this isn't a patent, but it is a legal protection on the use of those colors.

      Just to be argumentative, I am not sure that I disagree with that trademark, either.

    2. Re:Coding is like painting. by Niles_Stonne · · Score: 1, Insightful

      The real question for this example is:

      When are you not just mixing colors, but making a painting? At what point does the combining of code become a unique work? One line? Ten? A Thousand?

      There isn't an easy guage to determine that point, perhaps one needs to be developed? When does code truly change from General Purpose (a "color"), to specialized (a "painting")?

      I think the colors should be free for all, and the paintings rights should be retained by the artist or whomever they are painting it for.

      --
      Sticks and Stones may break my bones, but copyright will always protect me.
    3. Re:Coding is like painting. by Anonymous Coward · · Score: 0

      A large number of paint formulas are patented, and another shitty slashdot analogy bites the dust.

    4. Re:Coding is like painting. by Anonymous Coward · · Score: 0

      Patenting or copyrighting an individual block of code is like patenting or copyrighting the color red. A painter would never be able to patent or copyright the color red and demand a royalty for all artists who use red.

      Sure, colour isn't covered by patents or copyright. It can, however, be covered by trademark law. You try using "Barbie Pink" for something and see how long it takes for Mattel's lawyers to contact you.

    5. Re:Coding is like painting. by mattyrobinson69 · · Score: 1

      there's three building blocks to painting and programing:

      red green blue (or is it red yellow blue) is comparable to itteration selection and sequence (or something like sequence, im tired and i cant remember)

      if you were to not use itteration because you used it on your last job, that would be like not using red because someone else uses red too.

      thats a bad analagy. i think this is pretty simple (think like patents - they cant be obvious):

      if its something obvious like a sorting algorithm you wrote then nobody owns it, use it.
      if its something complex like a rendering algorithm for a game engine then its whoever you wrote it for (unless they said you can use it, which i wouldn't believe anyway)

  31. Re: Bogus by Oligonicella · · Score: 1

    The survey is ill-written. The questions are too shallow to answer.

  32. Implicit assumptions by flossie · · Score: 2, Insightful
    There are many implicit assumptions evident in the survey questions.

    The question that asks whether or not you think it is legal to re-use code for different employers needs another option: "it depends". For instance, code released under the GPL with a former employer's permission is free to be used elsewhere. However, the survey doesn't ask whether or not the code was supposed to be kept confidential.

  33. Re:You’d be surprised how much of a career by Anonymous Coward · · Score: 0

    ...you can build on view source followed by a cut-and-paste.

    Wowzerz!!!! A web career! How nineties.

  34. You'll be surprised by lawsuits soon... by tallpole · · Score: 1

    I'd recommend you be careful with "beg, borrow, or steal" mentalities, sooner than later you may find yourself in a legal quandary, when you use some code that someone published academically, but is patented and protected against commercial use-

    Such as:
    1. Lempel-Ziv
    2. RSA (in the past)
    3. Need I really list more...?

    1. Re:You'll be surprised by lawsuits soon... by sydb · · Score: 1

      Those are fine examples, but no-one's going to patent "javascript to disable right-click in Internet Explorer"...

      --
      Yours Sincerely, Michael.
  35. Taught in College by millahtime · · Score: 3, Interesting

    In college in one class they taught you how to do this well. The thought was that if someone else wrote it well then use that instead of rewriting your own. There was a project where you had to do the whole thing from "borrowed" code.

  36. Give me copied code anytime by Chromodromic · · Score: 2, Insightful

    It's pretty ridiculous to lament the current state of average software quality and then require developers to reinvent the wheel every time they're on a new job or working for a new client. It may not be lawful, in all instances, to copy code between projects and clients, but in order to meet requirements, especially time requirments, while ensuring a quality project that's as bug free as possible, copying is not only a necessity but a common practice.

    Besides, what are we really talking about most of the time? Code libraries? What's the difference, really, if I copy code from my library or use routines from memory, things that I've been required to code over and over again, like validation routines, or basic algorithms?

    No one is going to say that they go from client to client and write brand new code each time. Furthermore, if I were a client I would have to seriously question whether I'd even want that. If I were on a tight time constraint I wouldn't get it even if I did want it.

    It would be like commissioning someone to build a bridge and then requiring that they only use brand new formulas anc techniques. Okay, but I'm not gonna be the first guy to test it ...

    --
    Chr0m0Dr0m!C
  37. Shared "Open" Porn by Anonymous Coward · · Score: 0

    What would make sense would be an Open Porn movement. All porn generated by the FPF would be free, but you would have to pay for actual sex with the depicted individuals.

    1. Re:Shared "Open" Porn by Anonymous Coward · · Score: 0

      I like that. Then anyone could donate to the movement by donating porn featuring themselves. Do you think there would be any donated by horny housewives ?

    2. Re:Shared "Open" Porn by Anonymous Coward · · Score: 0

      Do you think there would be any donated by horny housewives ?

      I think the bigger issue is how far to take the "free porn" movement -- we could turn this country back to the way it was in the 1960s, except without drugs, phony wars... oh wait, I'm sorry...

    3. Re:Shared "Open" Porn by Anonymous Coward · · Score: 0

      I suspect we would be very disappointed, possibly scarred for life by most of the donated porn.

  38. Re:Scalia censors the media by Anonymous Coward · · Score: 0

    In other news, parent gets modded -1 Imbecile, this post modded +5 Fricken' Accurate!

    Film at 11.

  39. where? by Anonymous Coward · · Score: 0

    Untree? ogilopoly?

    I've never seen a Scottish accent in print before...

    1. Re:where? by Anonymous Coward · · Score: 0

      Well, this can't been the first time you've seen a dork on Sudafed try and type. Damn, I hate my allergies.

  40. It's all the same to me by Hockney+Twang · · Score: 4, Insightful

    If I write a program that performs a particular function, and then later want to write a program to do the same thing, I end up producing an almost exact replica of what I coded previously. Maybe it's just me, but my coding style is basically set in stone.

    So, in that key, I'm not physically keeping a code library, but I am reproducing code that may have become the property of another party.

  41. This is not a can of worms you want to open by Featureless · · Score: 5, Interesting

    ...unless you really know what you're in for, and are ready to talk about reforming our laws.

    Our intellectual property laws, when interpreted strictly, are a bit of a farce. Especially when it comes to thinks like patents, work for hire, the nebulous concept of derived works, "clean rooms..." all the way down to the embattled idea of fair use, backups, lending versus copying, onerous and unenforcable NDAs and employment contracts, and the end fact that, as a society, we have never ever, even for a day, played by the basic copyright rules "100%."

    Our whole industry functions by ignoring the rules most of the time. I have never worked anyplace where all the rules (licenses, for instance) were followed. I always follow them myself to the best of my abilities - but it's impossible. I've probably unintentionally violated a license by now, and I've almost certainly infringed thousands of patents. I have never brought code from one client to another without permission or license, not even once, not even when it would have saved untold time and money and was simply the most obvious, easy thing to do... but over the years I received quite a bit of pressure under various circumstances to do it, and I'm certain that quite a few other people do.

    That said, because the SCO issue (or non-issue, to be frank) is raised, let me say that it's a different thought process when you're going between the commercial and the free software world - both because the pressures to cheat don't exist (or hardly to any similar extent) in OSS, and because it is almost certain in OSS you'll be caught out. It's like parking a stolen car on the street in front of your house.

    But commercial project to commercial project, yes, I bet it happens quite often. And also from OSS to commercial - I would be shocked if there were many large commercial projects that don't have stolen OSS code in them...

    1. Re:This is not a can of worms you want to open by lspd · · Score: 1

      I would be shocked if there were many large commercial projects that don't have stolen OSS code in them...

      Only if it's free software that you wrote and you didn't assign the copyright to anyone else, reusing it in a commercial product is not stealing...the code still belongs to you and you can relicense it to your new employers under whatever terms you'd like.

    2. Re:This is not a can of worms you want to open by Artifakt · · Score: 1

      I've never wasted time on a 'me too' post on slashdot, but just 'me too'ing this one was really tempting.
      In all too many cases, the people who are demanding the loudest that the law be followed are the very people who could not possibly make their money following the law. This survey incorporates many of their assumptions, which proceed from such principles as "What's mine is mine, and what's yours is negotiable", or "Everyone cheats somehow, the question is how much". I won't answer questions from people who assume I'm a criminal.

      --
      Who is John Cabal?
    3. Re:This is not a can of worms you want to open by torokun · · Score: 1

      The practicality of following laws is always something taken into account by the rule in question. None of these rules, e.g. copyright, are really meant to be followed absolutely. They're meant to be followed enough to fix a problem that existed prior to that rule. If the rule isn't strong enough to induce enough compliance, the rule will be strengthened. If it's so strong that it creates a lot of problems, it will eventually be weakened. In the case of our current IP law, there used to be a lot of external constraints on copying and infringing that were unrelated to the law. These helped keep compliance to a reasonable level. Since this has broken down due to the ease of copying, transmitting, and recombining digital content, the rule is bound to get stronger or develop different modes of enforcement in order to bring the compliance people seem to want. Now if this turns out to destroy the software industry, it will definitely be weakened again, but I myself don't see that happening. As the people making the rules work out these issues, everyone will fight over it and hopefully come to a reasonable compromise. ;) But everyone has to fight for what they want.

    4. Re:This is not a can of worms you want to open by Featureless · · Score: 1

      I think you're right and I kind of like the way you expressed that. But I feel compelled to add that this "fight" as you put it, this process of revising laws and working out new moral codes and legal fine tuning will be "reasonable" and beneficial to the extent that our democracy represents the interests of its citizens fairly and equally.

      You can draw your own conclusions from there.

    5. Re:This is not a can of worms you want to open by bhmit1 · · Score: 1

      Those that want to open this can of worms tend to be the managers and other higher ups in companies. So the question to ask them is this:

      Would you consider hiring someone with experience that would NOT reuse code? How quickly would you fire someone for refusing to solve a problem because it would require them to reuse code or "proprietary knowledge" they created or learned while at a previous employer?

      The very requirement for experience with a technology or industry implies that they want to be able to use that experience, and code that you have written is little more than documented knowledge.

  42. Quite the opposite for me by Anonymous Coward · · Score: 0

    Sounds like you don't really understand much of the code you put out . . . I just hope you're not "writing" anything critical.

    I've done my share of business critical production manufacturing systems, with a predominate number of positive outcomes. I don't confine myself exclusively to ripping off code, but in times of tight economics and small budgets, a little theft can save the day and the project plan.

    On understanding: We learn from what we read and what we code ourselves. We all steal code, if only from the textbooks we read. I use other's code as a learning experience. It is one level of experience to passively understand code by reading vs. decomposing and integrating into a production system. For me that is an active form of learning that is more likely to lead to understanding. You can learn and gain understanding from your thievery. I can at least.

    1. Re:Quite the opposite for me by cayenne8 · · Score: 1
      "On understanding: We learn from what we read and what we code ourselves. We all steal code, if only from the textbooks we read. I use other's code as a learning experience."

      I once taught a beg. course in Intro to the Internet and Java at a local community college. I encouraged them to do what I did when I was just learning.

      Use the C.A.S.E. method.

      Copy And Steal Everything

      This got a few chuckles....but, I find it is true in most learning situations. See an example of how somethings done...use it in a test app. to learn how it works. I don't promote stealing verbatim, and cutting and pasting into your code at work, but, as a manner of learning...I do believe in the CASE method...

      --
      Light travels faster than sound. This is why some people appear bright until you hear them speak.........
  43. Dumbshit moderators by Anonymous Coward · · Score: 0

    Don't you need to understand the topic of the story before going around marking posts "offtopic"?

  44. Good reason... by lukewarmfusion · · Score: 4, Insightful

    ...not to document your own code?

    Sorry, but a hack != programmer. You can toss together a bunch of stuff other people have written, but when it breaks you'll need to be able to fix it. If you never learn how to do that, you'll never be more than a cut-and-paste drone.

    It's great to be able to use resources like View Source to learn new stuff, see new techniques, even find quick examples of how something's done. But if you can't understand how to do it on your own (which may take much longer, granted) then you're not going to last.

    1. Re:Good reason... by Anonymous Coward · · Score: 0

      I work with web guys that steal javascript all the time. I've noticed that 99% of it is intentionally obscured -- one letter variable names, no linebreaks, etc etc. You can tell the guy who origianlly wrote it knew it was going to get stolen and wants to make life difficult.

      OTOH, trying to create something like a javascript menu system that works correctly on every stinking browser is a total pain in the ass. Especially when there's 'example code' all over the web that you can grab.

    2. Re:Good reason... by lukewarmfusion · · Score: 1

      Sure - but there are lots of 'example code' snippets that are free to use, provided you give credit. There's usually a section commented out that explains your license to use it. How legally binding is that? I don't know.

      For something as complex as a well-supported JS menu system, it's best to make sure you cover your ass. A couple lines here or there (or even a small function) aren't likely to be noticed, but a menu system is much more significant.

    3. Re:Good reason... by Nukenbar2 · · Score: 0

      You must not be a Government Employee...

    4. Re:Good reason... by golgotha007 · · Score: 2, Informative

      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.

    5. Re:Good reason... by BlackHawk-666 · · Score: 1

      Do it for a few more and you become a true hacker again, and I mean that in the old sense of the word :-)

      --
      All those moments will be lost in time, like tears in rain.
    6. Re:Good reason... by Anonymous Coward · · Score: 0

      Pfff, anybody who reads how you describe yourself on your web site will know that you're a hack.

  45. I have a code library... by Neil+Blender · · Score: 2, Insightful

    ...in my brain.

  46. you must have a state job... by Anonymous Coward · · Score: 0

    typical government worker mentality

  47. BSD License by crimoid · · Score: 1


    If you maintain a library that you take from job to job just make sure that your core code is under a BSD-style license (and that your employer is aware of this). That way, a few jobs down the line your past employers can't come screaming that you or your present employer are using "stolen" code.

  48. Amateurs or Weasles? by wonkavader · · Score: 1
    Seems like a lot of these questions are traps.

    I use code which is written by others and distributed for use ALL THE TIME. Things on news groups "here's how you ..." things on web-pages and in books which are done as tutorials. Furthermore you have the issue of fair use -- if you use three lines of a 200 lines program, and even those you adapt to your environment, do you answer on this survey "I never copy code" even though you do, or "I do copy code without the author's permission" when you'r not copying from a legal standpoint?

    Virtually all questions in this survey have a resemblance to a "Have you stopped beating your wife?"-style trap.

    If it's unintentional, they're pretty crappy survey writers, and should withdraw this and rewrite it. If it's not unintentional, then they're weasles.

  49. code arsenal by gfody · · Score: 2, Insightful

    myself and every other developer I know it's common to build up an arsenal of code (written or otherwise collected/customized) for various things. more importantly there's the problems and how you solved them that you'll never forget but the problem may come up frequently regardless of where you work.

    it's pretty rare that you find code that you can copy paste and compile. usually you need to read the code to understand the algorithm, then rewrite it to suite your application/variable names/coding style.

    one-off hacks and throw away code probably all looks the same company to company programmer to programmer. it's the overall system design and high level architecture that I would consider the meat of the IP anyways.. and it would typically take more than a single developer to pickup and rebuild it somewhere else

    --

    bite my glorious golden ass.
  50. In Smalltalk, you get... [egg rolls] by Anonymous Coward · · Score: 0

    Actually Smalltalk and Java ARE their libraries. Just try doing something without them. The harder part I've found is of course library managment once you get beyound a certain point (The Large HD effect). Maybe a source control that has the code, the documentation (Text and UML), and the ability to pull out what exactly's needed (Now which kind of parser did you need?)

  51. CODE LIBRARY by fadethepolice · · Score: 1

    Yes I keep a code Library, and yes I do re-use it

    Yes I have had several employers since I started the library.

    It is I I is it is it I?

    all of these sentences have appeared in books, since I just typed them am I now guilty of copyright infringement?

    And whose gonna reign in those infinite monkeys on infinite typewriters?

    Maybe we should create a program to generate all possible combinations of the ascii code symbols then copyright anything that could possibly be written either as an e-mail address, webpage, novel, etc. Then patent each one and get royalties from anyone who ever uses ascii...

    How much would it be for us to put up our own satellite communications netork?

  52. I'd suggest no one take this survey. by Queuetue · · Score: 4, Interesting

    It's written by someone who either doesn't understand the issues involved, or is interested in 'interesting news' not a legitimate survey.

    Most questions don't take into account the varying ways that code gets licensed and work gets done. They assume you're either giving the code to your employer or stealing it, when there is a whole universe of licensing paths in between those two nodes.

    1. Re:I'd suggest no one take this survey. by Anonymous Coward · · Score: 0


      Let 'em know.

      Contact Form

      I did. Everyone should. They are either being very ignorant or malicious. Either way, they need to know that we know.

  53. Re:well.. it is... or at least should be ? by txviking · · Score: 1

    .. if all code was "free", then this wouldn't be an issue.

    Congress is only authorized to grant monopolies in form of copyright and patents for things that give progress to sciences and useful arts.

    Most written code does neither, therefore shouldn't it be free (as speech) ?

    However, I am still waiting to see a business model that allows me to be as free as the code ... That would be nice, wouldn't it?

  54. ack by TrekkieGod · · Score: 3, Interesting
    I completely agree with you on your first statement. Code libraries are often not helpful because you are most of the time maintaining something others have written.

    I completely agree with you that the parts of a code library that are most likely to be reusable are known and published algorithms. That and other trivial things is pretty much all I have in my code library.

    Then you went and drew two conclusions that were completely different from the ones I drew out of the same facts we both agree with.

    First you say "code libraries aren't that helpful" in the title. No, they won't be a significant portion of the code you right for the new company, but they're helpful enough in preventing you from reinventing the wheel every single time. Do I really want to rewrite everything I use again and again everytime I need it? Heck, I find them very helpful in preventing me from doing that.

    Second, you say "it's probably wrong to take something you were specifically paid to produce for one company along with you to another, so don't do it." It's not that black and white, and it really depends on what exactly is in that code library (ethically at least. IANAL so I couldn't tell you legally). Without question, only code you wrote yourself is ethical for you to take with you. Other than that, in my opinion anything not directly related to the project you were working on is fair game. How likely is it that you're not going to be using certain primitives in your new job? How likely is it that if you write it again from scratch it will be different? You're just saving time, not giving away company secrets (which would be unethical)

    --

    Warning: Opinions known to be heavily biased.

  55. They may own the source and the binaries .... by j_cavera · · Score: 1

    .... but the comments are all mine! HAHAHAHA!

    --
    #include "humorous_pop_culture_reference.h"
  56. Only if the result is closed-source. by Anonymous Coward · · Score: 0
    This practice is only safe to do if the resulting program is closed-source. If it's open-source someone will find out too easily.

    For example:

    • Copying from Linux -> SCO Unix = Safe - noone can see SCO code to catch you.
    • Copying from SCO unix -> Linux = Unsafe - quality's not good enough and there are too many gatekeepers checking for bad code before it'll be merged in the main Linux tree.

    1. Re:Only if the result is closed-source. by ron_ivi · · Score: 1
      parent wrote: " This practice is only safe to do if the resulting program is closed-source. If it's open-source someone will find out too easily."

      Perhaps a better survey should have been - "how many people does your organization have doing thorough code-reviews before checkins so such cases of illegal code-copying can be caught?".

      I bet closed-source organizations have worse practices than open-source organizations in that respect.

    2. Re:Only if the result is closed-source. by Anonymous Coward · · Score: 0

      > noone can see SCO code to catch you.

      Unless they are an IBM lawyer who is suing SCO for copyright infringement.

      > there are too many gatekeepers checking for bad code

      This I rather doubt, especially if it's something non-core like a device driver.

  57. Larger companies by BCW2 · · Score: 2, Informative

    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.

    --
    Professional Politicians are not the solution, they ARE the problem.
  58. MS Open-Source Move is Straight from Playbook by Anonymous Coward · · Score: 0

    Interesting pice on ms os release. Read it
    here

  59. This.. was worthless. by Firehawke · · Score: 1

    I reached a question with no possible answer that would fit my situation. It wanted to know how much code I would steal from someone else's code without permission, and the answer is NONE. I'd reuse small chunks of my own code, but never anyone else's without clear permission.

    Well, looks like there's no need to bother checking out the results once they're done since they're going to be seriously skewed.

  60. I think this matters by mattwarden · · Score: 3, Insightful

    You never ask whether the person wrote the code in their code library on their own time. It seems like you assume that it is all written on someone's dime and then reused in someone else's project.

  61. That would depend on program size by Anonymous Coward · · Score: 0

    If the program were 5 lines long you could safely use 5 or 10 percent I think :) Below a certain threshold you can't own a copyright. For example I may own the copyright for this post but not for the word "copyright". Similarly very small or unexpressive parts of a program can be used safely.

    These questions were written by someone who doesn't understand copyright and/or has an agenda.

  62. this survey smells of trolls by meshko · · Score: 4, Insightful

    It does. Stupid questions of the type "have you stopped drinking whiskey in the morning?". I got really aggravated after answering 5 questions.
    I have a "code library" (whatever they mean by that) which I wrote in my spare time. It is released under GPL. I'm the copyright holder. I can assign any other license to that code. Therefore I can embed parts of this library in any proprietary code I write for my employer.
    I also reuse other people's code released under BSD, MPL etc. This is all legal, but the survey doesn't know about this stuff.

    --
    I passed the Turing test.
  63. Cookbooks by Perl-Pusher · · Score: 1

    Not only do I have a personal library, I have an extensive library of "Learn by Example Books". Perl Cookbook etc. Why would someone create the same function, over and over again? What would it accomplish if I did? Chances are I would do it almost exactly the same way each time. And the more times I did it the more uniform (structure, variable names etc.) it would become. The main thing I think it would accomplish is less comments. Why document what I've written many times before, I certainly know what it does.

    1. Re:Cookbooks by jc42 · · Score: 1

      I have an extensive library of "Learn by Example Books".

      In olden times, such books were published to help you learn, and the authors expected that you would use the examples in your own work.

      Nowadays, such books are also published with the expectation that you will use the examples. Then the publisher's lawyers descend on you or your employer and charge you with copyright infringement.

      To be safe, you should never read any books that contain code examples. Avoid looking at any code that may appear on the Internet. Don't ever re-use any code under any circumstances. They are all protected by copyright, so if you look at them and then produce some similar code, you can be sued.

      (I wish I were paranoid. But it really is coming down to this. So much for advancing the sciences and useful arts.)

      --
      Those who do study history are doomed to stand helplessly by while everyone else repeats it.
  64. "View source"? by PCM2 · · Score: 1
    ...you can build on view source followed by a cut-and-paste.
    Sorry, kid. This ain't 1998, and cutting and pasting HTML don't make you a developer.
    --
    Breakfast served all day!
    1. Re:"View source"? by scotch · · Score: 1
      Doing anything with HTML doesn't make you a developer. ha ha ha.

      Also, don't knock, cut-paste-modify. Mother nature has been doing that for billions of years with pretty interesting results. ha ha ha.

      Thank you, I'll be here all week.

      --
      XML causes global warming.
    2. Re:"View source"? by SoSueMe · · Score: 1

      Thank you, I'll be here all week.

      Just like simplistic statements followed by "ha ha ha" and copying a line from Shrek doesn't make you a comedian?

    3. Re:"View source"? by scotch · · Score: 1

      Sure, just like opening your mouth and farting doesn't make one a critic? Which line did I copy from Shrek? It's always nice is to know the source of your plagarism, so you're going to need to help me out a little here.

      --
      XML causes global warming.
  65. A Subtlety Missing From The Survey by gurustu · · Score: 2, Interesting
    I had a problem answering the questions because I maintain two codebases : one I develop for my employer and one that I develop for open source, myself, my friends.

    I am perfectly okay with the idea that my employer owns the former and that I can't treat that as a portable code library, and they're perfectly okay with me including my code library's code in their products, as long as my license (the BSD license, as it turns out) allows it with minimal encumberance.

    It can complicated to decide which base I'm writing the code for, but I typically use the rule that if I'm in the office it's theirs, and if I'm at home it's mine. I write in Java, so I use package names to further delineate which is which.

    Everybody wins this way : they get more code, I get code that makes my life easier throughout my career.

  66. Re:You’d be surprised how much of a career&am by Anonymous Coward · · Score: 0

    Script kiddies who copy HTML by the use of "view source" rarely ever write anything even remotely "critical".

  67. Re:I'm amazed by Lochin+Rabbar · · Score: 1

    Reusing your own code is stealing? You'd freak if you saw someone reusing their own code? You can be truly glad I don't work for you, as I can assure I wouldn't put up with your tantrums, and if you called me a theif for reusing my own code you'd be soon know the error of your ways.

  68. When did you stop beating your wife ?! by openmtl · · Score: 1
    This is ZDNet trying to make sh*t stick. Its the classic ploy of asking "When did you stop beating your wife ?" - It doesn't matter if you havent, whatever you say it sounds like you had in the past.

    So ZDNet is now gathering data so that they can ask: "When did you stop copying code ?"

    What people do regarding copying code from one employer to another has nothing to do with Linux and for ZDnet to try and survey copde copying and then make a tenuous association with Linux is disingenuous at best.

    There is no SCO IP in Linux because SCO have not sent a single patch or email to a single maintainer asking for lines to be patched out. This is any SCO code is present then its present because SCO want it there for a reason and thus they accept the curent Linux licensing for that module.

    --

  69. Survey has no provision for legal code libraries! by kbonin · · Score: 3, Informative

    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.

  70. Re:I'm amazed by Lordrashmi · · Score: 1

    Your one of those people who tries to get all coworkers fired on a weekly basis aren't you?

    What is wrong with using code from a personal code library? I write a lot of code on my own time that I own, and no one else. If instead of re-writing that code for my company (which would pretty much be identical to how I did it before) I want to save time (and therefore the company money) what is wrong with me contributing that code?

  71. Re:I'm amazed by spectecjr · · Score: 0, Flamebait

    If I ever saw in a code review or evaluation what looked like code that can from a personal code library I'd freak and ask management to let the person go.

    This is serious stuff. Copying code without permission is stealing. Period.


    If I'm re-using code from my personal code library, how:

    1) Can I be copying it without permission? I gave myself permission when I copied it.

    2) Can I be stealing? After all, I'd be stealing from myself.

    Some of us do work on our own not-work-related projects after work, you know. And those of us who do so often find that the people at work appreciate it when something we were playing with "just because" turns out to be useful later, shaving weeks off the development time because we can take that code right out of the library we developed for ourselves.

    All I really want now is a better way of storing code in my own personal library. But I've not figured out the best way to do that yet.

    --
    Coming soon - pyrogyra
  72. Inflated sense of self importance by endoboy · · Score: 1, Offtopic
    We are, after all, computer scientists

    code-monkey != computer scientist

  73. Previous Message brought to you by..... by Paladine97 · · Score: 1

    Previous message brought to you by the RIAA with joint recognition from the MPAA.

  74. Re:I'm amazed by 110010001000 · · Score: 1, Insightful

    Uh, how is taking code from your personal code library copying code without permission? Where do you work? Do you actually work in the industry?

  75. Not really, by Morologous · · Score: 1

    Just my handy-dandy SCO code library. You'd be absolutely astonished at the number of places I've found to use all that SCO-IP code.

    In all seriousness, however, I do keep a small library of Java code for my personal use. If I were to change jobs, and that new employment didn't already have code to perform functions contained in my personal library, well, depending on the professional climate of the organization I would consider passing some of my personal classes along.

  76. Re:I'm amazed by juaja · · Score: 1

    Not sure if that's classified as "stealing" I belive it's some sort of "CopyRight Infringement".

    --
    I HAVEN'T OWNED A TELEVISION SINCE 1967 AND ONLY WATCH MOVIES ABOUT LEFT-HANDED ALEUT LESBIAN PIPEWELDERS! FUCK HOLLYWOO
  77. refactor regularily by avandesande · · Score: 1

    I refactor my code regularily, it is rare that code would go unchanged even from one project to the next.

    --
    love is just extroverted narcissism
  78. Aweful Survey by Orasis · · Score: 1

    The questions are incredibly vague and guide the survey-taker enough that absolutely no assumptions should be gleaned from the results of this survey.

  79. Re:I'm amazed by Anonymous Coward · · Score: 0

    Given you have email address which reads codemonkey, I guess you attitude isn't too surprising. Let me guess, do you also insist on canning a person who doesn't work 70 hours a week, too?

  80. A more interesting question... by Anonymous Coward · · Score: 0

    Say that I write some code on my own time, perhaps as part of a F/OSS project. At some later time, I am being paid by Employer A to code a commercial product, and incorporate *my own* OSS code into it. This is legal; since I clearly own the copyright, I can do whatever I want with it, including license my employer to use it in a commercial product. Then, later still, I incorporate the same code into a different commercial product for a different employer B. Employer A sues employer B for copyright infringement. What happens?

    Worse yet, employer A tries to patent the code you incorporated. What happens then?

    Can employer A force you, through contract or lawsuit, to give up copyright of the code to them if you use it in their products? If so, what happens to the F/OSS product that you previously wrote that includes the code?

  81. It could have happened by ChiralSoftware · · Score: 5, Insightful
    If software patents had existed thirty or forty years ago, there would be patents on the for loop, linked lists, the subroutine, use of buffers, storing text in the form of a sequence of bytes (an invention called a "string"), use of APIs, re-use of code in a form called a "library", the process of merging multiple files of executable code together known as "linking", and many other things, and the process of taking a file containing "source code" and turning it into executable (a novel invention known as "compiling"). All of these things would be patented. Non-commercial software could not exist because there's just no way to write a program without strings, lists and loops, unless your program just consists of a long list of NOOP instructions. But of course NOOP could have been patented too. In fact all these inventions are much more patentable than the stuff that is getting patented now, because when these software constructs were developed, they really were completely novel and non-obvious, unlike things like one-click ordering.

    --------
    Create a WAP server

    1. Re:It could have happened by torokun · · Score: 3, Insightful

      If hardware patents had existed thirty or forty years ago, there would be patents on the transistor, the zener diode, pipelining architectures, bus architectures, and all the different approaches to RAM... All of these things would be patented. Non-commercial hardware could not exist because there's just no way to create a computer without transistors. unless your computer just consists of a bunch of relays. But of course relays could have been patented too. In fact all these inventions are much more patentable than the stuff that is getting patented now, because when these hardware constructs were developed, they really were completely novel and non-obvious, unlike things like using a blue laser instead of a red laser to read/write data.

    2. Re:It could have happened by Anonymous Coward · · Score: 3, Insightful

      So where can I get non-commercial hardware then?

    3. Re:It could have happened by BlackHawk-666 · · Score: 1

      and those patents would have expired by now so it would be no impediment to innovation. Hardware moves slower than software so the patent limits are felt more keenly on software.

      --
      All those moments will be lost in time, like tears in rain.
    4. Re:It could have happened by Ken+D · · Score: 1

      It would be no impediment NOW, but we'd also be way behind the curve if a patent had been granted on the transistor or the integrated circuit. We'd still be using 8086 era technology being provided by a single hardware vendor who had the lock on the basic technological patents.

    5. Re:It could have happened by apocalyptic · · Score: 2, Insightful

      Can anyone tell me exactly what the difference is between components of a program (loops, specific API calls) and components of real world object X (a bridge, a house, etc)? Would the US patent office allow a pipe making company to patent a 5' pipe then allow that company to sue a pipe company that made a 10' pipe. All this world need are smarter lawyers!

    6. Re:It could have happened by Free_Meson · · Score: 1

      It would be no impediment NOW, but we'd also be way behind the curve if a patent had been granted on the transistor or the integrated circuit. We'd still be using 8086 era technology being provided by a single hardware vendor who had the lock on the basic technological patents.

      I hate to break it to you, but the transistor was patented, as was just about every incrimental improvement in technology since then... It would seem that you've got some holes in your reasoning, as we have, in fact, advanced beyond 8086 era technology and a great many hardware manufacturers offer us a wide variety of options. Maybe patents aren't the boogeyman you think they are?

      http://www.pbs.org/transistor/background1/events/p atbat.html
      Google is your friend. This was the first return in my search for "transistor patent".

    7. Re:It could have happened by stephanruby · · Score: 1

      If software patents had existed thirty or forty years ago, they would all be expired by now.

    8. Re:It could have happened by stephanruby · · Score: 1
      Non-commercial hardware could not exist because there's just no way to create a computer without transistors.

      I think you mean to say, non-licensed hardware could not exist. In any case, patents expire, so your supposition is nothing more than an interesting unrealistic metaphor.

    9. Re:It could have happened by arkanes · · Score: 2, Insightful
      It's pretty simple, really. Patents on hardware don't harm "free" development of hardware because there is no such thing - you can't make transistors without a fab and patent fees are the least of your worries there. On the other hand, freelance/hobbyist software development can't afford that kind of fee. It's why we have copyrights on books instead of patents.

      Patents aren't boogeymen. Patents on things that haven't been invented (speculative patents), have already been invented (trivial patents), and things which shouldn't be invented (frivolous patents) are boogeymen. Patents on things you DO rather than things you MAKE are REALLY boogeymen, because they're extremely broad and conver the concept of doing something rather than a way of doing something, preventing innovation, and, incidently, being totally useless to the public domain once the patent expires.

    10. Re:It could have happened by chris_mahan · · Score: 1

      Commander Taco,

      I second that request for an option to hide headlines that link to registration-only articles.

      --

      "Piter, too, is dead."

    11. Re:It could have happened by John+Hasler · · Score: 1

      You might want to look into the history of radio, with special attention to patents and the Radio Corporation of America.

      --
      Warning: this article may contain humor, sarcasm, parody, and perhaps even irony. Read at your own risk.
    12. Re:It could have happened by sjames · · Score: 1

      And we'd still be programming in COBOL (YUCK!) Using the ill named compatible timeshare system.

      PAtents would have stuck software into a 17 year cycle of evolution rather than the 3 years it has today.

      Right now, we'd all be anxiously waiting for the patents on X to expire so we could quit writing to the raw xlib API

    13. Re:It could have happened by AmericanInKiev · · Score: 1

      Interesting theory - but

      I believe a lot of computer routines were invented first as mathematical theory many years before microprocessors made it possible to automate them.

      As mathematical theory they probably wouldn't have been patentable.

      All of which is to point out the eternal value of science fiction.

      The science fiction writer makes a thing possible by clearing the patent minefield. - Robots that vacuum the floor - written up 50 years before their time.

      Space flight - moon landings - submarines - flying machines.

      Think of Douglas adam's hitch hikers guide. Doesn't it know where you are in the universe - speak to you - have a click interface? translate every language automatically etc . . .
      How many billion dollars worth of future patents did DA preempt in that one series ?

      just thoughts.
      AIK

  82. what will this report be used for? by trick-knee · · Score: 1

    > The results - with expert legal analysis - will be published free - we're not doing this to sell reports etc.

    if you go to the site, you'll notice that on their front page they're advertizing Microsoft FUD by way of the Yankee Group.

    what sort of analysis will the results of this survey be subjected to? I fear a slant....

  83. Code Library, Explicit Permission by Anonymous Coward · · Score: 0

    I keep a code library, including source code written while working at my current company, at the behest of my current employers. If I were to leave this company, I would take it with me. And it would be OK, because I have the explicit permission of my employer to do so.

    Why? Because the Open Source code I wrote on my own time is now being used here internally, and making the company money. Oddly enough, they like that sort of thing. So when they need an enhancement, they are delighted to allow me to keep it Open Source.

    (I'm posting anonymously because I don't have explicit permission from my employer to talk about their views on Open Source)

  84. European software patents by Koyaanisqatsi · · Score: 2, Informative

    Don't forget to look at this demo of things to come w/ software patents:

    http://webshop.ffii.org/

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

    http://petition.eurolinux.org/

  85. Go to Hell by Anonymous Coward · · Score: 0

    1) ZDNet can pay for its own damned research.

    2) SCO and copying were mentioned -- making the conclusion almost predictable, especially since ZDNet is involved.

    3) Why would any right-thinking person answer a survey with vague questions meant to self-incriminate (even if nothing was done wrong legally or ethically)?

    4) Anonymity is never a guarantee in journalism. There is little incentive to not reveal a source, and there's no recourse once revealed.

    Take your slanted survey and shove it.

  86. Disguised advertising. by Theriault · · Score: 2

    7. If you ever use blocks of code in your development that were written by someone else, do you check that you have permission?

    A: Always

    10. How much code would you take from the source of a single program without permission?
    Blocks of code comprising up to 5% of the program
    Blocks of code comprising up to 10% of the program
    Blocks of code comprising up to 25% of the program
    Blocks of code comprising up to 50% of the program
    Blocks of code comprising more than 50% of the program

    Duh?

    The main reason this survey is so poorly designed is that it ends up directing you to fill 'marketroid' information, which is the only way you will get to see the end results of the survey.

    Nice marketing ploy.

  87. Correct Answer by Bob9113 · · Score: 1

    6. Would you re-use blocks of code written elsewhere

    a) ( ) Only if you were confident that nobody would find out

    b) ( ) Whether it would be found out or not


    This one stymied me for a moment too, but the correct answer is 'b'. Basically it's saying, "if you do re-use code, would you attempt to hide it?" I reuse code frequently, and always with the explicit permission of the copyright holder, and according to the conditions they have set forth. Therefore, whenever I do re-use blocks of code, it is completely irrelevant whether anyone knows.

    1. Re:Correct Answer by sploxx · · Score: 1

      Ok, but this is hair splitting, isn't it?

      Not that you are wrong, but IMHO a survey should not require 'out of the box' thinking to be able to give a correct answer. It should ask questions in a straight forward way and should also not (as other posters pointed out) be used to carry opinions in the questions.

    2. Re:Correct Answer by Bob9113 · · Score: 1

      Ok, but this is hair splitting, isn't it?

      Not that you are wrong, but IMHO a survey should not require 'out of the box' thinking to be able to give a correct answer. It should ask questions in a straight forward way and should also not (as other posters pointed out) be used to carry opinions in the questions.


      I take your point, and the skeptical side of me wants to agree. But consider another alternative: The question could be a weed-out question. EG: on psych tests they will often have the same question worded four different ways through the course of the survey - it's an attempt to trip up the testee.

      Totally agreed that this is not the simple answer, and the simple answer is usually true. You may be right that the test author is simply biased. But if that's the case, it doesn't matter what answers are filled in, so you may as well pick 'b'.

  88. Even if the survey could be better... by sploxx · · Score: 1

    ... the matter is interesting enough to discuss!

    I once heard that there was a case in the UK where one was successfully sued for subconscious copyright infringement(*) for a piece of music.

    Now this raises several questions for me (not asking for legal advice here, only informed opinions):

    - Does this apply at all to the software world?
    If it does:
    - If one codes similar things for different employers - would that constitute a copyright violation if there is even subconscious violation?
    - Is it possible to do FOSS work and being an employee at the same time?

    (*) - It's somwhere on the web - I can't find it now but google should show it up.

  89. Re:I'm amazed by Kordmp · · Score: 1

    I'm amazed. Unless a programmer is writing a new algorithm or method, do you think that user is writing unique code. If he has done something before ie: open a socket, resolve hostnames, open a file read data parse it, sort a list, use a link list. Do you really think he is going to re-invent the way he knows how to do it. Whether he writes it from his head or copies from his personal lib, it will be the same code. It's how all these bits and pieces are put together that make the overall program and functionality unique not the snippits, unless truely doing a unique and revolutionary thing. In fact I would venture that after a person had more than 5 or 6 jobs by your rules a coder would no longer be able to work because he would start running out of ways to reinvent the wheel.

  90. And old code is rarely good code. by JeffWhitledge · · Score: 0

    I've found that every time I rewrite a piece of code, it gets better and better. Why would I want to copy the old junk that was written by a dumber me two years ago?

    --
    These comments do express the opinions of my employers, and, personally, I think they're complete rubbish.
  91. MS Astroturfers! by Queuetue · · Score: 4, Informative

    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 that shill Didio from the Yankee Group.

    The survey is full of misleading questions and will *force* you to admit you steal. Watch out.

    1. Re:MS Astroturfers! by Anonymous Coward · · Score: 0

      That's why I listed my occupation as "Microsoft Inhouse Developer"

  92. The best thing about this survey... by fzammett · · Score: 1

    ...are those really nice checkbox images. I'm going to steal them.

    Uhh... wait... that statement kinda infers about 90% of my answers to the survey now, doesn't it?!?

    Then again, looking at them again, I'm kinda confused by the pock marks that you seem to have to "pop" to put your checkbox there. A couple of times I wasn't sure which option I was actually voting for.

    That's a survey form from a Florida-based company, isn't it?!?

    --
    If a pion (n-) collides with a proton in the woods & noone is there to hear it, does lamdba decay into the source pa
  93. Re:Choice? The correct answer is MU by __aanonl8035 · · Score: 1

    /moo/ The correct answer to the classic trick
    question "Have you stopped beating your wife yet?". Assuming
    that you have no wife or you have never beaten your wife, the
    answer "yes" is wrong because it implies that you used to beat
    your wife and then stopped, but "no" is worse because it
    suggests that you have one and are still beating her.
    According to various Discordians and Douglas Hofstadter the
    correct answer is usually "mu", a Japanese word alleged to
    mean "Your question cannot be answered because it depends on
    incorrect assumptions".

    Hackers tend to be sensitive to logical inadequacies in
    language, and many have adopted this suggestion with
    enthusiasm. The word "mu" is actually from Chinese, meaning
    "nothing"; it is used in mainstream Japanese in that sense,
    but native speakers do not recognise the Discordian
    question-denying use. It almost certainly derives from
    overgeneralisation of the answer in the following well-known
    Rinzei Zen teaching riddle:

    A monk asked Joshu, "Does a dog have the Buddha nature?"
    Joshu retorted, "Mu!"

  94. Re: Subconcious Copying by maroberts · · Score: 1

    George Harrison, "My Sweet Lord".

    Also Richard Ashcroft of Verve had unfortunate experience, with Bittersweet Symphony, getting screwed by the Rolling Stones for smpling four bars.

    Not sure whether latter got to court.

    --

    Donte Alistair Anderson Roberts - hi son!
    Karma: Chameleon

  95. Because then... by Professeur+Shadoko · · Score: 1

    you can surf slashdot while pretending to be working, and still have results to show at the end of the day.

  96. Open Disclosure by maroberts · · Score: 1

    You should have made reasonable efforts to
    a) let employer A and B know you were using code you developed for yourself earlier
    b) taken practical steps to ensure that both A and B have no claim on your software i.e not producing it on their time/ employment contract clauses.

    --

    Donte Alistair Anderson Roberts - hi son!
    Karma: Chameleon

  97. Re:I'm amazed by Greyfox · · Score: 1
    I'd flame and rant now but my head hurts too much.

    I've implemented generic linked list libraries in C on so many jobs now that I could do it in my sleep. It looks a lot like the one in glib except that it has a few more routines for walking around the list. Yes that library ends up looking almost exactly the same everywhere I've ever implemented it (Incuding the comment about how I feel about having to implement the same linked list over and over again.) Is that stealing? I think not.

    --

    I'm trying to teach myself to set people on fire with my mind... Is it hot in here?

  98. Vote early. Vote often. by Anonymous Coward · · Score: 0

    This survey is worthless so far, except to publish articles.

    I presume that we will all be responding to it, won't we? In fact, it seems that an appropriate response would be to dig through our code libraries for a perl script that can fill it out for us ... once a minute ... all weekend ... randomly.

  99. Re:I'm amazed by Anonymous Coward · · Score: 0

    > Can I be copying it without permission? I gave myself permission when I copied it.

    Did you grant written permission to the company to use your library code? In the US, you can't implicitly assign copyright -- it has to be in black-and-white.

    This is serious business -- I used to work with a guy who was threatening to sue a previous employer because they (really he) used a bunch of his personal library code. Even though nothing came of that, it had to be a pain in their asses.

    Alos, a few years back, I got hired onto a consultancy and was asked to review their code library. Almost of all of it had comments saying (C) Guy Who Recently Quit. We basically had to toss it because the idiots didn't have rights for their own library (and it was buggy spaghetti code).

  100. What counts as code? by warriorpostman · · Score: 2, Interesting


    ...a .bashrc file?

    ...an httpd.conf file?

    ...a couple javascript routines?

    ...how about an object library that I use for self-education and future reference?

    At my very first programming job, I had the opportunity to work with a few very skilled developers, and I held on to the code they used to to prototype a data management system. Is it illegal for me to have it? I'm guessing, strictly, yes. But I'll never implement that code elsewhere, because it was a very specialized client/server application for a very specialized client. I couldn't use it elsewhere, even if I wanted to...and quite honestly, most people code for applications and clients that are so specialized, that in most cases, it would be illogical to try and carry that over to another company (or even project). On the otherhand, it's useful for me to hold on to examples of "good" code and object architecture. And as far as the code I write for a particular company, it's useful for me to hang on to so that I can see what I'm now doing intelligently and what I'm still doing stupidly.

  101. survey system operating under Windows/ASP by mabu · · Score: 1

    That's a hoot. That should make a rather nice demographic IP database for tons of people. No thanks. I'm not participating in any information-gathering system like that which is running on a Microsoft product regardless of how innocuous the questionnaire may be.

  102. elisp libraries by ksheff · · Score: 1, Interesting

    My Emacs directory will follow me from job to job. It's a 1.5M gzipped tarball of lisp code and settings that's evolved over 14 years and I'm not parting with it.

    --
    the good ground has been paved over by suicidal maniacs
  103. Good coders don't copy and paste by ChaseTec · · Score: 2, Informative

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

    --
    My Hello World is 512 bytes. But it's also a valid Fat12 boot sector, Fat12 file reader, and Pmode routine.
  104. Nope. by incom · · Score: 1

    I swear, I wrote that hello world! app in total isolation from other sources.

    --
    True genius is grasping a situation like a peice of fruit, and peircing it just right so that it drains dry.
  105. Oh yeah by ENOENT · · Score: 4, Insightful

    I really want to haul the same old bloated and broken code that I wrote 5 years ago from job to job, like an albatross around my neck. That would really make me happy.

    The biggest tempatation in looking for new jobs is being able to forget the current code base forever, and never have to add YET ANOTHER feature onto already-baroque code that nobody wants to take the time to rewrite.

    --
    That's "Mr. Soulless Automaton" to you, Bub.
  106. Just a few reasons... by Saeed+al-Sahaf · · Score: 1
    Seriously, though, would you really trust a person who completely relied on copy/pasting legacy code into current projects?

    Did anyone say "legacy code"? I think we're talking about a code lib of more or less standard routines. Besides, what if you're working on a "legacy" system and need "legacy" code? Pal, if you want to spend twice or three times the time required to get the job done, knock yourself out, just don't come to my shop and ask for a job.

    --
    "Who are in control, they are not in control of anything - they don't even control themselves!" - Glen Beck
  107. By the way... by Saeed+al-Sahaf · · Score: 1

    Either you are a new programmer, a shitty programmer, or management. 'Nuf said.

    --
    "Who are in control, they are not in control of anything - they don't even control themselves!" - Glen Beck
  108. Missing Option by nlindstrom · · Score: 1
    • By law, who do you think owns the rights in a piece of software that you develop or in code that you write?
      • Me
      • My employer
      • The client who commissioned and is paying for the development
      • CowboyNeal
  109. Good memories are for wimps by moodboom · · Score: 3, Insightful

    I think the parent comment is a lot more accurate than you might first think, for people with both good AND bad memories. My memory sucks - as is true of all good C++ coders - wrap and forget. :> I often search for instances of variables with names I can't remember using the name that seems most reasonable, and I'm constantly surprised by my success.

    Then again, now that I think about it, maybe I'm just the type that's constantly surprised, period. Ha!

    1. Re:Good memories are for wimps by Anonymous Coward · · Score: 1, Funny

      My memory sucks - as is true of all good C++ coders

      Exactly how do you figure that. I happen to have an excellent... wait what were you talking about?

  110. Dr. Lessig Would Agree by Landaras · · Score: 2, Informative
    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.

    Those who want to buy a hard copy and have the referrer commission go to Creative Commons can do so here.

    - Neil Wehneman
  111. Re:I'm amazed by spectecjr · · Score: 1

    Did you grant written permission to the company to use your library code? In the US, you can't implicitly assign copyright -- it has to be in black-and-white.

    Yes, it's in the header file.

    This is serious business -- I used to work with a guy who was threatening to sue a previous employer because they (really he) used a bunch of his personal library code. Even though nothing came of that, it had to be a pain in their asses.

    There are assholes everywhere.

    Alos, a few years back, I got hired onto a consultancy and was asked to review their code library. Almost of all of it had comments saying (C) Guy Who Recently Quit. We basically had to toss it because the idiots didn't have rights for their own library (and it was buggy spaghetti code).

    Mine says: Copyright (C) 2003 Simon Cooke - Licensed for free and in perpetuity to $COMPANYNAME Inc.

    --
    Coming soon - pyrogyra
  112. Copyright of code by abertoll · · Score: 1

    I think about this a lot actually. What constitutes code that doesn't belong to YOU? Well if you write a full piece of software and you just blatantly copy it over to your next employer, I definitely think that's wrong. But where is the line between your "working knowledge" of code, and the code itself?

    Personally, when I've coded, I've always done all the research, done all the work, come up with all the code by myself. If I came up with a great loop for file I/O that I really like to use, to use with a file format I think is convenient and I use it for my employer, do I have to make sure I "forget" it? In this case everyone SHOULD keep a code library to make sure they don't ever re-use code.

    Furthermore, when I start working at a company I bring to the company MY knowledge and experience. Do they suddenly own that knowledge and experience simply because I used it on their project? 90% of the time I'm using pieces of code I wrote for myself long ago for my employer's software.

    --
    "he drew his sword Ringil that glittered like ice... and he wounded Morgoth with seven wounds..."
  113. Re:Sure, Why Not? Coding style... by SmackCrackandPot · · Score: 2, Interesting

    For writing applications, I've taken to following a coding standard. Class names begin with an uppercase C (eg. CString, CList). Members of a class are prefixed with 'm_'. Base list classes end with List (similarly for trees). Nearly every class has an Init function, along with either an Allocate or Deallocate functions, so an object can be reused without being completely destroyed. Pointers are prefixed with 'p' Functions are prefixed with the class name, so that there isn't confusion when using inheritance or base clases.

    . For lists, I have the standard, Add, Delete, Append, Duplicate functions. After doing all of this, practically every application wherever I've worked will look identical. How do you go about proving that this code is original, apart from using file logging, a personal log, or some other technique.

  114. This is not a troll by Anonymous Coward · · Score: 1, Interesting

    You may think it is.

    I can definately state that code stealing is FAR, FAR worse in commercial software than in OSS, for exactly the reason you state (that it is too easy to detect in OSS).

    I know this because I am guilty of this.

    I write both commercial and GPL code (a large SourceForge-hosted project). Yes, I have stolen several large blocks of code donated to that GPL project and put it into my commercial work. I have also inserted blocks of code I wrote at or for other companies, and a little bit of stuff that was written by other employees at my previous job.

    However all code I put into the GPL release is entirely my own work. Now a little of this could be explained by the different goals of the project, but it definately the majority of the reason is that it would be so easy to detect.

    Definatly OSS (or even copyrighted-but-viewable source) is far more observant of IP rights than any other software development. But convincing the average PHB of this is probably futile. Direct proof would get me fired, so they will continue to believe what they do, even though I know it is wrong.

  115. Survey is closed? by Xtifr · · Score: 1

    I wonder if they got buried in a deluge of complaints about the "have you quit beating your wife" nature of some of the questions? Anyway, I took a look around the "out-law" site (what a cheesy name!), and I am definitely not impressed. Their uncritical reporting of McBride crony Laura Didio's claims about Linux's costs was pathetic. There doesn't seem to be anything here I can't find on more reputable newsites. My suspicion is that this whole thing was an attempt to drum up some publicity and more hits, and frankly, I'm now sorry I gave them any. I won't be going back.

  116. Who doesn't have code library? by Hut_Mul · · Score: 1
    Code library? Yes I have one.

    Since most projects are different from one another I mainly use it as a guide or reference. But there are some function's that I've written that I use consistently. Mostly date/time functions.

    I see several responses above claiming it to be 'illegal' to transport code from job to job. I find that silly. Sure I keep a code library - but even if I didn't, I still have everything locked up inside my head. Christ, pretty soon even this knowledge will be deemed 'illegal'.

    A code library is just a short cut. Nothing more.

  117. I skipped question 6 by DeadVulcan · · Score: 1

    And I was mildly surprised when it allowed me to continue without having checked something.

    Then, later, I got

    11. Do you have your own code library?

    To which my answer was no. This was followed by

    12. Did you write all the code in that library?

    and

    13. Would you take your code library with you, if switching from one employer to another?

    To which I can't give meaningful answers. But now, it won't let me continue without giving responses!

    So the only option left for me was

    Exit this survey >>

    What a crock.

    --
    Accountability on the heads of the powerful.
    Power in the hands of the accountable.
  118. Re:You’d be surprised how much of a career&am by BlackHawk-666 · · Score: 1
    Do you understand the b-tree structure or red and black trees? Are you familiar with the order execution characteristics of the quick sort vs the bubble or ripple sort and can you explain their algorithms? Can you tell me which instructions are most useful to a debugger for single stepping through code? Are you familiar with spin locks, semaphores, mutexs? What is the seven layer network model?

    My point is, there are millions of lines of code that we all use every day without a clear understanding of all of their inner workings. As long as a programmer knows what goes in, what comes out and what it's side effects are as well as execution speed and a few other things then they are perfectly safe using library or template code. Who here knows how the GUID generation routines for Windows are coded and what level of entropy they guarantee? On second thought, don't answer that since it probably means you have the stolen Windows source code (a google didn't help me find the chances of a key being re-used by the GUID routines, any hints appreciated).

    --
    All those moments will be lost in time, like tears in rain.
  119. And the biggest offender is the US Government by bhmit1 · · Score: 3, Interesting

    I fully admit to using knowledge from previous employers (be it a script, program, or documentation) to recreate something for someone else. That being said, I keep the direct cut and paste to a minimum and stay quiet about the whole thing.

    On the other hand, every US government employee is happy to announce that they share things explicitly all over to other parts, devisions, or branches. In their own mind, once it's labeled as government property, it's free to give away. Now this sounds pretty reasonable at first, until you consider the consultant who is paid to do a small project for a single branch. Once finished, they can now go and try to make some money doing the same thing for the other branches, and even reference the other branch that they did this for. At which point, the client picks up the phone, calls the reference, and has a copy of everything you've done sent to them. They see that they have everything they need, and tell you to have a nice day, since it's their property.

    Before we start running around on a big witch hunt, let's have the US Government take a look at their own practices.

  120. biased questions on survey by Anonymous Coward · · Score: 0
    The questions are incredibly biased. I've run into 2 already like this, which provides no real option for zero percent of copying!:

    10. How much code would you take from the source of a single program without permission?
    Blocks of code comprising up to 5% of the program
    Blocks of code comprising up to 10% of the program
    Blocks of code comprising up to 25% of the program
    Blocks of code comprising up to 50% of the program
    Blocks of code comprising more than 50% of the program
  121. It's not necessarily illegal by sproketboy · · Score: 1

    It is if ONLY you've signed an NDA. I did not sign an NDA at my current employer. I explained to my employer (developing web apps) that 1/3 of the code is freely viewable anyway (right-click view source in the brower), 1/3 is the database stuff which is obvious and the 1/3 that's "business logic" is not that much of a secret anyway. What counted most (in our case anyway) is support. We support what we sell. My PHB was fine with this argument. Maybe I was just lucky.

  122. No distinction between product dev vs consultancy by comradebren · · Score: 1

    This survey is biased -- it assume defacto that there there is no "line in the sand" about whether code is proprietary or not when it is repurposed, or copied for use from another client or employer, or any other purpose.

    It also makes no distinction between coding to sell software to a client, or being paid as a consultant to develop an application for a client, which are very different things. The later assume the codebase is written for developing a software product -- the product itself will be sold, not the cost of creating the product for a specific purpose. Think Microsoft Office - a develper writes code for Microsoft to include in a project which will be sold. The developer is paid to write code for the product, which is proprietary to Microsoft. A Developer re-using any or all of this proprietary code is harmfully wrong, in my opinion.

    However, In my trade, we are often paid to fuse original code and free code libraries with custom development for a client, for a specific application. The client is paying us for the service of assembling and customizing an application for their specific needs, not to resell to someone else (ala Microsoft Office). In this case, the client does own the code we wrote in the sense that it is theirs to use, but if open source libraries were used or other generic/free code snippets and routines were deployed, it is understood that they do not own this code, but they can use and modify it (And pay for us to modify it more!) at will.

    In this latter case, copying code is a non-issue. The code is not what is being bought, the labor and expertise of the consultantancy in assembling an application is.

  123. A great use for open source! by SurfTheWorld · · Score: 1

    Here's a slightly mischievous, perhaps sleazy, method of avoiding out-and-out copying of proprietary commercial code from one company to another: Make as much of it as open source as possible.

    For example, say you're developing a set of components that will call each other using SOAP. You know that the components will be implemented in different languages, so you'll need to perform an interoperability study to make sure that everything works properly. There certainly isn't anything proprietary, or commercially viable from an exercise such as this. So talk to your boss about doing it as an open source experiment.

    Set up a project somewhere, and try to dump as much "study work" (these can be stubbed out prototypes) into it as possible. Then, being open source, you can use the prototypes as reference material when you move on to another company.

    In our project I was able to perform all of our interop work (e.g. Can perl call python services? Can java call perl services?) in an open source project. There was tremendous knowledge gain as a result, and the results are portable across employers. The only thing you have to make sure you do is not violate any company rules for release of source code. Make a point to say that you're not releasing any existing source code, you're writing *new* prototype source code in an open manner and that nothing proprietary or secret exists in said prototype code.

    Doing so allows both parties to achieve their goals: you get to keep a reference guide for future projects, and your company gets to keep it's secret code secret.

    --
    Do it for da shorties
  124. scientists get outsourced too... by Anonymous Coward · · Score: 0

    believe it or not, india has a *lot* of very, very intelligent folks (hey they're 1 billion people there). and some of these are scientists. and there are already operations being outsourced there for scientific research or applications thereof.
    anyway, personally i consider all those titles (computer scientist, app developer, etc.) to be very artificial in nature. the real question is, can you produce something that works and works well, and do so in a timely manner? that's all that matters in the end.

  125. It's a trap by taj · · Score: 1


    If you sell your coding skills as a service and insist on FOSS licenses on the resulting work, this survey is a trap. It assumes that reusing code you wrote and licensed for reuse is wrong. An interesting result to know would be how many people stopped at question 6.

    I'm sure this will show up as more evidence that IBM should be concerned in the SCO case. It appears to be leading that direction. I didnt look beyond q 6.

  126. Neptune reuses code. by abram10 · · Score: 1

    For a while, I was Neptune, god of the sea; I sank ships and conjured up storms. I reused code all of the time!

  127. Survey is biased by Salsaman · · Score: 3, Insightful

    6. Would you re-use blocks of code written elsewhere

    Only if you were confident that nobody would find out

    Whether it would be found out or not

    So where is the 'only if it were legal' option ?

    1. Re:Survey is biased by Talonius · · Score: 3, Interesting

      Yea, it seems that on every question they forgot the "..I have permission." argument. As I noted in my comments to them a great deal of the code posted on the web is done so with minor requirements for use. "Name in comments acknowledging source of code." For books you might find "Name in the about box acknowledging source of code." Some are posted as is.

      The crux of it is that most folks post code to a public repository because they want other people to critique and use it. If they didn't want others to critique and use it... wait, why did they post it?

      A great deal of the code that I have in my library consists of acknowledgement requirements. None of it is fancy stuff, it's all easily rewritable, and I understand how it works, but... how many times do you want to write a AmountToWords function for printing checks anyway?

      --
      My reality check bounced.
  128. My objections to the questions by angst_ridden_hipster · · Score: 1

    The questions in the survey seem designed to prove a point rather than gather useful information.

    There needs to be a lot more context.

    Under what contract was the code written? Ownership is not just some nebulous attribute of code; it's something that is negotiated and licensed and written into licenses and contracts.

    For example, nothing stops you from bringing your own code library from company to company if you have the ownership of that code written unambiguously into all applicable contracts, and all of the copyright licenses tolerate it. You'd be wise to heavily document that you're doing it as well, and that you have the agreement of all involved parties.

    Similarly, reverse engineering an application is only illegal when the license forbids it. Using code from other sources depends on its license: you can't just copy GPL code into a project, for example, without complying with all terms of the license. With some licenses, however, you are free to use the code however you see fit.

    The survey needs to be a lot more specific if they want to get information that's actually useful.

    --
    Eloi, Eloi, lema sabachtani?
    www.fogbound.net
  129. How much/many code/ideas can you steal? by totierne · · Score: 1

    I think there should be a code search engine set up so that javadocs can be enriched by seeing where the methods are called in code. How much can I take from studing GPL or BSD license code, or am I tainted by looking at it. And then there is ideas from magazines (and) web sites. If I actually did get around to doing coding it would be a quagmire. :)

  130. I tried the survey until I found this by Anonymous Coward · · Score: 0



    6. Would you re-use blocks of code written elsewhere

    1. Only if you were confident that nobody would find out

    2. Whether it would be found out or not

    Somehow I find the idea revolting to answer this question, when I answered the previous question similar to "Do you find it legal to reuse your own code" with no. There is not just a lack of options here, but the questionaire seems somewhat tendentious.

    Slashdot polls are much better that way, they even provide options nobody in the right mind would come up with (CowboyNeal).

    I strongly urge you to consider not taking the survey.

  131. you = teh whiner by bsd+troll · · Score: 0

    Maybe if you did a better job, since it is YOUR CODE, you wouldn't have this problem.

    It's funny that not only did you have write such poor code, you were so inconvenienced by it that you decided to whine about it on slashot.

    1. Re:you = teh whiner by Bandit0013 · · Score: 1

      Um, I would wager that very very few coders would look at code they wrote 5 years ago and not be wierded out by it.

      "Good judgement comes from experience, experience comes from bad judgement."

      It's a learning process, and yeah, I'm pretty sickened by some code I wrote in my earlier days.

  132. Re:Java / .NET / Strict OOP by s0m3body · · Score: 1

    you know what's funny ?
    why should you copy at all ?

    is everybody developing the same software all over the place ? or what ?
    i mean, when i need a hint, i'm looking into open source; but i know that i can never copy a line of code !
    not because it is not allowed; but because i'm working on a different problem !
    if it would be the same problem, then it would be already solved !

    if some looks at my code, has an idea, and then implements it, it is ok
    if someone tries to steal my code and tries to sell the same product as my company does, he is a thief
    i would say: shoot him
    but if you want to know how it works, you have a questions; come to my place and have a drink with me, and we can talk about these things

    you know, as long as you are a visitor, i like you
    but if you want to use ME to make your bloody money, then be aware, that i'm not scare of having blooded hands

  133. Interesting... by Anonymous Coward · · Score: 0

    Every AC but one so far has either been passed up on moderation or moderated negatively.

    While any member who just mentions how skewed the survey is without cursing seems to get modded to at least +2.

    Is this slashdot article just a karmafest in disguise?

  134. A horribly flawed survey! by RonVNX · · Score: 2

    It fails to distinguish what the code they're asking about does. If a developer copies snippets of mundane code like sorts, that's one thing. If they're copying in-house developed algorithms specific to the client/employer, that's a whole other ball of wax.

  135. Consider that you do not need to carry the code by Anonymous Coward · · Score: 0

    but understand the algorithm to redo over
    and over again from job to job from contract
    to contract, picking up here and there
    a better and cleaner solution

  136. Re:I'm amazed by SmurfButcher+Bob · · Score: 1

    Actually, I now have over 8,393,224 different methods of adding 1 to a number, all of them unique and not infringing on other people's rights. In fact, adding 1 to a number is about the only thing I can do anymore, since everything else *is* owned by someone else, since (at some point in time) it's probably already been done, so it'd be an infringement.

    Luckily, there's a huge market out there where people need something incremented. They hire me because their million dollar project is stalled (due to rights infringement if they steal copywritten techniques like "x++" or "y+=1"). I show up, invent a new, unique, non-infringing method of incrementation, plug it in and walk away with a large check after signing an NDA... and the client's happy, because now they can work on finding a non-infringing solution to their next line of code. Sure, their program takes a small speed hit for my increment routines (it's up to a little over 48,000 clock cycles per increment, after pipelining), and it adds about 4kb of code to the binary for each instance, but each one is unique, and non-infringing. It's also interesting to note that by 2006, at my current rate of generating unique, non-infringing incrementation techniques, the average incrementation will probably take over 2 trilion clock ticks, and add over 1 meg to the binary, per instance. [By the way - If you've ever wondered how MS Word went from fitting on a floppy, and running on a 386 with 1 meg of ram... to now needing 3 CDs, a 2+GHz chip and half a gig of ram... I'm only allowed to say that you can rest in confidence that the routine that increments the cursor position after each keyhit is safe from infringement for at least half a decade :) ]

    Some day, I hope to be able to diversify. I've got a line on a kid who thinks he can do the same thing, but with for() loops. Or, simulated for() loops... that'd be safer. The downside is, though, he uses whitespace as a delimiter between keywords, and newlines between instructions. I think that's been down before, so it might be too risky. I've also got some people who need new, non-infringing methods of using printf(), if anyone needs a gig... but you have to be fully bonded, otherwise don't apply.

    </sarcasm>

    --

    help me i've cloned myself and can't remember which one I am

  137. The comments I sent to the survey... by Gajon · · Score: 1

    The code a programmer writes, is like the music a composer writes, or the poem a writer creates. It's mine, it's my creation.

    If a company wants me to write code that I will not be able to use elsewhere, I simply wouldn't work for that company, that simple.

    What many people don't seem to understand is that code is creativity, and "creativity always builds on the past" (who said that originally?, I just know it's from creativecommons.org).

    If people couldn't reuse code, we wouldn't have todays software. We would be always reinventing everything. It's really absurd that many companies try to totally avoid what would be otherwise a social common sense duty of sharing ideas and work with other people for the benefit of all.

    That's what RMS saw many many years ago, and that's why he started the GNU project.

  138. Interesting subject, BAD survey by jtheory · · Score: 1

    Did anyone try taking the survey?

    I gave up. It was impossible for me to answer most of the questions.

    I work independantly, currently. I have developed projects for clients that I released as open source, and I've done plenty of very closed-source development.

    Who owns the code, legally? Duh - depends on the contract. I am not a lawyer, but I AM a fine-print-reader. Often it's not a matter of opinion; it's in there in the text above your signature. If you are working for a company as an employee, I guarantee there were clauses in your NDA and non-compete agreement.

    If they're looking to see how we feel about "cheating" a little, they need to ask questions about that - would you copy and reuse a low-level generic utility method that you didn't technically own (or would you just reimplement it), would you copy a whole library of generic utility code, would you copy the bulk of the code from an application you developed on contract, slap on a new GUI and sell it as a competing product (as one Indian outsourcing firm did, according to a recent Salon.com article)?

    Instead they have questions like this:

    6. Would you re-use blocks of code written elsewhere
    * Only if you were confident that nobody would find out
    * Whether it would be found out or not

    WTF is that? Suppose my answer was "NO", or "only if it's legal"?

    Sorry, guys, but writing survey questions is *hard*. You cannot simply throw a bunch of questions out there and think you're going to get useful data in return. I just quit after that one -- other people will choose randomly when there is no answer that is even remotely close.

    --
    There are only 10 types of people: those who understand decimal, those who don't, and, uh, 8 other types I forget.
  139. This can be a marketing point by jtheory · · Score: 1

    At my last company (software and internet dev) we used our internal code libraries as a big selling point, and included it in contracts that we kept copyright of the internal libs, but granted clients an eternal license to use (but not redistribute, obviously) the binary and source code.

    Trust me, clients don't object when you point to a whole chunk of the development in the spec and say "this will add no time to the schedule at all, since it's already coded, tested, and actively deployed in similar projects".

    --
    There are only 10 types of people: those who understand decimal, those who don't, and, uh, 8 other types I forget.
  140. I gave up also by SnakeStu · · Score: 1

    I agree, the survey was terribly designed. I gave up even earlier, I didn't even get to question 6. Who owns the code I write? -- well, which code?! Code I developed during work hours on my work computer at the office? Code I developed at home on my own time and hardware? (I made sure when I started the job that there was no fine print that would allow them to claim my after-hours development work, because I was running a small business on the side at the time and didn't want to have any code ownership conflicts.)

    There are so many "it depends" type of answers, and the survey was obviously not designed to handle those. All they needed to do was add a "depends on situation" response to the questions to make it more useful (although better questions and options would be preferred). Otherwise, the assumptions of those taking the survey won't necessarily match the assumptions of those who designed it, making the results meaningless. As you said, making a survey isn't trivial, and this one was clearly thrown together trivially.

    And, there's apparently nothing preventing me from answering the survey multiple times, perhaps in an automated way, to throw off the results. And even without intentional tampering, their self-selected survey population isn't going to provide any results worth extrapolating to a broader population.

    The worst part is when the worthless "statistics" from the survey are then used to try to prove some point, convince people of something, etc. I'd be surprised if this wasn't just a ruse to give them some so-called evidence of a trend, and those receiving their misguided results won't know that their methodology was a joke.

  141. Plagiarizing ourself should not be punishable by dolmen.fr · · Score: 1

    The code should be the property of the one who wrote it (the developer), with a "any-use" license given to the employer to use it if it has been written during working hours.

    Because we can't forget any good piece of software we have previously written. Erasing our memory after every project is not possible and is not what the next employer usually expects.

    Plagiarizing ourself should not be punishable.

  142. That's called industrialization,baby! by christophe · · Score: 1

    Getting all interesting subroutines written for my current customer an put them into the common firm-wide pool for reuse is even something that my boss asked for.
    From an engineer POV, this is good practice, and there is no damage for my current customer (these are purely technical libraries aimed at speeding development), but as a principle I asked my boss who theoretically owned all this code. No answer.
    BTW, all my questions about what we should do when patents will apply in Europe were unanswered too - including from our lawyers.
    This is only a top-10 worlwide IT service company...

    --
    Christophe (Don't hesitate to point out my spelling and grammar mistakes, I want to learn - Thanks).
  143. Kept a copy - they didn't by whatteaux · · Score: 1

    When I was working for the world's largest software company (I've left, and no, it's not Microsoft, despite what most prople think), I developed a tool during the Y2K bizzo, that saved their spotty white arse, internationally, big-time.

    I know for certain they don't have the source code (I made sure). I can neither confirm nor deny whether I have the source code, but I feel, in my bones, that I could probably re-create the source code (PL/I, by the way) in about 5 minutes. Maybe I'm a fast typer with a good memory.

    Unfortunately, now that Y2K is dead and buried, nobody cares. D'oh!

  144. Bad survey design - DON'T RESPOND by Anonymous Coward · · Score: 1, Interesting

    I can see a few comments on the survey itself, but less than I expected. So I think most people here are missing a crucial point. The survey design is no good! Surveys have to be constructed very carefully, or they can give useless or misleading results. As this one will.

    Some of the problems are: Not enough options in the answers. Biased questions. Questions that are meaningless except in a specific but unspecified context. Inconsistency in the depth of questions. Etc.

    An example of a bad question:

    What colour is this shade of grey?
    a. Black.
    b. White.

    To misquote Meatloaf, What's it gonna be boy, black, or white? You have to chose one, but neither are correct.

    Or to refer specifically to the survey:

    • Question 2: Why does the UK get special status? Why do all of Asia, Australia etc not count (there are an awful lot more people in Asia than in the UK).
    • Question 3: It's just not that simple - there are other options.
    • Question 4: What about rarely or often, and for completeness, always?
    • Question 5: The answer depends entirely on other factors. It's impossible to answer accurately as-is.
    • Question 6: Assumes that the one and only concern is whether somebody would find out. Speaking for myself, I just don't think that way, so that question is meaningless to me. There are many other potential issues which are totally ignored.
    • Question 7: written by someone else... what does that mean? Someone on my team? Someone working for the company that supplied the library of source code we use?
    • Question 8: The answer depends on other factors. Again, as-is, it means nothing.
    • Etc.

    Perhaps some people will say that we should choose the best answer. Well, you can only do that if there is a best answer. And for some of these questions, there just isn't. What's best? Black? Or white?

    So, folks. Please don't respond to the survey! Because if you do, it will very possibly be quoted as evidence for one thing or another, but actually the results will have very limited value. However if nobody responds, perhaps a better survey might get developed. Yeah, OK, I know. Not much chance of this is there? So lets all wait for the results to be quoted as proof of [whatever], and then lets all suffer the consequences.

    I think the Slashdot surveys have more validity and integrity than this one does. I'm serious!

  145. Crappy survey by Coot · · Score: 1

    The survey will tell you nothing. It makes no distinction with respect to software licensing or employment contracts. The questions have an underlying assumption that all code is closed source and all programmers work as employees in a closed source shop.

    I found that for almost every question there was no accurate choice present (not even close).

    Feh.

    --

    --
    “Doh!”

  146. Questions by Anonymous Coward · · Score: 0

    you have a questions [sic]

    I have a question: Do you know how to use your SHIFT key?

    1. Re:Questions by s0m3body · · Score: 1

      no, not really
      is it a problem ?

  147. How to legally launder code (IANAL) by mactari · · Score: 1

    I've been [coincidentally] giving this quite a bit of thought recently -- not so much the survey in the story, natch, but the concept of having legal to reuse code shared between work, home, and your next job.

    Your best bet seems to be to start a project at home in a few hours of your spare time with something that's as close to what you do at work as possible *without actually overlapping*, and license that under LGPL (is there a better or just another license? You need something that *forces* user to check changes back in, yet doesn't require you to open source the whole smear). Slap it up on Sourceforge (or something similar).

    Now go to work the next week and search Sourceforge for the library that comes the closest to what you need to get done. Hrm, whaddya know? It's [the name of your own LGPL'd library]. Certainly your employeer wouldn't mind you impressing those free hours into service for your company's project.

    What's more, now you're all but required to check in your changes to the library (and have to if the work's released with the lib). Perfect! Not only that, you can happily "take" the library with improvements from job to job, or even bundle with your own code later to sell for "money-as-in-real-money". Voila. Legally laundered code.

    Obviously you likely won't be able to get your entire application LGPL'd, and some companies might be totally against using open source code (don't ask permission; ask forgiveness folks). But most every coder has a few homespun tools/utilities/libraries they either reuse on the sly or rewrite with each new job. Make it legal, and feel good about releasing the code into the wild, legally, as well.

    (It's that or get a very favorable IP agreement. After your first few jobs, however, a favorable IP agreement certainly seems easy to get done, in my experience, as long as you broach the issue right after the job offer and before signing on.)

    --

    It's all 0s and 1s. Or it's not.
    1. Re:How to legally launder code (IANAL) by Anonymous Coward · · Score: 0

      Neither the LGPL nor the GPL, nor the BSD varients and X or MIT style licenses, require you to provide any changes you make back.

  148. Double E's by KFK2 · · Score: 1

    One thing that came to my mind when I was reading the comments and thinking about a code library was Electrical Engineers... They don't go and work out all the details for a power supply every time they need to build one... they usually take a known good design and change the max tolerances of parts too get what they need. A code library (IMHO) is similar to this, in that it consists of generic algorithms that get changed to meet the specific requirements that I am working with. Mine has, for example, All Pairs Shortest Path, Some Sorting, etc - mainly used for programming contests..

    And as for the patents comments, just imagine if K&R thought it wise to patent a template class or the like (or whoever came up with it).. we wouldn't have the STL for sure.

    Also with a lot of job related things, the tasks at hand are usually very specific to the project and having a library of code would make no sense because it would never get used. And if a job isn't like that - I don't want it.. too boring to do the same thing that has been done 1000's of times..

    Kenny

  149. Re:Java / .NET / Strict OOP by Kailden · · Score: 1

    I lot of companies fear having developers work on opensource projects not because of the GPL license per se but their fear that you will look at the source code...then remember one of the algorithm you've seen in that code and implement it into a proprietary product (even if you didn't explicitly or intentionally copy the code)--thus requiring that if the algorithm is similar enough--your company to open source their product. SO, in many respects..I'd beware of looking in open-source for examples of how to code unless you employer is aware of your choice. 'This is the world we live in / (oh-oh-wo)'

    --
    I need a TiVo for my car. Pause live traffic now.
  150. Transistor patent by Latent+Heat · · Score: 3, Interesting
    The point about the transistor (or the bolt, or the lock washer) is that yes, the transistor is patented. But generally, I don't make my own transistors, I buy transistors from Digi-Key. And once I buy a bunch of transistors, I can do pretty much what I want with them, and Digi-Key doesn't collect a yearly subscription fee from me for every transistor out there in a product I have sold.

    Part of this is that the transistor is a physical thing, not easily made without a large investment in equipment. If I am a little guy, I just buy transistors and I am free and clear. If I am a big enough guy to make my own transistors, I pay whatever tribute money to the transistor patent holder to set up my transistor fabrication plant.

    You could say that a compiler, while not a physical thing is not an easy to make thing, so if compilers were patented, I would just pay the license holder for the use of compiler just as I do now. But a linked list is not a tangible thing -- I don't buy a supply of linked lists to incorporate into customer products. A linked list simply comes into being when I order instructions in a special way.

    The hardware store sells an apple picker that is a basket with prongs on the end of a stick. I suppose that device is patented -- if I want to build my own stick with a basket on the end, I suppose I could and just not tell anyone about it, or I could buy the patented gadget from the hardware store and pick without recrimination.

    Suppose the patent wasn't for "basket with prongs on end of stick that proves useful for harvesting fruit" but on the "process of removing apples from high branches by using a mechanical device to make contact with the apples" and someone went around sending cease and desist orders to people picking fruit.

    Or how about if someone discovered that digging holes in your lawn on a three foot grid prevented weeds. I wouldn't have any problem with someone patenting a "lawn rejuvenator device" for sale at the hardware store, but suppose I heard of this idea and started digging those holes with an ordinary shovel (which I had already paid for) and someone sent me a letter that I couldn't do that without paying a fee?

    I say that there is a difference in kind between hardware and software patents and that software patents stink.

  151. Why not give an examination? by Latent+Heat · · Score: 2, Insightful
    Why don't you ask your candidates to take an examination? It would even be take-home -- here is a simple problem, how would you code it?

    I know a lot of people hate job interview exams, but those are perfectly legal, ethical, reasonable assessments of fitness for a job. But asking to see already-written code is just asking for trouble -- how do you know they even wrote it?

    1. Re:Why not give an examination? by Greg@UF · · Score: 1

      I've yet to find anyone who didn't have some project or other that they could show me. Yes, there have been times the applicant got permission to demo code protected by an NDA, but that was no big deal. We cut custom code for clients, and every job is different, we're not Intel headhunting AMD techs.

      If someone really has no code whatsoever that they can show me, then I've got to doubt their coding abilities. Every coder I know has some little projects they've written.

      The reason we don't do exams, is because I don't want to know how someone will solve a given problem, I want to see what their live code looks like.
      There's the amateur coders who don't know the basics.
      There's the web interfaces that are devoid of any attempt to make them look nice. "Gui's are for other people" isn't a good look when the job includes designing publicly-accessible web code.
      There's the "code comments itself" people, which usually means "Hire me, and I build-in my job security".
      There's also the guy who takes extra care to make the code bug-free and easy for the user to use. He stands out from the crowd, when you look at his code.

      There's so much that you can tell from a look at someone's live code. Even in collaborative code, the coder is usally going "I did this, and this , and not that". Most coders are proud of their code, and want to discuss it. Shutting them up, that's the hard part :)

      And in the end, I'm looking for someone with a proven ability to code for my clients. A good interview technique isn't going to show that. Nor is the ability to go home and answer an exam.
      I've had the lousy coders with good interview techniques. I've fired them 3 weeks later, too.

      The bottom line is that I have a responsibilty to find people that can do the job. If I make a bad decision, that has a direct effect on our bottom line, on our reputation with our customers, and with internal morale (and workloads).
      Of course I want to see live code samples !

      --
      -- You can't give it, you can't even buy it, and you just don't get it!
  152. It is NOT guranteed to be okay! by perkr · · Score: 1

    Good point, but it is not okay to copy code from O'Reilly however you want. It is NOT in the public domain. While they may let you, they may also sue you. So even copying code snippets from technical books can be infringing on copyright (or rather IS infringing on copy right).