If it's a really popular question I think making it a community wiki is an alternative.
For instance, on this question I posted a nicely upvoted thorough answer to a popular old question whose other answers were dated. By active sort it becomes #2 (#1 is always the accepted answer), but by votes sort it's #4.
https://stackoverflow.com/questions/695151/data-protocol-url...
The part about an old answer that was highly upvoted but is no longer right definitely exists — I'm not sure if they've thought about solving that one.
This becomes especially noticeable when answers based on an old version of the language or library no longer work for a newer one.
https://meta.stackexchange.com/questions/93969/is-changing-t...
https://meta.stackexchange.com/questions/120568/is-it-possib...
I think that's not such a bad thing. https://i.imgur.com/Uq6tksu.jpg
But yes, answer rot can be a bit of an annoyance. Often it helps to check the answering date. The official answer to the problem is that one should post a new answer to an old question, but it would be great if one could just drive-by flag things as outdated, needs update or something like that.
For one thing, it seems almost all the code snippets use "print-without-parenthesis" from Python 2, so you cannot just cut and paste them into Python 3. It isn't hard to fix this, but it's a clear sign the lights are on and nobody is home.
The lack of curation is a problem too. Often the first answer is wrong, or less than optimal. From the viewpoint of somebody looking for answers you don't really want 10 people's opinion, you want one really good answer.