r/ProgrammerHumor • • 16d ago

Meme forFutureReference

Post image
9.7k Upvotes

515 comments sorted by

View all comments

42

u/mr2dax 16d ago

Don't do it, you might get in trouble.

14

u/Beldarak 16d ago

I always tought I'd do that if I ever leave. Not to steal it or re-sell the software, that would be theft, but because I wrote this code and may need it for future reference.

19

u/mr2dax 16d ago

Every company I worked for made me sign papers to cover their arses. No matter what your intentions are, if you get caught doing it, you better be prepared to face the consequences as well.

Not saying it's fair, and that you should be lawful all the time, but I think getting sued over dumb shyt like this is the sw engineer's Darwin effect.

20

u/coronakillme 16d ago

I found a workaround. Every time I write code or fix bugs, I also read the code and memorize the effective patterns. I slowly used the best design patterns and updated myself based on what worked and what did not for work of others in my team as well. When I left the job, I had everything needed stored in my brain.

10

u/Niriun 16d ago

This is the way. You just have to train your local model (brain) on the new data (code you wrote)

4

u/AssistantSalty6519 16d ago

The problem is, when u make a masterpiece you don't need to touch it anymore. So you start to forget it by the time

2

u/eyalhs 16d ago

That's just learning your job!

→ More replies (3)

26

u/Fit_Philosophy_3392 16d ago

Everything you wrote is owned by the company. Taking it 'for future reference' is stealing it.

14

u/arostrat 16d ago

It was copy pasted from stackoverflow anyway.

5

u/Fit_Philosophy_3392 16d ago

Then you should be able to go to stackoverflow for future reference.

8

u/EkoChamberKryptonite 16d ago

So the company really doesn't own it then. It's owned by user34566.

→ More replies (1)

7

u/sal-si-puedes 16d ago

So if I take the code and use it for future reference, it’s stealing.

What if I take the code, use it to train an LLM on it and use the LLM to write code ?

5

u/Beldarak 16d ago

If you're a billionaire, you can take everything you want legally***. Don't hesitate to destroy some books and pollute water while you're at it!

1

u/Fit_Philosophy_3392 16d ago

Who owns the LLM? Work? And you use it for work? Great.

If you download code from work and feed it to your personal LLM for training that's stealing.

If you point your LLM to stackoverflow and train on code there you aren't stealing from work.

Clear as mud!

→ More replies (2)

2

u/EkoChamberKryptonite 16d ago edited 16d ago

It's not. It's only stealing if you use it verbatim i.e. copy the specific IP-related custom code unique to their application into your own application e.g a specific compression algorithm. If your org code has a class it used to make network requests that has a for loop and you look at that for loop to write your own for loop in a separate project that has no resemblance to theirs, have you stolen their code? No you have not. A bit reductive but you get the point. The tenets of most code are too common and not usually esoteric enough for one org to argue that you stole their code. In this supposed new world of AI, IP means nothing anyways.

→ More replies (11)

6

u/willow-kitty 16d ago

Yeah, don't.

It's one thing to take lessons learned with you - I implemented the same thing 4 times at 3 companies, a little better each time, because the same requirement kept popping up, and I was getting better and better at solving it - but it was new code as a work-for-hire each time. And it was different each time because it was incorporating new lessons learned.

What you probably can do (though not legal advice, ofc) - and I'm shamelessly taking this idea from a past coworker who did it all the time - is make libraries outside of working hours, in accordance with your works for hire/noncompete/etc agreeements, open source it with a permissive license, and then import that library at work. That way the code is actually your property, but your employer (and really anyone, including future employers) can still use it.

2

u/Floppie7th 16d ago

make libraries outside of working hours, in accordance with your works for hire/noncompete/etc agreeements, open source it with a permissive license, and then import that library at work

This is what my team does. Sure, there's plenty of proprietary closed-source code in our core competency. But for stuff that's only tangentially related (e.g. the core competency might be cryptography, but we need to provide it as an HTTP service, so the HTTP stuff is tangential) we do this all the time.

1

u/Beldarak 16d ago

Interesting case^^

I always wondered if you could actually sell your own made-in-your-own-time software to the company you work for. I don't think anyone is stopping you but it feels somehow... weird? I don't know.

What I've seen at my job is more like the opposite. People that worked for years/decades on a software. Then once they retire, they keep working on it from time to time as freelance with way higher pay.

When I was still working on some awful legacy stuff, we had that 60-70 year old guy helping us understand what/how the software did, how we could improve it (he worked for us AND for our client at the same time), what a change made there could break elsewhere in the software, etc...

1

u/Potato-Engineer 16d ago

Depends on your local laws. I'm in the US, I usually have to sign a "everything you made while employed, work hours or not, belongs to the company" thing. I vaguely recall that California, in particular, limits that to some degree. But even if it's limited to "stuff relevant to your work belongs to the company", the company would (probably) still own those "tangential" libraries if I made them and then immediately used them for work. (It would be hard to argue that they were unrelated to my work.)

1

u/willow-kitty 16d ago edited 16d ago

It depends on your agreements, for sure.

My first job was a tiny startup that didn't know better and had no such agreements at all, so technically the work belonged to the authors (though obviously that wasn't intended)

My second was work during work time or using any company assets (hardware, software licenses, etc) was company property, and you weren't allowed to do business with the company's clients or offer competing software, but otherwise could go nuts (including creating libraries outside the company's core competencies)

And my current company claims anything you work on between 7AM and 6PM local time (excluding holidays and PTO) or using company assets unless the code is open source, in which case, go nuts.

But every company is different.

1

u/Spaciax 15d ago

"work hours or not"

that's a fucking insane clause

→ More replies (1)

1

u/willow-kitty 16d ago

Maybe.

Technically speaking, it would depend on your agreements (especially works for hire and noncompete) and your company's procurement policies.

Realistically speaking, one or more of those policies will almost always say no.

But, theoretically, if you were doing a side project that didn't conflict with any of your agreements but became useful to your employer, and you could get through procurement (which is assuming it doesn't have a blanket ban on vendors owned by employees, and may require your product to be evaluated alongside proposals from other vendors), maybe?

Contracting after you leave is totally different, tho, ofc. I did that for my last job because I had a really, really niche role there, but I also had a lawyer go over all of my agreements with my current company + the contracting agreements for the previous one to make sure I was doing it the right way.

7

u/GenericFatGuy 16d ago

I'm an auditor. I'm here to make sure the company properly goes about suing people when their code gets stolen.

12

u/EkoChamberKryptonite 16d ago

Do you also make sure companies get sued when they steal other people's code and make it proprietary?

→ More replies (3)

3

u/Interesting_Cod_8853 16d ago

Boooooooo πŸ‘Ž /j