-4

I have asked this question on Stack Overflow:

How do I compile and link unit tests?

It has been put on-hold as primarily opinion based. The explanatory text clearly states the following: "Many good questions generate some degree of opinion based on expert experience, but answers to this question will tend to be almost entirely based on opinions, rather than facts, references, or specific expertise."

I believe that my question specifically asks for specific expertise, and should not be considered opinion-based. Do you think I'm right, or am I just being biased here?

18
  • 1
  • 1
  • Hm, so maybe if I remove the wording "best practices" from the question title it will get re-opened?
    – Dan Nestor
    Nov 15, 2014 at 13:20
  • 3
    Not as it stands (IMO). "How is linked handled?" - there's dozens of different build systems available, and probably thousands of home-made ones in use in different companies/projects. Too broad.
    – Mat
    Nov 15, 2014 at 13:23
  • Yes, there are, but I am specifically asking the question about make. So the broadness is not here.
    – Dan Nestor
    Nov 15, 2014 at 13:24
  • 2
    A lot of the build systems are based on make (i.e. generate makefiles).
    – Mat
    Nov 15, 2014 at 13:25
  • Aha, thanks for pointing this out. I write my own Makefile manually. How would you call this "build system", so I can clarify this in my question?
    – Dan Nestor
    Nov 15, 2014 at 13:27
  • @DanNestor Well as you've seen, my initial close vote for this question was 'too broad', which is very similar. While there are good reasonings (and of course makefile template techniques to realize testbeds and automatic run of test cases) to implement unit testing the one or the other way, your question still stays quite broad. One could write whole books about this topic. Stick with tutorials and recommendations about your particular unit testing environment. It's not likely you get a good answer here. Nov 15, 2014 at 13:28
  • @πάνταῥεῖ You mean if I'm a beginner and I need some advice on how to use make to link my unit tests, I can't get this answer on SO? This can't be! There has to be a better way to ask my question to get this answer.
    – Dan Nestor
    Nov 15, 2014 at 13:30
  • 3
    @DanNestor: yes there are. Step one is hitting Google to find examples/tutorials. Step 2 is applying them to your problem (with the docs as a companion). If Step 2 doesn't work, you can ask SO for help getting you unstuck.
    – Mat
    Nov 15, 2014 at 13:32
  • @DanNestor Of course you can get more specific about particular testbeds, particular code organization, particular samples for your use cases. Nov 15, 2014 at 13:32
  • @Mat My question wasn't closed because it was unresearched. It was closed because it's opinion-based. What are you saying?
    – Dan Nestor
    Nov 15, 2014 at 13:35
  • @DanNestor: It was closed because of two things (IMO again): opinion-based list-type question (best practices), and too broad ("how do I build code with make?"). You can fix the first part by removing that. You can fix the second part by asking a more specific question.
    – Mat
    Nov 15, 2014 at 13:38
  • @πάνταῥεῖ How does the organization of my code and code samples have anything to do with what I'm asking, namely how to handle linking with make? Can you detail a little?
    – Dan Nestor
    Nov 15, 2014 at 13:39
  • @Mat: thanks for the suggestion. I added some clarification to point no. 2, hopefully this new version is a little more specific. What do you think? Still too broad?
    – Dan Nestor
    Nov 15, 2014 at 13:44

1 Answer 1

7

Most probably because of the title and this phrase:

Please give me some best practices.

If the OP had chosen a better title and left this out then the question, while not stellar, would probably have been left open.

1
  • 1
    Yeah, I see now that the phrase is taboo on SO. I didn't know that.
    – Dan Nestor
    Nov 15, 2014 at 13:21

You must log in to answer this question.

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