I was aware that we do not accept generic programming questions, but does this include questions where the problem was encountered in game developing but turns out to be generic?
I came across this question, today, where a user was asking about a Unity error. A user voted to close the question as the context was generic programming, and commented on an answer telling the user not to answer such questions. Ultimately, the asker thinks the problem actually is specific to game developing, which in turn is adding to confusion. In the example, for instance, the user refers to a generic constructor problem as a "Unity error".
Previously, I have noticed that 'generic' issues encountered during Game Developing do not receive close-vote attention.
I frequently run into similar examples that are left open, answered, and upvoted. The clear difference is that it takes the effort of attempting to answer the question (or rather, solve the askers problem) to reveal the generic nature of the actual problem. Previously not giving it as much thought, I am sure some of my own answers simply address generic issues, and have nevertheless been accepted.
Examples I have seen include:
- Explaining that
variableis different to
Variable. (Similar questions may include making the same error in other contexts, such as method calls.)
- Explaining that a class presents its constructors in a specific format, and the user is not following that format (more cryptic in explaining the problem, but identical to the example question I linked, above).
- Explaining that if I create variables
b, and set
a = 5, I can not immediately retrieve
aby only referencing
- Explaining that inherited classes can not see
privatemethods, and further explaining the use of
protectedas a replacement.
- Explaining how arrays and structs work. (was only part of the answer, but made a big impact in answering the question.)
- Explaining that if you constantly refresh an input variable, every instant where there is no input, the variable will reset to 0. (This last one may appear specific to game development; however, I disagree, as I have most commonly run into this problem through non-game software development.)
- Explaining how to read file input.