Skip to main content
12 events
when toggle format what by license comment
Aug 6, 2020 at 11:56 answer added Lie Ryan timeline score: 2
Aug 6, 2020 at 9:40 comment added Basilevs Enum as configuration
Aug 6, 2020 at 7:52 answer added Flater timeline score: 5
Aug 6, 2020 at 7:32 comment added Jörg W Mittag … is, or at the very least, you have to know that there is a single, objectively correct, verifiable answer. Since that is not the case here, your question is doubly off-topic: you are asking what to call the anti-pattern, which is asking for opinions, and thus off-topic, and you are asking for "documents describing it", which is asking for off-site resources, and thus off-topic.
Aug 6, 2020 at 7:29 comment added Jörg W Mittag @nben: "There are lots of questions on this site asking for names of anti-patterns; can someone explain the vote to close?" – Naming questions are tricky. What to call something is inherently a matter of opinion, and therefore off-topic. Naming questions are only on-topic when they have a single, objectively correct, verifiable answer, which is almost never the case, because almost always, you will find someone saying "actually, in my community, we call Bar, not Foo". So, in order to know whether or not a naming question is on-topic, you already have to know, before asking, what the answer
Aug 6, 2020 at 6:15 comment added Kilian Foth Switching on an object's type is always a warning sign that you're avoiding polymorphism, i.e. the code blocks should be the bodies of the same method in different classes related by inheritance. I'm not aware that the opposite - switching on types - has a specific name.
Aug 5, 2020 at 20:51 comment added nben @BenCottrell That question is a good reference! I can see that this is related to GodMethod, but I usually think of the GodMethod as being a much more general case. Thanks.
Aug 5, 2020 at 20:43 comment added Ben Cottrell Possibly 'God Method'? - wiki.c2.com/?GodMethod Also, in terms of fixing such things, this question might be useful - softwareengineering.stackexchange.com/questions/155488/…
Aug 5, 2020 at 20:41 review Close votes
Aug 12, 2020 at 3:03
Aug 5, 2020 at 20:35 history edited nben CC BY-SA 4.0
name was not clear enough
Aug 5, 2020 at 20:27 comment added nben There are lots of questions on this site asking for names of anti-patterns; can someone explain the vote to close?
Aug 5, 2020 at 20:23 history asked nben CC BY-SA 4.0