Following the meta post Is asking for an explanation of some code on-topic?, I learned that asking for explanation of code can be on-topic.
Now I came across the question Obscure but short batch file to remove duplicate lines from .txt file, where the poster is asking for an explanation of the code of an answer to another question.
At the moment I provided a short answer in a comment and also mentioned that they could have posted a comment to the answer where the code is taken from, requesting clarification.
However, how should such questions be treated in general (supposing they are not link-only questions and specific enough to be on-topic)?
- Is it fine to answer the questions?
- Should such questions be marked as duplicates of the referred questions?
- Should such questions be deleted, at least after having asked for explanations by commenting the linked answers?
- Should I even edit the linked answers to include code descriptions?