I think these can be useful, and indeed I often post them (both to promote my own or others' answers).
First, let me counter a few points made by Cody:
You're saying that users won't take the time to read through all the answers to a question in order to find some buried treasure, but they will take the time to read through all the comments to a question in order to find a treasure map leading them to potentially buried treasure.
Well, uh, yeah? The comments appear on the page before the answers, and it's not unheard of for a question to have a dozen answers and no comments. On such a question, the behaviour Cody describes is exactly what users will do, because the comment is presented first and takes somewhere around 100 times less time to read.
Yes, comments that make specific criticisms of an answer are fine, even if they include a link to your own answer. I don't see a problem with that. The link isn't really unsolicited. Those aren't what we're talking about here. They would be posted as comments underneath a particular answer, not as comments to the question.
And what about the case when all the answers are wrong in exactly the same way? Is posting a comment on each answer - that the user will get to after reading the answer - really preferable to a heads up on the question? As a user in a hurry, wouldn't you rather have the latter?
Cody's right about one important thing: if you leave a comment like this, you're basically trying to sidestep the voting system, which is our usual way of deciding which answers merit the most visibility. That's obviously not something to do frivolously whenever you leave an answer, or even whenever you leave an answer to an old question. But the trouble with the voting system is that it's slow to adjust to late answers, and that if you're trying to compete with an answer that was highly upvoted years before you arrived, you may be waiting years - or, indeed, forever - until even a genuinely superior answer overtakes it on votes.
With that in mind, I think that commenting on a question to promote an answer is justified when:
- There are many other answers on the question, and
- They're much older, and were highly upvoted before the answer being promoted arrived, and
- It's fairly uncontroversial among users familiar with the subject matter that the newer answer is generally preferable to all the others (e.g. because the others are outright wrong, or because they reflect the more limited possibilities of an older version of the technology that has mostly fallen out of use), and
- The other answers, despite their inferiority, are not obviously ridiculous at a glance, and a person without prior warning might copy one without realising that a superior alternative exists
In that scenario, a succinct comment along the lines of:
As of February 2019, all 20 answers here are wrong (they will crash in the case where the widget is unfrobnicated) except mine/Bob's; I suggest reading that one first.
seems useful to me.
On the other hand, it's generally unhelpful to leave these comments when:
- There's only one other answer or a few short answers, so that a reader can realistically be expected to read all of them, or
- The answer being promoted was posted at roughly the same time as the others, and has been outcompeted on votes (as opposed to not yet having the chance to compete at all), or
- The answer is just one of several equally valid approaches to the problem, and the choice between it and the best of the other answers is a matter or circumstance or taste, or
- The other answers are all blatantly wrong, such that a reader who wants an answer to the question only needs to skim them to see their wrongness or irrelevance to the question. (In these circumstances, the voting system will haul a superior competitor to the top of the answer list very quickly without needing any kind of nudge.)
I'd tend to consider comments in such circumstances to be flag-worthy (as, of course, are comments promoting an answer that's since risen to prominence).
But I definitely wouldn't go so far as to condemn answer-promoting comments universally. My experience as a reader is that they tend to be useful signposts, not noise.