Whenever I write a question, I try to include a lot of information or examples on what code I have and what I want the code to do.
However I feel like I over explain: I asked this question on XAML propertiesthis question on XAML properties today, and the answer (unfortunately a comment...) is basically:
For WPF, use
DependencyObject.SetCurrentValue
, for Xamarin, there is no way to achieve that.
Did I really need to make a lengthy post to get this clear and fully satisfying, one sentence answer/comment? I could have also asked "How do I change a value from a XAML control's code behind in a way that preserves a potential one way binding to that property?" It is tiresome to write a long question, and most certainly not appealing to read a wall of text to answer my question.
I do give that amount of context, because my experience so far was that when I don't, I get around 5 comments questioning my general intentions ("Why not create an overload?" - "Because it conflicts with other methods."), asking unrelated stuff ("Why is there an out parameter on a void method?" - "Because the original method is fluent and only in the example the method is void."), re-assuring my code works at all ("Your property is never set." - "Not in these code fragments, but there are others."), suggesting a different code pattern, maybe even asking something that is already implicitly answered by something I wrote ("Did you implement INotifyPropertyChanged
?" - "As I said, the binding broke but worked beforehand, so the problem is not something that would cause it to not work at any time.") etc.
It's certainly not a bad thing when people try to help by providing workarounds, but after all, sometimes I want my question to be answered and not my code to be questioned.
How do I pick the amount and pieces of context I give so people trust me that my general intention is alright, but avoid trying to overrule every potential objection in the original question already?
Basically I have the same problem like this poster, but I'm not asking for a new feature, or this one, but I'm also not asking about phrasing so I can get away without any context, but rather finding the right bits of context to make clear what I want and why I want it. (See? I'm doing it right now! I'm only linking these questions because otherwise, from what I expect, some users will read the headline, then mark my question as duplicate of those two and move on, not believing I already read those questions but could not find the answer in).
EDIT To be clear what this question is all about:
The phrasing of elaborated questions cost me 1.5 hours, whereas a short question without context costs me 1 minute.
- When I only ask the question, I get comments asking about the context. (rightfully so)
- When I provide some context with stripped examples, I get comments related to the example, which are irrelevant for the actual code. (not helpful)
- When I include non-stripped examples, I get comments on my methods (usually not helpful)
- When I include and explain the full context, I need 1.5 hours again.
How do I find a balance?