It might come as a surprise, but we are ultimately not here to teach people how to program. Any language will have far more adequate material available to take care of that.
With that in mind, not every question that might not be all that obvious to the OP, makes a good question for Stack Overflow. Sure, if you haven't gone through documentation or books on a certain language and its libraries, I can't expect you to immediately understand it fully. But something like the question you referenced will be answered trivially by the OP teaching himself.
In other words, it's a fair question to have when you just get started, but it's not a gap that needs to be bridged by SO, when there is adequate material out there that should allow you to pick it up yourself.