Most, if not all, snippets I've seen online, for code I'm looking for, have mistakes in them. I've not once been able to find a numerical algorithm that didn't have floating point errors in it. I can't imagine there being any resource of perfectly clean code snippets.
Problems in snippets are magnified when used out of context. If you don't hand analyze every line of the snippet, you'll have no idea what lurks within.
By all means, refer to snippets and examples for reference, but avoid the desired to Ctrl+C/+V them. And if for some reason you do, then you must analyse every line of that code and make sure you understand it. A hint, if you haven't modified it, possibly significantly, then you likely haven't understood it -- or you've hit the unfathomably rare occurence of a supreme quality, universally relevant, snippet.
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.
I dislike code snippets for a few reasons:
By all means, refer to snippets and examples for reference, but avoid the desired to Ctrl+C/+V them. And if for some reason you do, then you must analyse every line of that code and make sure you understand it. A hint, if you haven't modified it, possibly significantly, then you likely haven't understood it -- or you've hit the unfathomably rare occurence of a supreme quality, universally relevant, snippet.