One thing that's helped me when StackOverflow has the perfect piece of code, is to force myself to manually transcribe it instead of just using copy-paste. I have to pay more attention to how the code actually works and I get a more immediate opportunity to customise it to the project I'm working on.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
One thing that's helped me when StackOverflow has the perfect piece of code, is to force myself to manually transcribe it instead of just using copy-paste. I have to pay more attention to how the code actually works and I get a more immediate opportunity to customise it to the project I'm working on.