What to do about bad answers
It seems that there are periods in this forum when there are a greater number of bad answers and I think we are in one of those periods. I often post a message when I see an answer that is clearly not good. If anyone has any suggestions for something else to do then it is probably worthwhile to suggest something.
See for example in the thread Preventing the WM_CLOSE msg (http://www.dev-archive.com/forum/showthread.php?s=&postid=784523). In there the answer is provided to override PreTranslateMessage to process the WM_CLOSE message. Is it reasonable to post a message saying that that is not a good solution?
Some people are going to complain that this post is not appropriate in this forum. Since it is discussing issues directly relevant to this forum only I think it is reasonable to have it here.
[823 byte] By [
Sam Hobbs] at [2007-11-18 9:42:49]

# 1 Re: What to do about bad answers
I think that reasonable. The goal of this forum is to help people, and if you let someone implement a bad design or one that won't work at all, then you are really helping them.
# 2 Re: What to do about bad answers
Originally posted by Sam Hobbs
Some people are going to complain that this post is not appropriate in this forum. Since it is discussing issues directly relevant to this forum only I think it is reasonable to have it here.
Well...the issues you are trying to discuss are relevant not only to the Visual C++ forum but rather to all of the forums at dev-archive.
Thus...I have moved the thread...
# 3 Re: What to do about bad answers
And to add something to the discussion. Wrong or invalid answers can be marked by a post saying that the mentioned way is wrong. But it has to follow some basic things:
- It needs to be explained why it is the wrong way.
- It needs to be explained in a technical way and not a personal one.
- It should only apply to wrong or invalid answers.
There is a big difference between a wrong/invalid answer and a different way of doing something. Usually you have several ways of getting something done. Some of the ways are proposed by some people and some of the alternative ways are proposed by others. But this does not make the alternative ways wrong by default. And that also includes solutions proposed by e.g. Microsoft. Given the Knowledge Base with its 1 million (I do not want to count them) articles (bugs, fixes, corrections etc.), it is pretty obvious that even their original solutions have to be corrected due to newer versions, errors etc.
I am only saying this, since even the mentioned 'PreTranslateMessage()' is one good example where the opinions spread far away from each other. I do not say this in regard to the mentioned thread (since I did not read it), however, this is a common example.
# 4 Re: What to do about bad answers
Originally posted by Andreas Masur
I do not say this in regard to the mentioned thread (since I did not read it), however, this is a common example. If you do not want to take the time to read it then you should not comment in this manner. I realize your comment is meant to be general but there is much, much more that is generally relevatn to this subject.
# 5 Re: What to do about bad answers
Originally posted by Sam Hobbs
Is it reasonable to post a message saying that that is not a good solution?
My humble opinion:
I think is not only reasonable, it is necesary if someone has the conviction that the solution posted is bad.
Is not that the philosophy of this forum?
And following with that philosophy it must be explained why that solution is considered bad, and why other solutions are better (or good). It will be situations where a solution will be clearly bad, but please, do not close the door to a constructive discussion about the solutions when the conviction about what is bad is not so strong. This way all of us could learn.
# 6 Re: What to do about bad answers
In Can parent wnd process it's child wnd messages? ( http://www.dev-archive.com/forum/showthread.php?s=&threadid=257389) I posted a comment about use of PreTranslateMessage. I hope I was clear enough in my explanation of why I considered it to be innapropriate.
# 7 Re: What to do about bad answers
Originally posted by Sam Hobbs
If you do not want to take the time to read it then you should not comment in this manner. I realize your comment is meant to be general but there is much, much more that is generally relevatn to this subject.
Sam...my comment has nothing to do with the thread itself and this was completely clear in my previous reply. It was only incidently related since we both know that we have quite a different opinion regarding the mentioned 'PreTranslateMessage()'.
I am honestly wondering what you led to such an answer which in my eyes is unnecessary. Even if I would have read the thread, the points stated in my previous post would be the same...
# 8 Re: What to do about bad answers
Originally posted by Doctor Luz
It will be situations where a solution will be clearly bad, but please, do not close the door to a constructive discussion about the solutions when the conviction about what is bad is not so strong. This way all of us could learn.
And that is basically an even more important point in my eyes. I do not see that many bad answers lately - at least not much more than usually. Besides that...what is a bad answer? Is a bad answer something that was given by a poster in his belief that he would be correct because he did it all the time that way? I would say no. If he/she would do it on purpose it would be a different case.
However, what I saw and unfortunately still see, is the way these 'bad' answers get handled. And this is much worse in my eyes. Many times I see answers stating that a given way is wrong and the whole explanation is done with a style of writing as if the person was the born god of programming. And that cannot be the way of dealing with each other here.
I said it several times in the past years I am a member of this forums...nobody here is perfect or the god of programming. Everybody makes errors since they are human. Sometimes it seems these things get forgotten...
# 9 Re: What to do about bad answers
Originally posted by Andreas Masur
I am honestly wondering what you led to such an answer which in my eyes is unnecessary.I was reacting to the fact that you took the time to write what you wrote yet did not take a few seconds to look at the example. That implied to me that you were assuming what the example said. My assumption could have been incorrect but I think I am justified in thinking that you could be assuming. It would have been different if there was a lot to read or whatever but in this case it would have been easy to look at it.
# 10 Re: What to do about bad answers
Originally posted by Sam Hobbs
That implied to me that you were assuming what the example said. My assumption could have been incorrect but I think I am justified in thinking that you could be assuming. It would have been different if there was a lot to read or whatever but in this case it would have been easy to look at it.
Sorry...but
I do not say this in regard to the mentioned thread...
cannot be more clearer in any words...however, this is not the topic of the thread anyway so I will leave it...
# 11 Re: What to do about bad answers
Originally posted by Andreas Masur
Besides that...what is a bad answer?A bad answer is one that:
Does not work
Says to do something that is unnecesary, especially if it can cause errors
Suggests a solution as if it is the only solution yet Microsoft does not use it and there is a solution provided by Microsoft
Is not object-oriented when there is an object-oriented solution
Does not use MFC in a MFC application when there is an easier solution that uses MFC
In the "Does not work" category there are often answers that are a guess but the person does not say that they are guessing and it takes time for the person asking for help to determine it does not work.
Originally posted by Andreas Masur
Many times I see answers stating that a given way is wrong and the whole explanation is done with a style of writing as if the person was the born god of programming. And that cannot be the way of dealing with each other here.Yes it is wrong for a programmer to tell another programmer that something must be done in a certain way. There have been many discussions of posts that suggest use of a certain way of doing things as if it is the only correct solution yet it is not the solution the experts use.
# 12 Re: What to do about bad answers
Originally posted by Sam Hobbs
A bad answer is one that:
Does not work
Says to do something that is unnecesary, especially if it can cause errors
Suggests a solution as if it is the only solution yet Microsoft does not use it and there is a solution provided by Microsoft
Is not object-oriented when there is an object-oriented solution
Does not use MFC in a MFC application when there is an easier solution that uses MFC
In the "Does not work" category there are often answers that are a guess but the person does not say that they are guessing and it takes time for the person asking for help to determine it does not work.
Yes it is wrong for a programmer to tell another programmer that something must be done in a certain way. There have been many discussions of posts that suggest use of a certain way of doing things as if it is the only correct solution yet it is not the solution the experts use.
As to the guess part, I 'guess' it's all in the way you word it. If I suggest something that I haven't actually used, but seems to be appropriate then I generally say: you might want to try looking at xxx
I don't find anything wrong with that. But then I actually do the same thing for things I am familiar with. There are many different solutions as pointed out to a given problem. And I agree with andreas that most people 'think' the solution they are offering is correct. Slamming someone for 'trying' to help seems to be counter productive. At least they are trying to help. I guess it's all about egos.
But look at it this way, if you know it's a wrong answer, then you not only get to help the OP, but also help another person who incorrectly thinks that solution works.
I may be a sarcastic twit, but I certainly wouldn't get all bent out of shape because someone posted a wrong answer. Just correct them and move on ;)
Mick at 2007-11-10 3:48:52 >

# 13 Re: What to do about bad answers
Originally posted by Mick_2002
As to the guess part, I 'guess' it's all in the way you word it. If I suggest something that I haven't actually used, but seems to be appropriate then I generally say: you might want to try looking at xxxNotice I said "a guess but the person does not say that they are guessing". It is when they say something as if they know it to be an answer but it is incorrect that is a problem.
You seem to think I am suggesting that something more be done than "Just correct them and move on". I did not intend to imply that anything more should be done but I posted this thread in case someone does have a good suggestion for something more to do.
I think it would to get responses from people that have asked questions and have received bad (bad from their point of view) answers. Unfortunately most of them won't look in this forum; they might see the question if it was in the VC forum however.
# 14 Re: What to do about bad answers
Originally posted by Sam Hobbs
You seem to think I am suggesting that something more be done than "Just correct them and move on". I did not intend to imply that anything more should be done but I posted this thread in case someone does have a good suggestion for something more to do.
Yep, that's what I was thinking. It falls into the human nature category, which will never be resolved.
Such as:
1. Indicating the original question was answered (closing the thread)
2. Using proper engrish (heh english)
3. Posting a incorrect answer.
4. ThreadJacking (my personal favorite)
Mick at 2007-11-10 3:50:52 >

# 15 Re: What to do about bad answers
Also see Can parent wnd process it's child wnd messages? (http://www.dev-archive.com/forum/showthread.php?s=&threadid=257389) in which Alex suggests using PreTranslateMessage and note that Alex has stated an intent to suggest many more times that PreTranslateMessage should be used. I really think that anyone that says that PreTranslateMessage is the best solution for that situation without first getting clarification is not helping people very much. Alex can use PreTranslateMessage but I think suggesting use of it in this manner is not helpful for beginners that don't know that there are more appropriate solutions.
# 16 Re: What to do about bad answers
Originally posted by Sam Hobbs
A bad answer is one that:
Does not work
Says to do something that is unnecesary, especially if it can cause errors
Suggests a solution as if it is the only solution yet Microsoft does not use it and there is a solution provided by Microsoft
Is not object-oriented when there is an object-oriented solution
Does not use MFC in a MFC application when there is an easier solution that uses MFC
Well...more or less I would agree with this list, although of course there are several items which are more personal opinions like the fourth etc. Nevertheless, the second item of course does not qualify such a post as a bad answer in my eyes. I do not care much whether a solution is mentioned by Microsoft or shown as the preferred way by Microsoft.
I said it several times before...there are many ways leading to Rome. As long as one is fully aware of the concepts and what is happening behind the curtains, one can provide a different answer than e.g. Microsoft without having provided a bad answer.
Originally posted by Sam Hobbs
Yes it is wrong for a programmer to tell another programmer that something must be done in a certain way. There have been many discussions of posts that suggest use of a certain way of doing things as if it is the only correct solution yet it is not the solution the experts use.
Well...I agree that it is wrong to tell anybody that the solution given is the only one. However, in this context I also would have to ask: 'What is an expert?'. It is basically a question which cannot be answered in an objective way. Everybody would say of himself/herself that he/she is an expert. Of course, one would consider e.g. the manufacturer of the library, compiler etc. as the expert but that is not reliable in my eyes. As an example I would ask whether you think the programmer at Microsoft who developed the MFC are experts regarding object-oriented technology. Certainly no. So, can I rely on their 'expert' advice? Well...one could say yes, I would say no - at least not blindly.
What I am basically trying to say is, that if you are a programmer you should be open-minded and not relying on one person telling you how it should be implying that this is the only way.
# 17 Re: What to do about bad answers
Originally posted by Sam Hobbs
You seem to think I am suggesting that something more be done than "Just correct them and move on". I did not intend to imply that anything more should be done but I posted this thread in case someone does have a good suggestion for something more to do.
I think it would to get responses from people that have asked questions and have received bad (bad from their point of view) answers. Unfortunately most of them won't look in this forum; they might see the question if it was in the VC forum however.
Well...as I have stated in a different thread where you basically started the whole thing...I honestly do not see the big issue here. If I see bad answers they are already taken care of by others. It is just a standard way you have to deal with in every part of your life. So, it is an automatic process...and thus the question is basically already answered.
If you disagree with something, you can point it out and provide your reasons and arguments why you think that this solution is bad and a different one is preferrable instead.
That happens quite a lot on this board and I do not see any reasons what should be wrong with that. The much more important thing is the way these things get handled. And that is a bigger problem. As Mick mentioned, as soon as someone points out that a given solution is bad or wrong the poster of this solution immediately thinks he gets attacked and immediately takes it personally. However, this does not only depends on the person's ego but also on the way the other poster writes his answer. Since I have pointed out this problem earlier, I will not repeat it here again...
# 18 Re: What to do about bad answers
Originally posted by Mick_2002
1. Indicating the original question was answered (closing the thread)
Well...the board does not let members close any threads. However, I do not think that this would be an appropriate solution. As soon as the thread is closed, one cannot post anything to it any longer thus it could be closed with a wrong answer...
Originally posted by Mick_2002
2. Using proper engrish (heh english)
In the way the poster can...there are many members whose native language is not English and you cannot expect them to use grammatically correct and nice-worded English.
Originally posted by Mick_2002
4. ThreadJacking (my personal favorite)
Well...what is thread jacking?
# 19 Re: What to do about bad answers
Originally posted by Sam Hobbs
Also see Can parent wnd process it's child wnd messages? (http://www.dev-archive.com/forum/showthread.php?s=&threadid=257389) in which Alex suggests using PreTranslateMessage and note that Alex has stated an intent to suggest many more times that PreTranslateMessage should be used. I really think that anyone that says that PreTranslateMessage is the best solution for that situation without first getting clarification is not helping people very much. Alex can use PreTranslateMessage but I think suggesting use of it in this manner is not helpful for beginners that don't know that there are more appropriate solutions.
Well...let me ask you one question...is this thread about bad answers in general or about answers having 'PreTranslateMessage()' as the solution?
# 20 Re: What to do about bad answers
Originally posted by Andreas Masur
Well...the board does not let members close any threads. However, I do not think that this would be an appropriate solution. As soon as the thread is closed, one cannot post anything to it any longer thus it could be closed with a wrong answer...
I meant, closing as in, hey the problem is solved thanks for the answer, and BTW this is the answer that worked.
In the way the poster can...there are many members whose native language is not English and you cannot expect them to use grammatically correct and nice-worded English.
Yes I know, this is why I said human nature, you cannot correct these things, that's the main point I am making.
Well...what is thread jacking?
Hmm in one word: XeOn ;) just responses going off in 12 different directions ;) And yes I am guilty of that myself, but hey gotta have a little fun right ;)
Mick at 2007-11-10 3:56:57 >

# 21 Re: What to do about bad answers
Originally posted by Mick_2002
I meant, closing as in, hey the problem is solved thanks for the answer, and BTW this is the answer that worked.
Okay...understood... :cool:
Originally posted by Mick_2002
Yes I know, this is why I said human nature, you cannot correct these things, that's the main point I am making.
Well...I knew...but I just wanted to point out this again, since often people are not willing to accept this here... ;)
Originally posted by Mick_2002
Hmm in one word: XeOn ;) just responses going off in 12 different directions ;) And yes I am guilty of that myself, but hey gotta have a little fun right ;)
Okay...I see...well...as long as the little fun does not 'hide' the useful information there is nothing against it... :cool:
# 22 Re: What to do about bad answers
I'll chime in now with a short comment. I'll provide a longer one later today.
This is a discussion forum. Discussion is good :D.
I agree -- "there are many roads to Rome". Which is best is determined by the specific situtation.
I believe it is perfectly acceptable to raise issues that can be caused by implementing a suggested solution. I strongly believe this can be done without using a phrase like "You are wrong". It can also be done without personally attacking the person who did the "bad post".
As long as the suggestions are constructive, and as long as they don't personally attack another member, then they are most likely not out of line.
On a side note, it is because there can be other suggestions and multiple solutions that it makes sense to not "close" threads. Many people reference old threads for solutions. The more information in them the better -- hopefully -- they will understand the solution(s).
Brad
# 23 Re: What to do about bad answers
Originally posted by Mick_2002
I meant, closing as in, hey the problem is solved thanks for the answer, and BTW this is the answer that worked.
...
Hi Brad, when are we going to have this feature? dev-archive's sister forum, VBForums have this feature where the members can edit the thread title to 'announce' their problem is resolved.
# 24 Re: What to do about bad answers
Originally posted by Andreas Masur
Well...let me ask you one question...is this thread about bad answers in general or about answers having 'PreTranslateMessage()' as the solution? Note that criticisms are more likely than positive comments. The fact that the only two examples I am currently aware of happen to be about PreTranslateMessage seems to be the worst that can be said about my replies in those threads. Since I know it is unlikely someone will say anything about it being good and since this comment is the worst that anyone has to say then the implication is that I dealt with at least these two examples in an acceptable manner.
Perhaps there would be less to complain about if there were less complaining. Don't ask me what that means, though; it just sounds logical.
# 25 Re: What to do about bad answers
Originally posted by CBasicNet
Hi Brad, when are we going to have this feature? dev-archive's sister forum, VBForums have this feature where the members can edit the thread title to 'announce' their problem is resolved.
This is getting off topic.
A person should be able to edit the thread title of threads they started here..... I'll have to verify this is the case.
Brad
# 26 Re: What to do about bad answers
Originally posted by Sam Hobbs
It seems that there are periods in this forum when there are a greater number of bad answers and I think we are in one of those periods. I often post a message when I see an answer that is clearly not good. If anyone has any suggestions for something else to do then it is probably worthwhile to suggest something.
See for example in the thread Preventing the WM_CLOSE msg (http://www.dev-archive.com/forum/showthread.php?s=&postid=784523). In there the answer is provided to override PreTranslateMessage to process the WM_CLOSE message. Is it reasonable to post a message saying that that is not a good solution?
Some people are going to complain that this post is not appropriate in this forum. Since it is discussing issues directly relevant to this forum only I think it is reasonable to have it here.
When I notice such posts, I reply and say why their suggestion is invalid. I also may post an alternative correct solution which works, or I say something like "I think" or "Maybe this..." Thats all there is to it :)
The most important thing IMHO is not to be ignorant. One should intervene and correct the situation !
Amn at 2007-11-10 4:03:09 >

