There’s usually other non-stack exchange resources that pop up in searches so I’ll just scroll on to those.
And that copy pasting can include changing variable names to match yours while still violating copyright. And I agree that good programmers don’t even do that, but there’s a lot of not so good programmers out there.