Yes, they are,.
Because Stack Overflow and others SE'sSE sites are about answering well scoped-scoped problems (that apply to you, but that others will meet too).
"What is the best way of doing something?" is a general question with answers that may not apply to the problems you will meet later on neither the users that will read it afterwards.
So if you want to be on-topic and, have a proper answer, be more specific, and give your requirements, they can be light, but still getting you question better scoped :
- Version of language if any (python2Python 2/3, Java, C#, ..etc.)
- Native, no library, with one library
- Focus on performance (like apply something for a thousand objects without taking too much time and consuming lot of memory because of unnecessary cloning and so on), focus on readability
- ...
And don't forget to show us what you tried so far, tell us what you think is good, and what you think is bad so people will be able to give you a proper answer for your problem.
OnAlong the same line : https://softwareengineering.meta.stackexchange.com/questions/6967/best-practices-bad-patterns-good