I've just learnt the existence of a certain behavior from this post:
OP asks a question
He gets help from an user
He tell him it doesn't work as-is
With the help of this user only (again), he get it to work
OP answers his own question and leave the altruist user behind
I think it's clearly a lack of respect, the altruist user (moreover beginner on Stack Overflow) must feel abused and have no sign of recognition at all.
I was about to downvote OP's answer and explain him that the other user's answer deserved to be accepted, but on the other hand, it's good that the OP feels that he have to share how he resolved his problem for future visitors.
So, I thought I should share it here before.
What is the appropriate move here?