1

My question seems to have been lacking a clear problem statement. I've attempted to correct the problem by adding the following line:

"Can you fix this to allow inheritance, stay DRY, and avoid casting? Or can you prove this would never work?"

This should make the goal clear even if the page the code came from goes down. If you still see a problem with the question feel free to let me know. Otherwise what is the next step to remove the hold?

9
  • What you seem to be doing is dumping some code and asking someone to fix it for you... that's off on SO. It's not a code writing service nor a personal debugging help-desk etc. You may want to retake the TOUR and spend a few minutes reading the help-centre and also see what type of questions to avoid asking. That should be sufficient :)
    – user2140173
    Oct 13, 2014 at 8:58
  • According to the help they are but "must include the desired behavior" I did that in the link, the title, and now in the body. What more would you want to see to make the "desired behavior" more obvious? Oct 13, 2014 at 9:04
  • 2
    Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Complete, and Verifiable example."
    – user2140173
    Oct 13, 2014 at 9:06
  • 2
    That "must include the desired behavior" is a necessary condition for a good question, but not a sufficient once. Your question has to meet all of those requirements, not just one requirement. Otherwise, just about anything would be a good question.
    – abarnert
    Oct 13, 2014 at 9:09
  • @abarnert please enlighten me as to the missing requirement(s). Oct 13, 2014 at 9:10
  • 1
    @vba4all already explained what's wrong with this question. If you're not just asking someone to write code for you, then your question is unclear, and your comments aren't helping, because that's what it looks like.
    – abarnert
    Oct 13, 2014 at 9:13
  • 2
    See related
    – user2140173
    Oct 13, 2014 at 9:23
  • @abarnert I'm asking if a problem is solvable. Writing code that solves it is only one way to prove it's solvable. I posted links to other solutions that solve it but fail to meet the requirements. I'm asking if there is a reason they HAVE to violate those requirements. Thinking I'm asking for someone to just write code for me feels like a knee jerk reaction. I've read your link. I understand it's important to put myself in the shoes of my readers. Please consider the possibility that this is simply a HARD question to answer if you haven't run into it before. I'm hoping someone has. Oct 13, 2014 at 9:29
  • @vba4all I've removed the offending code. I assert that what remains is: "a practical, answerable problem that is unique to software development". Do you still see a problem? Oct 13, 2014 at 10:22

1 Answer 1

10

Your question has two distinct and both show-stopper problems. (judging from revision no 5 here)

  1. Missing code.

    We can't really help you all that much without some code (at least for the question as I understood it). Linking to off-site code is... problematic. That's why there's a close-reason stating that the code to

    the shortest code necessary to reproduce it in the question itself.

    You have provided no code to reproduce your problem. (close-vote 1)

  2. Problem statement.

    Quoting your question:

    Can Joshua Bloch's Builder pattern be modified to allow inheritance, stay DRY, and avoid casting? Or can you prove this would never work?

    This problem statement is problematic for two reasons... For one you are asking quite a lot of things at once, and then you include the possibility for a complete disproval.

    Additionally your Question is a design question. These were off-topic for SO last time I checked, mainly because they are inherently opinion based (and often asked too broad or completely unclear). Programmers.se allows such questions to an extent, but be aware, discussions and open-ended questions aren't tolerated over there.

In summary your question "fails" the on-topic criteria at least twice, and thus was closed.

You must log in to answer this question.

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