Stackoverflow works great for me, and I don't know why more people don't appear to use it like I do. 1) When you've got a problem, Google it. 98% of the time the answer will be in top 5 links to stackoverflow or documentation. You upvote the answer and question. 2) 1.5% of the time, stackoverflow will have a related question, but either it doesn't have an answer, or the answer has issues. You figure it out yourself,…
All the "works for me" answers like yours and the articles are just another example of what's wrong with SO. I was tempted to qualify this more, but honestly, if you can't see why "works for me" is one of the worst kinds of answers you can give in tech, then i doubt i can convince you.
How else can you respond, other than saying "the code seems to be correct, and there's not enough to reproduce the problem here. can you provide more information?"