I think that two comments for that question explain why the question was closed, even if the reason is not the one I would have expected.
The problem may be (I didn't vote to close, and I even upvoted) that this is a very wide question. It's not off topic in my opinion but asking for " the methodology, step by step, with reasons for each step" may be a little out of the custom here. – dystroy
Even though it's a programming question, it's very open ended and difficult to impossible to provide you with an authoritative answer that is both specific enough for your needs and general enough to be applicable to a wider audience. – OmnipotentEntity
The FAQ says:
You should only ask practical, answerable questions based on actual problems that you face. Chatty, open-ended questions diminish the usefulness of our site and push other questions off the front page.
Your questions should be reasonably scoped. If you can imagine an entire book that answers your question, you're asking too much.
While you are asking a question for a problem you are facing, the question is not reasonably scoped. If you were writing a driver, and you had a problem with part of the code, which is not working as expected, a question about that would be more scoped.