Sometimes, when someone posts a question to Stackoverflow, the members write comments indicating that it's been taken from another web site, or is a homework question, rather than offering a solution. The main purpose of posting questions is to learn software concepts that are not clear or messy. True, the question may have been taken from another site, but it may be very complex to solve. In an effort to learn the concept, posting the question to Stackoverflow allows many good programmers to give many different solutions to the same problem, which provides more understanding than the original website.
So is it necessary to write discouraging comments or not?