Re: student use
"“I don’t know, and nobody on stackoverflow seems to know” as an answer."
But that's a terrible answer. The combination of your knowledge and SO is nowhere near comprehensive, even if you're limiting your search to the net.
I do sometimes bring code I found on SO to design meetings, properly credited, but only when I'm presenting a list of different approaches to a given problem. SO is never the only source for these lists.