Hacker News new | ask | show | jobs
by tempaway85751 1002 days ago
... Nothing came of it, but I took the code and shoved it into my back pocket for a rainy day ...

You can't really do this. Depends on your employment contract but code you write for an employer is usually copyright to them

... My first reaction was to publish the code on Github ...

You can't really do that either.

7 comments

I mean, I asked at the time, and I did it. If either company wants to start a legal fight over a pile of code that neither of them wanted that's old enough to be in elementary school, they know how to reach me.
The problem is that you are claiming ownership of this code and by making it available on GitHub under an MIT license you are claiming that you have the right to do so.

If I take that code and make a billion dollar business out of it, Box or Uber could then claim a share of it. That's the kind of things that companies do with the lawyers on retainer.

I then sue you for falsely claiming that you own it. You are particularly fucked because, thanks to this thread, you can't claim that you didn't know.

Even in California the "I wrote it on my own time" doesn't apply to software that relates to an employer's core business. In other places, like Washington State, you could be employed to write TPS reports and write a video game at home, and your employer would own that too.

IANAL but I have paid for advice on this very topic. I suggest you pay one too.

Long time ago my employer at the time had this in-house deployment system written by a guy that worked there. It worked well and we used it well after he had moved on. He left suddenly and started a company based on the idea. Employer went to sue him and discovered the ‘all your code belongs to us’ form was missing from his permanent file so they didn’t pursue it. That company is called Chef.
A small victory for the underdog
A spreadsheet UI didn’t relate to Box’s core business because Box didn’t sell spreadsheet UIs. Box could have had the author’s hobby project been adopted as a feature but explicitly chose not to. The author clearly owned that bit if they did it on their own resources and own time.

In other words, you can write generally useful components and utilities on your own time, network, and equipment; license them to your employer if everyone agrees; and either way you still own them. You just can’t write something directly related to or competitive with the products or processes that make your employer money.

The spreadsheet formulae and enhancements the author wrote during work hours at Uber, though, no. But even just their direct boss as an agent of their employer saying it’s ok to throw it on GitHub would probably cut them loose, especially since it’d be a derivative work with joint ownership.

All IMO of course, but that’s how I would have seen it in their shoes.

Well, you are not a lawyer. OP specifically wrote the code to help Box with its business. That's cut and dry within the scope of an employment contract, under California law. This doesn't get a safe harbor exception.
> OP specifically wrote the code to help Box with its business.

That was the intent, but not what actually happened.

Is intent to donate code enough to put it within your employment contract, when it's done outside work hours and would otherwise be outside the scope of employment?

> That was the intent, but not what actually happened.

The intent is a fact of what actually happened: which appears to be that it was written by an employee within the scope of employment to solve a business problem. Possibly outside of usual working hours, but if it’s by a salaried employee where doing work at home outside of usual working hours is itself a normal if not consistent part of employment, is probably not particularly significant.

That the employer later chose not to make use of it doesn’t change the circumstances of its creation; businesses often choose to not pursue use of exploratory work done by employees in the course of employment, that doesn’t surrender ownership of the work product.

And the version that was further developed within and in response to Uber business needs and actively used at Uber before the function for which it was used was terminated is an even clearer case (insofar as it is a distinct work from the original) of work-product (that it quite likely is also an unlicensed derivative work by Uber of proprietary Box code doesn’t mitigate that, though it puts Uber in the position of potentially being both a beneficiary and victim of IP violations.)

You misunderstand. When he wrote the code, which was related to the company's business, the company owned it. Even in California. He couldn't have "intent to donate the code" because he didn't own it in the first place. The fact that he "intended to donate it" demonstrates that it was related to the company's business.

From a practical perspective, even if you think they don't own it, do you have the money to argue that in court if they decide that they do?

IANAL. If you are having issues like this, get legal advice from a lawyer. Not HN.

> OP specifically wrote the code to help Box with its business.

This is a leap

It’s stated by OP in his blog post.
I built a side business that makes five figures of MRR that started while I was at Box and continued through my tenure at Uber. It's still going. If anyone was going to sue anyone about anything, it wouldn't be my shitty spreadsheet library.
Excel does not relate to Ubers’ core business.

I’m nearly 100% certain we can look back at this comment in 20 years and find that absolutely nothing happened.

The author explains how analyzing and presenting data was worth millions of dollars. The author documents how a senior executive instructed him to write excel. It is clearly their core business. Also, and this comes back to the fantasy/denial/wishful-thinking aspect here, neither I nor the law says core business. That's a word that you added. If you did it as part of your job, then it is, by definition, part of their business.

I am also nearly 100% certain we can look back at this comment in 20 years and find nothing happened, but only because nobody will take this code and make a billion dollar business. If they did, I guarantee there would be a law suit.

> neither I nor the law says core business

That’s just factually false. You specifically wrote:

> Even in California the "I wrote it on my own time" doesn't apply to software that relates to an employer's ***core*** business.

You can’t complain about people being “wishful” or in “denial” when they are quoting you.

Maybe California law is silent in the topic, but Aeolus wasn’t the person who introduced that specific phrase.

Oh that’s embarrassing. I did. Apologies. I was wrong to write “core” and wrong to complain when you did it.
Excel is not their före business. That executive knows nothing. This is an example why you need product managers and engineers don't talk to users.
Literally today I was in a fireside chat where the speaker told us the IP law department at a previous employer brought in a couple billions in revenue by suing for infringement.
Sure, but they weren’t sueing a rock.

Getting a judgement against an individual is vanishingly unlikely to result in any profits.

Probably even more pertinent, in my last job, I worked with a guy who got sued for taking the source code with him.

https://unicourt.com/case/pc-db5-better-holdco-inc-et-al-v-d...

Is there any other industry where workers are so beholden to their employers that they cannot simply create something of their own without fear of legal action?

How did we get to this point as an industry and how do we change this destopia?

Can you source the claim about Washington State?
Kinda the other way around. California has a law that states such contract clauses are unenforceable. I could show you that. Washington State does not.
Big facts
I’d recommend you update the article on those two points, because because as it is now, the article makes it sound like you stole code from both Box and Uber.
Fair enough. But I'll leave my comment there as general advice for other readers

enjoyed the article, the bit about Excel circular ref linear regression was wild

I don’t think its relevant that the code is old. The code is owned by the entity that’s paid for it. I also found that party of the essay really surprising.
This seems like a reasonable amount of pragmatism. As with most things in contract law, it's not meaningfully illegal unless some claimant is actually going to enforce it. You give enough context in the post to alert at reader that they should be careful of using it.

Thanks for sharing a cool story.

I was also absolutely gob smacked at this. Will they care? Probably not. Are you putting yourself at the absolute mercy of them deciding not to care? Absolutely.

I would have a hard time sleeping... like this would be like being in IT and knowing the backups were bullshit.

Is this a thing in the US? Here, if the code was written of your own volition outside of work hours then it's yours.
“Work hours” are less clear for salaried workers who may or may not take work home: if it was written to solve a problem for the employer, reviewed with other workers at work, but ultimately not further pursued the status seems murky.

The later derivative that was actively used by and updated for the requirements of another employer during the coarse of work seems to more clearly their property as a derivative (but also murky because it is potentially an illegal derivative of the earlier work, if that was owned by the earlier employer.)

That's not what happened here though. For salaried workers everything you do that is related to your job is owned by your job. That's the default even if your contract doesn't state it. He may not have been directed by his boss to make the code for Box, but he did it with the intent of helping Box's business, as a salaried worker. That makes it Box's property.

But even if you are unconvinced of that, work was clearly done on it on company time at Uber, where it was deployed as part of Uber China's business infrastructure. That work is absolutely owned by Uber (with maybe also some claim by Box). Not owned by OP.

It depends on your employment agreement or contract. Most contracts I have seen say that any IP you develop related to what you're doing at work is the employers.
It only depends on your employment agreement in the other direction. Work done for hire is by default owned by your employer under federal law. For salaried employees it doesn't matter if it is done during working hours.

The employment agreement can give up this right for things not related to the company's core business, and I usually insist on that in my agreements. But that is not the default behavior.

Surely someone has to ask for it before it's work done "for hire".
I usually insist that personal and open source work done outside of the product areas I work on are not company owned. Otherwise if I work on financial software at a bank, and then at home I work on defi/blockchain based financial stuff, I could be setting up a liability for me or my users.
Now I understand what you are saying, and no. For a salaried employee it pretty much covers everything you do that is related to your job, with that “related to your job” being interpreted very loosely, or done with company equipment or on company time.
That story just doesn't seem plausible. Maybe for Box, but it feels like a stretch, and definitely not for Uber.
The real liability is sharing publicly that you did this. But hey, people have done far worse for attention and fake internet points, right?
It’s pointless to worry about being sued by a large corporation. If they want to bankrupt you, they always can, regardless of whether you did anything wrong or not.

We are like ants to them, they can squash us at any time, but most of the time we are too small to worry about.

> If they want to bankrupt you, they always can, regardless of whether you did anything wrong or not.

Misses the point, which is: the likelihood of being sued increases when you break contracts or appear to do so

Cool -- if one of the companies wants to issue a takedown request, they're free to make the case for it.

It's funny there's this idea that a company _might_ be potentially injured over code they do not want or know they had being made open source by its actual author, even though many of those companies will gladly use open-source tooling without ever contributing anything back.

Perhaps more soundly, though, in California – where Uber is headquartered – IP/Copyright for code is a huge legal question that the state and federal Supreme Court has no clear answer to. Sure, you obviously can't secretly clone Uber's entire stack, slap a new company logo on it, and start up as a competitor. But if you, as an author, wrote some code for a company under an IP agreement, then no-longer worked at said company, and then later adapted and expanded upon that code (or even started over, with the knowledge of what you learned from others' work): are you, at the originator, not legally allowed to be inspired by your past work? That's not something you, me, or even the company could decide.

There are gray areas but I do not think you are in one.

> and then later adapted and expanded upon that code (or even started over, with the knowledge of what you learned from others' work)

These are extremely different scenarios. Starting with a copyrighted material and modifying it is not at all the same as reading material and starting over. The first is violating copyright, the second is a derivative work.

If I read everything correctly, what you describe doing is taking code owned by the first company and modifying it for the second company. That’s not at all a gray area. It’s a copyright violation. You the engineer sign away your rights to the code when you built it for company 1 while employed by them. Their employment contract for-sure states they own any work produced by you during your employment, and you agreed to this.

If the first project was done off of company time, posted publicly on a private account, you might have a claim to the rights.

I know you’ve dug your trench too deeply to change your mind at this point, but anyone reading your comments should know what you did was technically illegal and can get people in legal hot water.

I wrote the comment above, though I'm not the author of the code that you appear to think I am. But I am in agreement with him.

> Their employment contract for-sure states they own any work produced by you during your employment, and you agreed to this.

There are many open legal questions as to where this line is drawn. Surely the line falls somewhere between "every character I've ever typed on a keyboard" and "the verbatim code". I personally don't think he's crossed it. IP ownership is much more complex than portrayed in HBO's Silicon Valley. That is my opinion.

Furthermore, when I worked at GitHub (now acquired by Microsoft, so I'm sure things have changed drastically) -- there were very lax IP ownership agreements in the employment contracts around code ownership, because the legal department was worried that if found in any way conflicting with California law it would render the entire IP claims null and void (which does have precedent in California).

The point is we don't know, and I think OP would know better than us if it was disallowed or not.

Like many things in this area, the answer is usually "You'll find out if you want to go up against an army of lawyers". The last three companies I worked for all claimed ownership of any IP I create, on or off the job, using company's equipment or using my own equipment. One of them explicitly called it out during the interview: You will have to stop working on open source or publishing side projects when working here. Can they do that? Maybe, probably not. It doesn't matter because I do not plan to bankrupt myself fighting their lawyers.
Regardless of the fact that California is much, much more strict in what they allow, to the point where oftentimes a company’s lawyers won’t even try:

Fine. Don’t fight, I agree, that would be an unfair fight and a waste of time/money.

The US court system requires a “good faith” effort to settle the issue before it enters the legal system. A cease and desist for example— whatever it is, you’d have plenty of time to simply decide it’s not worth it and remove the code once they take notice.

As it is, this is all no harm, no foul.

IANAL: In California they cannot, unless it is related to the employer's business (so if the employer is Apple, Google or AWS, they probably can). In most states they can.
IANAL but I understand the distinction is:

1. I copied this to disk, and I've iterated on it. Derivative work. Company owns it.

2. I created a new original work from scratch, based on my experiencing doing it once or twice before. Independent work. Author owns it.

> IP ownership is much more complex than portrayed in HBO's Silicon Valley.

IANAL; ut's not quite that simple, but it's in the right general direction. If you need specific advice, talk to an actual lawyer tho.

I agree this seems fairly clearly illegal.

That said, I think OP is morally in the right here, and I wish I had the guts to do similar things.

Sharing code is a good thing. Helping one company innovate using code that another company chose to ignore is also a good thing.

I'm not sure how we weigh up the morals here. If you've done something using a companies resources (laptop, desk, chair etc.) and they're paying you and the contract says they own it I don't see how you can have a moral high ground. Maybe there should be some way to allow these ownership concepts to expire so that society benefits overall but right now we don't have that.
> If you've done something using a companies resources (laptop, desk, chair etc.)

You're making a huge assumption that this is what happened.

At one point in the article there is a photograph of a chair in the uber hallway and a caption indicating that the couch in the picture (or one similar to it) was where most of the work was done for this project.
When property does not serve its purpose it is no longer morally binding, just legally. And that’s if you convince me proprietary code ownership has any moral standing at all. Sometimes, I follow the law not because it’s particularly the right thing to do but because I don’t want to get in any trouble.
Different person, but when I asked if I could publish code as open source (where appropriate), I was told that that’s fine, as long as I don’t associate it with the company in any way (e.g. non-company specific stuff is ok).
Well, he just... did
It’s trivial to tell ChatGPT to rewrite the code base so it not longer resembles the original and then publish as a new thing. So yea, you can.
Trivial to ask for a ChatGPT rewrite. Not trivial to make sure it works.
Derived work