Nissan app developer copied code from Stack Overflow
theverge.com
theverge.com
This sort of feels like a "gotcha" -- a headline that's trying to make it look like someone got caught doing something wrong, in the hopes that the story will go viral.
When I paste code, I include a comment with the link back to SO. I see it as the standard way of declaring a precedent in programming, where upvotes signal strength.
If the code you're working on is CC-BY-SA 3.0 licensed, sure.