For me an answer is related to a question.
An answer about formatting and naming the vars correct is also a very common answer.
Do we have to redirect them to answers of the other questions for that?
That said, I think I would vote to close the second one as duplicate or broken code if the first answer already has the duplicate answer before the posting of the second question.
Why?
- Asked by the same person.
- A lot of duplicated code.(no follow up cause it's a different issue)
- Created same fault as in first topic.
- With the copying of the fault I'm asking myself, do he learn from the answers on previous questions?
In my opinion :
We really want to help users and help them improve themselves.
This is possible if users listen to us.
A user can't improve if they don't take valuable information to new questions/code.
So if most of the code in a second question is copy paste from earlier question => it's duplicated code so duplicated faults and you get duplicated answers.