I'm very confused by what I'm finding on this site. On one hand, it appears as if no programmer is even capable of producing original code if they have ever viewed a source code for a program which does the same thing or similar.
How is it possible for any programmer to produce original source code if they ever view the source code of any program which produces similar results? How is it that every program ever written isn't a derivative of some pre-existing program, unless no programmer ever looks at or views source code which produces a similar result? How is it that not every program available isn't a derivative of some other more basic program?
Do programmers literally never look at any source code they didn't write from scratch? I find that idea impossible, not just hard or unlikely but outright impossible.
I'm very confused, but I would like to understand. It is literally impossible that every programmer alive is simply disbarred from viewing source code if they want to be able to produce original code that isn't derivative.
How can I reconcile this with the fact that the software industry exists?
(Edit from OP) Thanks for the answers everyone. Between these, another question I asked, and reading around this site I think I'm a lot less confused. Somewhere I read that only some aspects of coding are copyrightable, not all code. Also, I would like to clarify that I am speaking from the perspective of someone about to begin the journey of learning programming from scratch. I don't even know a language yet, beyond very basic HTML. I just want to do it well, and correctly, so I am in the research and gameplan building phase. Also very new to this community, so I do apologize if I'm not using it correctly or not using the site etiquette or practices correctly.