Often in StackOverflow, you find a C# or Java question that is not specifically asking for multi-threaded code, but many answers and comments focus on providing a thread safe solution. Should this be encouraged? Should I be writing sigle or multi threaded code in answers by default?
What is meta?
- Any Stack Exchange user can ask a question
- The community provides support, votes on ideas, and reports bugs
- Your voice helps shape the way Stack Exchange operates
closed as too localized by George Stocker, juan, Ladybug Killer, random, Troggy Dec 17 '09 at 0:29
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.
Imagine the scenario: Fairly new to the language user wants a bit of help doing something. They either find a question here, or ask their own. They find some crazy-threaded example, when they're still not really sure what threads are! SO is for everybody, not just the elite.
I write single threaded code by default, both when programming and when answering questions. It's basic adherence to the YAGNI, and it makes things less confusing for beginners.
I don't mind getting multi-threaded answers myself, it's sort of a value added thing.