Do not copy paste code on Stackoverflow
ameyvaidya.substack.com
ameyvaidya.substack.com
But yeah. Just like how many Github repositories have passwords and other secure files. Stackoverflow is shockingly full of people who pasted in secure information trying to find an answer.
I am starting to think OpSec needs to be a first year course for engineers and computer science majors.