I'd say there are some things to consider:
- Make sure you have the legal right to post the code (License, Fair use, etc).
- Make fun of the code, not the author.
- Don't just post it for the lolz. Make it in the form of "instead, they should have done this and that instead"
perl -e 'use Crypt::Digest::SHA256 qw[sha256_hex]; print substr(sha256_hex("the Answer To Life, The Universe And Everything"), 6, 2), "\n";'