6

I lurk and see a lot of questions of the type "Is this a good design?" and then there's an abstraction of the problem using ClassA/ClassB/Foo/Bar/etc. or animal classes Dog/Cat/etc. See more examples. In addition to the abstraction, one sometimes writes, "my actual problem is more complex..." etc. The problem with answers is that they tend to generate more heat than light on the subject. Is an "infinite" iterator bad design? is a good example, in my opinion. The question is interesting, but it's nearly impossible to answer it definitively. Even the accepted answer says "it depends on the context" (which wasn't really specified in the question).

Shouldn't there be advice on how to ask questions for design-related questions to avoid "general" cases, that using abstractions of the problem (instead of the gory details) leads to answers with "it depends" in them?

I suspect people don't supply details for several reasons:

  • proprietary information;
  • insecurity about their own design;
  • it takes longer to describe the details (software constraints are complex);
  • gamification of SE, a.k.a. quest for Internet Points, a.k.a. the TL;DR factor: one is more likely to get answers and up-votes if a question is simpler.

Design can be a wicked problem, which essentially means that any decision you make to solve the problem has the potential to change the problem (implying you didn't understand it fully at the start). I realize all these things make design questions hard for SO, as discussed here. But I think one stands a better chance of getting good answers if the questions are fully qualified (and not abstracted). As for most complex questions, a TL;DR summary is recommended at the start.

Another way to think of this: the phrase "it depends" in an answer about design (as of this edit, there are more than 600 answers like this!) is a symptom of a question lacking constraints or context.

7
  • 1
    Shouldn't there be advice for design-related questions to avoid "general" cases, that using abstractions of the problem (instead of the gory details) leads to answers with "it depends" in them? - Are you asking if it's OK to close these with the "Too broad" option?
    – BSMP
    Jul 15, 2015 at 14:16
  • 1
    This is related, if not a dupe: meta.stackoverflow.com/questions/256663/…
    – rene
    Jul 15, 2015 at 14:17
  • @rene Related because design is complex, but not a dupe IMO. The "opinion" part gets confused with the "it depends" part. Jul 15, 2015 at 14:29
  • @BSMP I'm not asking about closing, as it's a touchy subject. Nobody would close that "infinite Iterator" question, because it was too broad (even though "it depends" was edited into the accepted answer, after all the heat generated in the comments). I'm posing the question about specific Help advice for asking design questions (edited to put a link to the help page). Jul 15, 2015 at 14:34
  • I don't see anything wrong in the tag statistics. Voting is quite extraordinary, I don't know any tag that comes close. Jul 15, 2015 at 14:44
  • @HansPassant What would be a sign of a problem in those statistics (is there a discussion about this)? Jul 15, 2015 at 14:46
  • 1

0

You must log in to answer this question.

Browse other questions tagged .