EDIT I have finally decided that my original question is really too broad and not answerable in Stack Overflow format (constructing and broadening the MCVE on my own to try and reproduce the error, I still can't reproduce the error even in an example that is not-so-minimal any more). I have changed it to ask only a small part of the original question.
I am editing this question only to draw attention to the fact that the question linked in this meta post is not any more "based on a super-complex code structure". If it is possible (or better) to link to the old version of my question, just for the purposes of this meta-question, maybe somebody can do it (since I don't know how).
I've been on Stack Overflow for some time now... I'm not highly active, and 2.5k rep is lower than most very active users, but I do think that I know at least the basics of asking a good question.
However, I have been working on the same project for over a year now and my problems are becoming complex, and sometimes strongly relying on a complex code structure. I was mostly avoiding Stack Overflow, because it would take me hours to get a small enough MCVE, and even then the best I could do was just too long to capture anybody's attention.
I finally decided to post a question today. To explain the context, the "structure" I am working on is a Tree
implemented through Node
s. I am trying to apply some attribute-like stuff to every node of the tree, which is very templated (the first one has different possible types and return values, but all these attributes need to be handled as one, the second one is actually templated by the different concrete classes of the first one, and again need to be handled as one) -- so I am using my abstractions on the Tree
.
The project is much bigger than this -- I literally spend 2 hours to reduce it as much as possible (only the "skeleton" of the Tree
+Node
, only "skeletons" for all the abstract classes + only one concrete class example), while still keeping all the complexity that is causing the problem. If I could better identify where the problem was, I possibly wouldn't need any help in the first place.
I don't know how to make my example executable, since all the construction algorithms initializing all these structures are quite long and complex (it is a tree constructed upon a different structure). Even just initializing everything correctly takes up a screen of code. Just filling the tree with meaningless nodes would just add more text to the question (and people are having problems with the length). However, I did do my best to post the code that is as-close-as-possible to executable and compilable, as well as readable.
The question still ended up being very big. I understand that a lot of people do not want / do not have time to read such a long question, and that is okay.
But, the question also received a downvote and 4 close votes almost right away. I have to admit, this hurts a little bit, as a description of a downvote is "The question does not show any research effort; it is unclear or not useful", after I have spend 2 hours trying to make it brief, yet clear, reducing my code as much as possible but still leaving all the important details, re-writing the question a few times before posting so the order is concise. All this after searching the net and Stack Overflow for answers. After which I did the best I could -- explained my problem to the best of my ability, and came to get help and learn.
While I understand why a MCVE is important -- I would guess that the Stack Overflow community also understands that not every big project is reducable to only 10 lines of compilable, executable code that reproduces the problem.
So, I guess I want to ask: how do I improve this particular question and in general, how do I write better questions that are based on very large projects?
Frankly, I guess I am also hoping for a bigger concensus on the quality of the question: I am wondering if people closed / dowvoted it because they do not want to read something too long at all, or if they really think that this length is very inapropriate for such a question. I can accept if I'm wrong, but I would love to have some better guidelines than the comment section.