It's probably obvious from my edits and comments to your question, but I think you have a valid point here.
I think there should probably be a "litmus test" on questions that ask for the "best way" to do something. If the question is essentially a "how do I" question, as yours seems to be, then the word "best" is, as you mentioned in the comments "moot".
I think a simple edit on the part of an existing user, along with/or a comment warning about the "danger" of using the "best" word ;-) would have been a better approach.
Sometimes we (I've done it too) are too hasty to flag or vote-to-close questions without taking the full context into account. It happens, unfortunately.
But that's one of the reasons we have Meta here - To discuss, review, and potentially think differently in the future about how we handle these.
Note that, while I've voted to reopen, it's possible (I'd say likely) that there's an existing duplicate on the topic. One good approach when you are asking for an updated/current answer is to:
- Look for existing questions/answers to similar or the same problem
- Reference them in your new question, note why they don't work (or aren't optimal) for you, or even just that you wonder if there's a better current approach.
You've done some of that, at least, with the note in your question that:
I checked several questions and answers on Stackexchange, but most of them seem to be quite outdated.
It doesn't necessarily mean that the question won't be closed as a duplicate, even if it's reopened as not opinion based. However, it does (IMHO) greatly reduce the chances of it being closed if you reference the other duplicates and give the reason why you believe your question is still valid.