I occasionally see a bad answer that has bad advice (and often comments to that effect) but then the author of the answer inserts an Edit: _good advice here_. How do I vote on such an answer?
The answer consists of a poor / inefficient method spelt out in detail, then a one-liner with the best solution edited (by the author of the original answer).
The answer structurally looks like this:
Edit: This answer is 7 years old. You should do good things now.
Do bad things. Do bad things. Do bad things. Do bad things. Do bad things. Do bad things. Do bad things. Do bad things.
I think it would be better to provide a second answer with the good advice, so that the bad advice can be downvoted and the good advice upvoted separately. It's not clear what a vote for this answer actually means. It's not clear if someone is supporting the old answer or the new edit.
I think the motivation for the answerer to construct this duality is that you need the context of the bad advice to appreciate the good advice, so both the bad-old advice and the good-new advice are stated in the answer.
My current thinking is to downvote this kind of two-sided answer, largely by virtue of its duality and that it wasn't edited to say "don't do bad things". What else can I do about it? Should I ask them to write a second answer with only the good stuff? Should I ask them to remove the bad stuff from their answer and risk potentially losing some context? I just can't bring myself to upvote this kind of "two-faced" answer even though the advice in the edit is perfectly good.