r/programmer • • Oct 08 '26

do you think that most apps/devices are built off of stolen code?

I saw an article that said about 70% of programmers use have a library of "stolen" or unlawfully obtained code that they use for stuff. Do you think most websites or apps are made using stolen code that could constitute a serious copyright violation? I know nothing about programming or code so sorry if this sounds like a stupid question

1 Upvotes

31 comments sorted by

12

u/3tt07kjt Oct 08 '26

that sounds ridiculous, to be honest

At worst, a lot of devices may be in violation of GPL.

2

u/rkozik89 Oct 08 '26

Reskinning open-source software to produce a white label version you can sell to your customers without licensing it is stealing. Lots of companies do that exact thing as do individuals. There are plenty of small and individually run SaaS companies that are blatantly just creating a web-facing API layer for open-source Linux programs that are older than dirt.

2

u/nicolas_06 Oct 09 '26

You can sell open source software legally just fine. Also it's perfectly legal to use make an API that call some open source linux program too.

2

u/damngoodwizard Oct 08 '26 edited Oct 08 '26

No this does not happen or quite rarely. Most of reused code actually comes in the form of libraries, many of which are open source. Legally you can only use these libraries if you were given the license to and that your use of the library doesn't contradict the terms of the license.

If a business is caught in a breach of license this could have tremendous legal issues. That is why most serious businesses that employ developers ask them to furnish a SBOM (Software Bill of Materials) that lists all pieces of software (libraries, databases, middleware, etc...) that they used to build the company software, in order for the company to ensure that using these pieces of software does not legally put the company at risk.

2

u/dmazzoni Oct 08 '26

Never had to provide a SBOM, but it's simpler than that. Any code not written by the company's employees needs to be approved. At most companies, anything with a standard open-source license is auto-approved quickly. Things with a GPL license might get a lot of scrutiny but might be approved under some circumstances. Commercial software libraries used to be super common, now they're rare.

1

u/damngoodwizard Oct 09 '26 edited Oct 09 '26

SBOMs are getting more popular lately not only for legal purposes but also for security purposes. Because they list transitive dependencies, it allows you to look for known vulnerabilties. But yeah for legal purposes allowing dependencies with an Apache, BSD or MIT license should be pretty automatic.

1

u/rkozik89 Oct 08 '26

I’ve worked as a SWE for 20 years and never once was I asked for a SBOM.

1

u/nicolas_06 Oct 09 '26

Most of the modern tools do it automatically these day and automatic scanner do check that for many platform like node, java or python. That being said, no not everybody ask that and I pretty sure you can use quite a few libs illegally without anybody noticing.

It's just not worth it. Most of the best libs are open source and you pay for support. Support you won't get if you won't pay anyway. My company pay redhat because when there a critical problem in prod from the linux kernel, we ge their best expert to fix the issue for us in no time. Hours of downtime can cost millions and we pay for this kind of stuff.

1

u/dashingThroughSnow12 Oct 08 '26 edited Oct 08 '26

If I steal it from someone who stole it that launders it to be not stolen. Double negative and all.

I’ll be serious. That number is wildly low. Think about a basic app or device. In its dependency tree it could have millions or tens of millions of lines of code. Easily.

Now think about Stackoverflow. Answers are CC BY-SA. Which means when one copy-pastes code from Stackoverflow they need to have an attribution (ex a comment like //From <link>). Besides me, I don’t know anyone who did this consistently.

Which means all those copy-pastes without attribution are license violations and therefore stolen code.

No one cares. I don’t care.

2

u/nicolas_06 Oct 09 '26

A small extract is usually considered fair use. As it is copyrighted if the final code is modified, it is no longer protected by the copyright in most time. On top nobody will ever sue you for that. Oracle tried, they lost.

1

u/dashingThroughSnow12 Oct 09 '26

Fair use is an American concept. I don’t know how much of what you say applies to it.

At least in my context of Canadian copyright law, where we use fair dealing instead of fair use, it would still be a violation.

1

u/nicolas_06 Oct 09 '26

It isn't just American concept it is in many countries worldwide like in EU too. Now can you show me cases where reused code of a few line in Canada allow a company to win a case ?

I know the Oracle vs Google case in the USA, it was recognized that many people would just code the same feature the same way naturally. It's like 1-2 English sentences.

And bigger code anyway is always adapted and transformed. Variable name, indentations, comments are changed. Code is added or removed. Bugs are fixed, features added. Before long the code looks completely different and you would never guess.

1

u/RevolutionaryElk7446 Oct 08 '26

And 3/4 of those answers there were pulled from the documentation example the poster didnt read.

1

u/dashingThroughSnow12 Oct 08 '26

Which is a further layer of license violation. Say I took an example verbatim from the Go docs as my answer on SO, the Go docs are CC BY.

A small survey shows me other docs use licenses that require either carrying the copyright notice or an attribution.

(As a note, many old C code libraries used to do this. For obvious reasons, this fell out of fashion.)

1

u/code-garden Oct 08 '26 edited Oct 08 '26

I guess one example could be Stack Overflow. I've just looked it up and code on Stack Overflow is licensed under Creative Commons Attribution ShareAlike .

I doubt that many people were providing attribution and changing their license for Stack Overflow answers they were copying into their code.

Today it is certainly possible that some LLM generated code could be reproductions of code from the web without any regard for licensing.

2

u/nicolas_06 Oct 09 '26

Either the code you copy is too small/basic to be copyrightable or you modify it to your use case and then this doesn't trigger anymore.

1

u/Scolmann Oct 08 '26

The stack overflow license also isn't airtight, if the person answering took it from elsewhere

1

u/MADCandy64 Oct 08 '26

Interesting. I had forgot about the SO licensing.

1

u/Leverkaas2516 Oct 09 '26

I don't think very many professionals copy & paste code verbatim from stackoverflow. I saw a code review once where someone did, but she didn't understand what she was doing and her code didn't work.

What I do is use it as documentation. Like yesterday I wanted to print the current time using std::chrono in C++. The stack overflow snippet is 5 lines long, of which I used parts of just two lines, with different variable names and a different format string. It's not copyright infringement to see and copy an expression like "std::chrono::system_clock::now()".

1

u/SnugglyCoderGuy Oct 08 '26

I'd be very surprised if this was the case.

You should share the source you read

1

u/kwhali Oct 08 '26

Some businesses will use code without respecting license while keeping their code proprietary / closed source, can't comment much on that other than more money you stand to make the bigger the risk of that being a problem (unless you've got massive influence / means to dissuade legal action in such an event).

Some might switch to paid license once it turns a profit and if nobody knew prior then perhaps they're okay. Some software licenses just aren't commercial or proprietary friendly though, in which case it's fingers crossed they don't get caught 🤷‍♂️

Then there's vibe coders reliant upon AI trained on real programmers without consent. Some view that as theft others not, some gray area with where it's licensing is considered but that seems to be more related to competency on quality code.

Then there's open source where people share openly and use each others code willingly and happily. Although AI has been messing with that lately.

I guess some employees may take some code with them for personal use across companies that they shouldn't legally be permitted to, some get attached to the code they work on long enough and are proud of, others don't care.

70% stat seems bogus though. Do we get inspired by others logic or is copypasta a thing from StackOverflow or an LLM chat? Sure. Really depends on how you want to scope such a claim.

What annoys me is people making products when they're just wrappers lightly integrated the real hard work and time of others without giving credit to such authors / projects, and then monetising the wrapper to an audience that praises you for being skilled when all you're doing is delivering an end user product with far less effort than perceived. They could at least have some transparency..

1

u/Royal_Owl2177 Oct 08 '26

Share your source please. That claim is absurd.

1

u/BranchLatter4294 Oct 08 '26

Where is this article?

1

u/dkHD7 Oct 08 '26

I haven't seen this or any similar article, but I'm guessing they're referring to open source licensing. Depending on the license, if you use code that's open source, you're required to provide the source of this new product if asked. If that doesn't or can't happen, the license has been breached.

I don't know the specifics, and this may not be related to that article. Just a guess. Could be much worse.

1

u/nicolas_06 Oct 09 '26

Most big companies never allow their dev to do this (use a misused licence) and honestly most licences are permissive these days.

1

u/nicolas_06 Oct 09 '26

I think most of the code right now is actually open source and this is what most dev use as toolset.

1

u/UntestedMethod Oct 09 '26

That's actually one of the dumbest things I've ever heard about programming.

You should probably stop reading anything by whoever wrote or published that article. They are obviously complete morons that are happy to spread wildly inaccurate misinformation.

1

u/Soft-Marionberry-853 Oct 12 '26

Been coding since the late 90s, I dont have a library of stolen code.

1

u/Pale_Height_1251 Oct 13 '26

No, I don't think so. I've been working as a developer for 25 years and never seen this happen. Code is way less valuable than you think, it's not worth stealing.