I'm aware that self-answering is a thing and that, when "asking a question" there is an option to "self-answer" right away.
But this post, which I ran into while recommending deletion of this answer:
- The question, if asked by someone who does not mean to answer it himself would surely have been deleted.
- As far as I know broad "how to do X" questions are not welcome on SO
- The first answer requires quite a bit of editing to reach SO's expected quality
- The second answer makes the whole thread look a bit like a "R&D blog" ...
Overall the whole thing looks weird...
Ignoring the poor grammar and indecent formatting, would this user's approach of Stack Overflow be fit for the site? I'm tempted to flag the question but, considering it has eight upvotes on both the question and the first answer I guess people actually found it useful?
edit: As per Opa's request and Cody's memory, here is the original question's full text:
It's easy. Please see code in response.