This question:
Was closed, which makes sense, was swiftly downvoted, which also makes some sense, and in the matter for 15 minutes was deleted. Now, the question needs some refactoring, a title, the code as formatted text (the linked code is fine), and some more refined description, but it's definitely salvageable.
It is my understanding that the post is not blatantly off-topic, it is a programming question, it does not comply with requirements, which is why it should be closed until it does, but it does not need to be immediately deleted. We should not scare people away, which may have happened in this case. I would feel unwelcome, at the very least, by such an avalanche of negative feedback.
My question is, was it too harsh to delete the question without giving the OP the opportunity to refactor it?
It's a fact that they can post a new question, but, not forgetting that this is a new user, should we have had a more gentle, shall we say, approach?