Hacker News new | past | comments | ask | show | jobs | submit | crazydoggers's comments login

If you utilize any of the company’s assets or property in its creation then they can argue ownership. For example if you write it on their laptop that you take home on the weekend, or you spend your lunch break at the computer in your office writing it, etc. (this will almost certainly be outlined in your employee contract)

If you write it at home on your personal property during your personal time, then they have as much claim to it as the work you do on your house or the models you paint or the soap you make and sell to your friends… which is none.

However, if it’s work you’re doing in the same industry, then you have to deal with non-compete clauses in your employment agreement depending on what state you live in.

Edit: This is USA law as I understand it (IANAL)


Sure; but it’s a lot more ambiguous if you’re a programmer & writing code on the weekend. Especially if the code is in any way related to your work. Also whatever your contract says takes priority over the law in cases like this.

Always read your employment contract carefully and clarify stuff like that if you need to. Your company doesn’t want copyright over the fanfic you’re writing on the weekend. If that matters to you, the best time to clarify it is before you sign the contract.


The contract explicitly includes IP unrelated to the company's business.

Yes, I've seen that too. Then I said "well, you're hiring me in part because of my opensource work. It looks like this contract wouldn't allow me to continue doing any opensource work once I start working here. That would be a huge problem for me." I think the managers involved hadn't read the employment contract itself - or didn't understand the implications of a clause like that for opensource devs. They didn't want to stop me writing opensource code when I felt like it. So we figured it out.

Contracts aren't written in blood. They're just an agreement between two parties. You don't have to agree to whatever crappy, one sided terms are waved in front of your face.

And remember, its common for companies to spend 40+ hours of work in sourcing, interviewing candidates, hiring panel discussions and so on before they finally give you an offer. Especially in the era of AI generated resume spam. It would be extremely silly to throw all that work away over a grabby IP assignment clause added on a whim by one of their lawyers. Now, yes - some companies are absolutely that silly. But most people have a lot more negotiating power than they think. Especially when it comes to ridiculous clauses like this. At a minimum, its always worth raising.


This is an extremely important point. A lot of managers don’t read the employment contracts. Often times the legal departments (or just lawyer depending on company size) has just drafted something that protects the company as much as is legally possible. That’s often the safest thing for the attorney to do.

It’s never a bad thing to redline a contract and have discussions over sections that you’re uncomfortable with. A good company will work on them with you.


First, definitely consult a lawyer and your contract. In the US contract law pretty much says if you signed it, you agreed to it, then it holds, unless the law overrides it. For example, you could sign a contract that says you are now an indentured servant, but that violates the law, so would be unenforceable (at least in the US since 1917). However if it says the equivalent of “any code you write on your personal time is our property” you basically agreed to that being the case and you’d have to consult a lawyer in your state before making a determination if that contract would hold up in court. The best assumption prior to that would be to assume it is valid.

In addition, the FTC recently banned non competes country wide, which went into effect in September 2024. There have been a number of challenges to the ruling that have yet to work through the legal system, so it’s best to consult your states laws for the time being.

But outside of that, if a company in the US is telling you that your software that you can prove you developed on your personal time on your personal property is somehow theirs, and you are certain you never signed such a non-compete or an assignment agreement that covers work on your personal time; then find a new company to work at. They are basically bullying you. If your employee contract is so ambiguous regarding copyright assignment of software written on your own personal time and assets as to not be certain, find a new company as well, as they are probably incompetent. (You’d probably be safe however, as Contra proferentem in the US is a rule that states an ambiguous contract term should be construed against the drafter of the contract)

In fact, in the US, the author always owns the copyright. So in fact the company has to put in place an agreement that outlines that your code copyright is transferred to them. If you pay someone to write software, without such an agreement, the author will still actually hold the copyright. The company can use “work for hire” but since that means they have to prove that they hired you specifically for what your wrote, that it was written in the “scope of employment”; most employers who know what they are doing will have you sign an assignment agreement. Without an assignment agreement; if you write something they didn’t hire you to write and you didn’t agree to assign the copyright to them, you own it.

In fact, if a company also wants to patent something that you’ve invented or been part of inventing, they need to get you to file a patent assignment with the USPTO. This may or may not be outlined in your employment contract, but the assignment still needs to be made. You could refuse, most likely at the cost of your employment, however the patent rights would still remain with you the inventor. Not even work for hire would transfer patent or trademark rights.

All that said, it should be obvious, however it’s probably best pointed out.. if you copy any code that is owned by the company (code written by another employee or that you transferred ownership of to the employer) then you’re committing copyright infringement and can be held liable. So you better be sure your code is 100% yours.


Just adding some links for reference.. in both California and New York, employers explicitly can NOT enforce IP assignment of work done on an employees own time and with their own equipment. (As long as the work is not related to the employers buisness). In other words such clauses in employment agreements in those states would be unenforceable.

https://www.ebglaw.com/insights/publications/new-york-restri...

https://law.justia.com/codes/california/code-lab/division-3/...


The non-compete thing never went into effect. A court paused enforcement of the rule.

As I said, there have been challenges to the rule and it’s currently under injunction.

However, if you talk to any corporate attorney they will tell the company to prepare and position itself for having to comply with the ban.

If you’re an employee with a current non-compete, assume it applies unless you consult with an attorney.

If you’re a prospective employee, and a job offer includes signing a contract with a restrictive non-compete.. personally I’d redline it, and if they pushed back I’d find another job.


Don't write code related to work on the weekend. That is unethical no matter what the law says. There is plenty of code not related to work that you can write on weekends and thus it is ethical (may or may not legally be yours but ethicaly it is)

There is no way that it is unethical. According to who’s ethics?

According to my ethics it’s unethical for a company to believe it has any say whatsoever about what I author unless I give them specific assignment of what I create for specific compensation. Outside of that, they can go float a boat.

They hired me for my talent; and will compensate me adequately or I will provide my services elsewhere; and it’s up to me to determine what that looks like when I signed a contract with them.

It sounds like the corporate lawyers have succeeded in making you think they’re doing you all the favor when you create the value for them.

There’s a reason the FTC ruled against non-competes. It’s “ethically un-American”.


The work related part makes it unethical. Unless they pay you to work weekends or otherwise compensate you (on my team when you work a weekends we expect you to take time off in the near future to compensate for that time) doing something that competes with the company you work for is not ethical.

Are you perhaps not from the United States? Your take that it’s unethical seems to contradict with nearly 200 years of American IP law, or even further back to the 1400s in English common law where non competes were considered unjustifiable restraints on trade.

In the United States IP rights go to the inventor and most must be explicitly transferred to an employer. The whole point of the patent office is to encourage inventors to invent and not allow corporations to own everything and prevent competition. Although some companies have attempted to rig the system to prevent competition, ultimately the law has come down to foster competition (see the recent defeats of patent trolls)

And as the other commenter here points out, there are so many cases where someone working at a company discovers a way to improve business in the industry they are employed in, that could compete with their current employer, and that employer is unable or unwilling to devote resources or compensate for it. Huge swaths of US innovation or driven by such things. Probably the most iconic example is Steve Wozniak inventing the Apple I while he was working at HP, which HP refused to acquire and support causing Steve to resign and start Apple.

I also write this as someone with a name on a patent I chose to transfer to a company I helped found for an invention I helped create while working there. But to be clear, that was my choice. Ultimately the law said it was my invention by default, and there was no legal, moral, ethical, or god given obligation preventing me from walking away with it.


> non competes were considered unjustifiable restraints on trad

I'm sure you will find that non-competes are perfectly legal in the US.


No they were totally banned by the FTC. And the states that do the most innovation and economic activity had also limited them significantly.

https://www.ftc.gov/news-events/news/press-releases/2024/04/...

And why do people even comment before they do like 30 seconds of googling?


From your link:

On August 20, a district court issued an order stopping the FTC from enforcing the rule on September 4. The FTC has appealed that decision. The district court’s decision does not prevent the FTC from addressing noncompetes through case-by-case enforcement actions.

They are not, in fact, blanket banned as we speak.


First off I never said they were “blanket banned”. I said “they were totally banned by the FTC” which is true and correct. And I said other states “also limited them significantly” which is also true and correct.

A Texas federal court ruled the FTC overstepped its bounds and has currently issued an injunction. However a federal court in Pennsylvania has ruled the opposite. Our legal system isn’t so simplistic that you could possibly interpret that as “it’s perfectly legal” as in the comment I was replying to.

In addition , in many if not most states (especially states in my opinion where innovation and economic activity matters most), most courts have ruled consistently against non-compete overreach and have precedents that do not favor non-competes.

For example § 16600 of the California’s Business and Professions Code, for the most part bans all non-competes along with civil penalties of $2500 per violation. Other states also have severe restrictions on what can be prevented in non competes, especially things not specifically related to the job the employee is hired for or outside of proven trade secrets, as has been the focus of most of the discussion here.

As can be seen on the following map the vast majority of states have restrictions on non competes.

https://eig.org/state-noncompete-map/

So any attempt to intemperate the current law around non-competes in the US as perfectly legal is ill informed. I don’t know if the comments on here attempting to paint things as “non-competes are perfectly legal” is either just employees being ill informed, or employers on here trying to convince people of things they wish were true.

Short take, If a company is attempting to get you to sign a non-competes you should definitely consult an attorney. Personally I will not work for anyone attempting to get me to sign a non-compete.


Maybe different states hav different laws. Even where they are legel courts look down on the idea that someone wouldn't be allowed to do there job. In all states there is some form of noncompete but generally for the most obvious cases - don't work for two companies doing the same thing with access to their private plans at the same time type of thing

> Unless they pay you to work weekends

That is really different from "Don't write code related to work on the weekend. That is unethical no matter what the law says."

I see no problem whatsoever with taking contract for emergency fixes done on weekend, billed appropriately. Or working flexible tine billed hourly.

(unless it impacts your family badly or something, but it is far from blanket ban on working on weekends)


Ehhh this is way more complicated than you make it sound.

For example, I've been in situations where I've successfully argued for some component of what we do at work to be opensourced. But I wasn't given any extra resources to opensource it. I was doing consulting work at the time and the company didn't have a culture of contributing to opensource. In that case, I spent a couple weekends cleaning up the code I'd opensourced & triaging github issues. I'm proud of my work, and I want to share it.

In another company, we were running into some limitations of the database we were using. I spent a weekend writing up a super simple database prototype from scratch, mostly as a research project for myself. I don't think we ever used any of the code I wrote. I probably ended up throwing it on github and then forgot about it. That database prototype was clearly "work related". But it was also very clearly not part of my job. - Although, working on that database made me better at my job. It helped me understand the limitations of the database we were using, and gave me some ideas on how to work around them.

How can you argue that it was unethical to do any of that work? Frankly, everyone benefited. I learned a lot. I got better at my job - (and more employable). And my company benefited directly (and immediately) from my work.


> Don't write code related to work on the weekend. That is unethical no matter what the law says.

Why getting paid and working on weekend would be unethical? Why law would relevant at all for ethics here?


It is about doing unpaid work. Most progarmmers - at least in the us - are not paid by the hour and so you get nothing for you extra time put in which is not ethical for them to ask. It is perfectly leagal for you to do it.

laws and ethics are often different but many fail to realize that.


> Most progarmmers

Yes, definitely true.

> It is about doing unpaid work.

If someone does unpaid work on weekends and it is not done as hobby or something they are very silly, exploited or both.

> which is not ethical for them to ask

definitely, though I am highly confused why someone would agree to this (unless they are basically enslaved or something which would make it even blatantly unethical)

I guess that if you agree to sky-high wages with implicit agreement to work absurdly long hours, despite written contract being different?

> laws and ethics are often different but many fail to realize that.

not sure about "many", people in general I quite happy to break laws, especially ones widely agreed to be silly and not enforced at all


You are not the arbiter of the ethics of people's choices.

Clearly you have never worked for a large company that lays claim on basically any field.

As I said what is legal and what is ethical. I believe ethically code not related to your job that you do on weekends is yours. The law may or may not agree.

My point is that your company will often claim that any code you write on the weekends is theirs regardless of what it is.

It's not that clear cut. If you work for Amazon, they claim all of your IP -- everything they are in the business of. Amazon produces movies, books, products. It's not just code.

That said, "they claim" might be leagues away from "what they could win in court", but they still try.

Supervillain shit.


I have published novels and awhile ago an Amazon recruiter reached out to me for a tech role on a team building story tracking software.

It never went anywhere but I did wonder at the time how they view employees writing their own novels or movies etc. For example, would they have any possible claims on any future novels based in those existing worlds and characters in my previous works.

Obviously they have the funds to outlast you in any claim if by small chance you happen to have a hit at some point.


> this will almost certainly be outlined in your employee contract

A majority of employees in the US are at-will, meaning there is no employment contract whatsoever.


Yes, I would love to know what my runner up was. I unintentionally ended up with the same font I currently use, Fira Code… at least I’m consistent.

This is called an evolutionary stable strategy. (my favorite type of Nash equilibrium)

https://en.m.wikipedia.org/wiki/Evolutionarily_stable_strate...


Ah yes very insightful. My comment has net 50 karma at the moment — more evidence this is a stable behavior with majority support.


Those sound like “Star Jelly”

https://en.m.wikipedia.org/wiki/Star_jelly


Any sexual hereditary information needs to be passed via germ line cells. So if it’s not encoded within a single sperm or egg cell, then it can’t be passed down via sexual heredity.

Information that might be passed from parent to offspring after conception is not hereditary by definition, and would be a type of learning, (ie birds singing to babies in eggs, antibody transferring from mother to baby)

Everything else you mention is very easily passed down via genetics which is not chemical signaling, but actual information encoding. And simple rules can lead to complex behavior.

Edit: Here’s an example to better illustrate the genes power of information encoding. Camouflage, which is a genetically heritable trait, can be incredibly complex. We can think of the information encoded in the genes for camouflage as a visual description of the environment that the animal evolved in. So the gene’s have actually encoded what the dessert environment looks like, or the sea floor, or the vegetation. That’s a single example, but every animal carries such complex information (how to navigate certain landscapes, how to survive current living pathogens in the environment, etc) within their genes.


I think eggs and certain fish recipes are the primary use of non stick. But there are also ways to cook those without non stick.

For scrambled eggs you can use a double boiler (you’ll never have had fluffier eggs). An extremely well seasoned carbon steal pan will also work wonders (basically what fry cooks use)

For fish, cooking fish whole on a grill is amazing. Another technique with stainless pans is to get the pan searing hot first. Then add a tiny amount of oil and cook the fish and don’t touch it. This should set the surface protein quickly and create a crust that prevents sticking (requires a little practice but not too hard)


After flame-grilling and steaming I'd never go back to frying fish. Steamed with green onions, ginger and some soy sauce is, like amazing.


Yes, exactly. I can’t believe how little mention of silicon and wood there is here.

Silicon is much more resistant to heat and chemicals. I believe the polymers are also more tightly bound.

I also think people cook too much on nonstick. Non stick has a place in the kitchen for specific dishes. But for the most part you can cook most things in a combination of high quality stainless steel pans and cast iron. Some food sticking in stainless is a good thing (Maillard reaction), deglaze the pan and scrape it up with a good wood spatula.


What’s important to note about this analysis is that it’s well researched with links to sources. A reader is free to disagree with what the evidence may demonstrate or not, but at least it provides an education. This is the type of political discourse that we need more of rather than the vitriol that has become standard fair.


I believe that’s an accurate model, with the caveat that it’s all relative. There’s no universal reference frame. So for the photon and his pal photons, they experience time while you (in your reference frame sitting still) are the one moving at the speed of light and not moving through time.

Edit: See below, the photon doesn’t have its own reference frame so they still don’t experience time.


Photons absolutely do not experience time. The spacetime interval of any photon is always zero, and the spacetime interval tells you how much time any particle experiences. Note that it’s invariant.


Yes you’re right.. the photon has no reference frame of its own then.

So then that would just apply to massive objects with their own reference frames.


I still don't get it, photon comes into existence and then slams into a thing for us to notice the existence. Between the being born and slamming into something time passes, no?


For everything around it .. But not for the photon?


how do you know?


Unfortunately it also feels like our tiny bubble of sanity and reason is rapidly shrinking (witness the current conspiracy laden reaction to hurricane Helene)


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: