So ever since we got certified, every time some code from stackoverflow is shown the ISO 27001 argument comes up "we can't copy code".
As a dev, I have to say not allowing code form stackoverflow is insane and nobody listens to that anyway because stackoverflow is literally for solving coding issues.
What's your take as a professional on this? How far is it permitted to copy code from stackoverflow?
Can we copy when we give credit? Do I put a link over each code snippet I copied?
Thanks for the help, in my company everyone and their aunt have their own interpretation of this and the result is, bosses are too scared so the official order is not to allow it.
Edit: We don't use any external repositories. Framework is bought, libraries are either directly from companies (Like Oracle DB library) or built ourself.
Edit 2: For example, I'd copy that piece of code, change some things around so it fits the actual use case, change the name so it fits, and put a link above it: