logoalt Hacker News

bkotoday at 11:51 AM6 repliesview on HN

This is all well and good as an intellectual exercise, but in real life none of this matters. Almost no one thinks their code is copyrightable or seriously thinks their code is a moat. I've written the same chunks of code for a number of employers as has every engineer. We've all taken chunks from stack overflow and other places without carefully considering attribution.

This comes up in a few places as a kind of vindictive battle. One example is Oracle suing Google for too closely mimicking their API in Android. Here is an example:

> private static void rangeCheck(int arrayLen, int fromIndex, int toIndex) {

    if (fromIndex > toIndex)

        throw new IllegalArgumentException("fromIndex(" + 
fromIndex +

                                           ") > toIndex(" + 
toIndex + ")");

    if (fromIndex < 0)

        throw new ArrayIndexOutOfBoundsException(fromIndex);

    if (toIndex > arrayLen)

        throw new ArrayIndexOutOfBoundsException(toIndex);
}

And it was deemed fair use by the Supreme Court. Other times high frequency hedge funds sued exiting employees, sometimes successfully. In America, anyone can sue you for any reason, so sure, you'll have Ellison take a feud up with Page and Brin all the way up to the Supreme Court.

In 99.9% of instances none of this matter. Sure there's the technical letter of the law but in practice, and especially now, none of this matters.

https://www.supremecourt.gov/opinions/20pdf/18-956_d18f.pdf


Replies

freedombentoday at 11:58 AM

> Almost no one thinks their code is copyrightable or seriously thinks their code is a moat.

You'd be surprised! Among non-software management types, they often think of the code as extremely valuable IP and a trade secret. I'm a CTO and I've made comments before to non/less technical peers about how the code (generally speaking) isn't that big of a secret, and I routinely get shocked expressions. In one case the company almost passed on a big contract because it required disclosure of the source code (with an NDA). When I told them that was a silly reason and explained why, they got it, but the old way of thinking still permeates and is a hard habit to break.

Edit: Fixed errant copy pasta error. Glad that wasn't a password :-)

show 3 replies
conartist6today at 12:01 PM

Nobody ever talks about convergence.

You, right now, are taking about convergence.

If there is no artwork, there can be no copyright. If every character of the code to write is basically predetermined by the APIs you need to call, there is no artwork and no copyright.

Build a novel new API, and you'll be protected though.

sarchertechtoday at 1:33 PM

> Almost no one thinks their code is copyrightable

Every open source license is built on the premise that code is copyrightable.

show 1 reply
Riettytoday at 12:05 PM

Why were the HFT firms suing employees?

Nursietoday at 11:59 AM

> Almost no one thinks their code is copyrightable

I think this is an unusual opinion.

Code may not be copyrightable in as small chunks as you put there, but in terms of larger pieces I think companies and individuals very often labour under the belief that code is intellectual property under copyright law.

If code isn't copyrightable, from where comes the GPL?

And why does anyone care if (for instance) some Microsoft code might have accidentally ended up in ReactOS, causing that project to need to go into a locked-down review mode for months or years? For that matter why do employers assert that they own the copyright in contracts?

I think it's the opposite - almost everyone thinks their code is copyrightable, outside of APIs and interop stuff, or things so simple as to be trivial.

croestoday at 11:55 AM

> Almost no one thinks their code is copyrightable

Then why does reverse engineered code need to be a clean room implementation?

Ask any emulator developer or the developers of ReactOS

https://reactos.org/forum/viewtopic.php?t=21740

show 1 reply