I'm a C++ developer.
I don't know how it is in other languages, but in C++ best practices are a big thing.Most of the books recommended in The Definitive C++ Book Guide and List are best-practice books written by the people on the C++ standard committee explaining how the language should or should not be used and why. There's even a big page about good practices on the committee's website: https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines
As an experienced developer, most of the times I want to ask a question on Stack Overflow are when I don't find a good way to use some aspect of the language and I want to know whether there exists a good practice that would apply, including the rationale behind it. If there is no consensus on a good practice, I want to know what the main approaches to the problem are, and what advantages/disadvantages of each led to the absence of a consensus.
It's been a few times now that I've opened a question, explained in quite a bit of details what I'm trying to do, the issues I'm having, and asked whether there are best practices that I don't know about that would apply, and each time the question was closed as opinion-based before it could even get an answer. I only understood today that the issue was not that I didn't make it clear enough that I was asking about best practices, but that it was closed because it was about best practices.
Looking a bit through Stack Overflow Meta, I get the impression that the issue is that 1) many people ask "what's the best way to XXX" out of laziness, and that 2) many people answer best practices questions with opinions like "I prefer to do it like this" instead of presenting a rationale for one or more approaches.
Is there a way I can ask about actual best practices in a non-opinion-based manner on Stack Overflow? Is there somewhere else that I should go instead to get those questions answered?