-2

Sometimes I can see some questions throw some informations such as codes or UML and request for identifying design pattern used.

As examples, now this question is closed but this remains opened, my question is, is design pattern identifying questions on topic? If so, where is the line that it is on topic?

1
  • @Deduplicator I don't think this is quite a duplicate, as OOP pattern identification is much more involved than just "what's the name for this thing?" But that link is definitely relevant, nonetheless.
    – elixenide Mod
    Commented Jan 21, 2016 at 5:21

1 Answer 1

0

tl;dr Such questions can be on-topic, yes, but they aren't always, and they're not necessarily great fits for SO, as opposed to Programmers.

As explained in the help center:

if your question generally covers…

  • a specific programming problem, or
  • a software algorithm, or
  • software tools commonly used by programmers; and is
  • a practical, answerable problem that is unique to software development

… then you’re in the right place to ask your question!

Specific, focused questions about OOP patterns generally fall in the "specific programming problem" and "software algorithm" categories (and possibly the other categories, as well).

The questions you linked to are very different. The first involves a link to a somewhat vague and incomplete UML diagram—actually, more like an entity-relationship model—that provides relatively little information. The question itself boils down to "please identify this pattern or group of patterns." But as explained in the comments, there's not really an identifiable pattern, at all. The diagram shows how the data relates, but not how the program works.

The second question is much better. It provides code for a series of classes as a concrete example of the pattern(s) of interest to OP. It then asks which design pattern the code fits best.

Disclaimer: All that said, in my experience, such questions fit better, are received better, and get better answers on Programmers. YMMV.

Not the answer you're looking for? Browse other questions tagged .