I recently gave an answer for this question. Not only is it a fairly basic question, but its answer can be easily derived from the official documentation freely available on the net.
My answer was short, and in the spirit of "take this, this and this, and go fill the blanks by yourself with your own brain". I could have spent the same amount of time just giving the person the piece of code for him to copy verbatim.
I rather preferred to teach the man to fish, instead of giving him the fish cooked and chewed. However, shortly afterwards descended a barrage of answers in the style of full fledged Wikipedia articles, which of course ended with more up-votes.
Aren't these answers diminishing the purpose of this website?