I asked if I can learn from that code, which obviously I can. There is no license that says "You cannot learn from this code and take the things you learn to become a better programmer".
That's exactly what I do and it's exactly what AI do.
Did you actually read the link you were given? Clean room design is because you may inadvertently plagiarize copyrighted works from your memory of reading it.
i.e. the act of reading may cause accidental infringement when implementing the "things you learn"
Surely you know this isn't the case right? Maybe you're confused because we're talking about programming and not a different creative artform?
Great artists read, watch and consume copyrighted works of art all day, if they didn't they wouldn't be great artists. And yet the content they produce is entirely there own, free from the copyright of the works they learned from.
What's the difference then in programming? Why can an artist be trusted not to reproduce the copyrighted works that they learned from but not the programmer?
They cant. which is why that quote "Good artists copy, great artists steal" exists.
AI has already been shown to be "accidentally" reproducing copyrighted work. You too, can do the same.
Its likely no-one (including yourself) will ever be aware of it - but strictly speaking it would still be copyright infringement. This is the relevance and context of the link you were given.
But fundamentally the problem is copyright, the copying of existing IP, not knowledge. grondo4 is completely correct that there is no legal framework that prevents learning from closed-source IP.
If such a framework existed, clean room design would not work. The initial spec-writers in a clean room design are reading the protected work.
Right. And they're only exposing elements presumably not covered by copyright to the developers writing the code. (Of course, this assumes they had legitimate access to the code in the first place.)
Clean room design isn't a requirement in the case of, say, writing a BIOS which may have been when this first came up. But it's a lot easier to defend against a copyright claim when it's documented that the people who wrote the code never saw the original.
Unlike with patents, independent creation isn't a copyright violation.
Did you acquire it illegally? That's illegal.
Was it publicly available? That's fine, so long as you aren't producing exact copies and violate normal copyright law.