I know we have either been deleting or locking code-trolling based on popular vote. Deletion will obviously discourage new user, because they won't see the questions until they get 3000 rep. Locking is different, though. The question still appears on the site, except you can't upvote/downvote/edit or pretty much anything else. The lock message explicitly states that "This is not considered a good, on-topic question for this site." However, according to many, "A certain portion of users simply won't read rules/guidelines/faqs, no matter how much you bludgeon them with them." (ref)
This is extremely problematic for the trolls out on the internet, who would actively seek out stuff like this, which brings me to my question, is a historical lock enough?