|
|
|
|
|
by lyndonh
4665 days ago
|
|
I don't like posting on SO because it doesn't matter how careful I am to word my questions I always get asked to "show your code". Even when I'm asking about general usage of an API or theory. Usually I end up posting my code and these people disappear without answering my question. People seem to be only interested in questions where they can spot missing semi colons and get some easy points. |
|
So, what you need to do is boil your problem down to an essential few lines sufficient to make the bug happen or illustrate what you are trying to do. A lot of times, when you do that, you find your answer along the way.
Sometimes it can be difficult, however. E.g., you may have a race condition that shows up in your actual code but which you can't make happen in your short example. Then you just have to explain your question as best you can.