How can Programmers.SE be used to assist students with class assignments?
The question How to solve this problem without the use of if-else statements? was recently asked. And somebody answered with the full solution to their problem, code and all.
I don't think they kind of behavior should be allowed as it does not benefit the student at all. It almost seems like people who do that are doing it for the reputation. And not for the good of the student, since it does no good for the student to be handed the answer.
But what is the official consensus on this? Am I totally in the wrong here?