Let's say I have a question roughly of the form:
I am trying to implement some not uncommon thing, X. I have done it in three different ways:
- Full, working, concrete example implementation A.
- Full, working, concrete example implementation B.
- Full, working, concrete example implementation C.
What is the best choice of A, B, C, as far as flexibility, scalability, and maintenance goes? How is X typically implemented?
Key points: I'm able to provide fully functional code for the different options (I saw Are questions on design only requiring minimal code off topic?). Also, the topic is implementation of a very specific feature, rather than a broader overall software design issue.
My questions are:
Is this type of question on topic?
If not, can it be made to be on topic by one of the following:
- Rewording "what is the best choice" to present it in a way that does not seem "opinion-based" (I am unfamiliar with CR's policies, I have a strong anti-opinion-based bias from SO).
- Reframing the question to present only, say, A, then asking for a review and how it can be improved, hoping that the best option comes out of that review.
- Something else.
For the particular question I have in mind, it's a behavior (regarding deserialization of objects) that I have implemented very often, but have never been able to come up with a satisfactory implementation pattern that I can stick to.