In Stack Overflow, there are some code patterns that many of us recognize as problematic, and we reflexively post comments about them (they're usually unrelated to the actual question being asked). For example, in C code
while (!feof(variable)) {
...
}
is an anti-pattern, and I automatically post a link to Why is “while ( !feof (file) )” always wrong? when I see it (most recent example being File Handling and Functions in C).
I wonder if this kind of thing is common enough to warrant an automated mechanism for it. So there could be a table of regular expressions that map to comments. As soon as the question is posted, the automated comment would be added.