I'll occasionally do this on homework dump questions where the answers are equally bad code-dumps. 

A code-only answer to a homework question helps no one, and I say so; but don't post my own answer because the question was unclear; or because I don't want to do the OPs homework.

In general, my critiquing of a post doesn't mean I know the answer; or even would answer (in the homework case). That doesn't stop me from knowing when something is crap though.