For the past couple of days I have been noticing an increment on questions that just ask for code. I think that it will beneficial for the community if there was a flag category (probably available to users with high reputation(10k+)) that will allow immediate removal of such questions. When the question is removed a message should be displayed to the original poster explaining that SO is not an avenue to get code.
But it is an avenue to get code. Almost all answers contain code. It's not an avenue to get a lot of code written from scratch. Questions that want that should qualify for being put on hold as not demonstrating minimal understanding, and shouldn't be insta-deleted, because it's possible that with prompting the user can learn what is expected of them, add some information, and end up with a useful question.
I suspect that asking a "gimme da codez" question is one of the first interactions most of these coders will have had with SO. As such, responding with "go away. We don't serve your kind here" is counterproductive. We should be trying to teach these people the right way to use SO rather than drive them away. Now, maybe you can put together an automatic message that says "fix this and try again - this is how" more than it says "welcome to the failboat, population you" but that's not what first springs to my mind as the likely experience from instadeletion with a canned message. Even if you only manage to get 10% of the people who ask these questions to come around to the right way of doing things, it's a significant win, and worth some extra hassle winnowing them out from the rest who are hopeless.