8

What are the guidelines/rules for providing a link to a GitHub project when posting a question?

The reason I ask this is because there were instances where I attempted to replicate my problem in as detailed a manner as possible, but no one was able to quite solve my issue. Some people asked me to provide a link to my project so they can replicate it on their side. I've never quite seen other people do it, so I'm wondering if it is against Stack Overflow's policies. If not, what is the proper way to do this?

5
  • 1
    It might be worth showing us your question. We could offer pinpoint advice instead of being broad.
    – Makoto
    Commented Nov 13, 2017 at 20:56
  • @Makoto I can't find the specific question where someone asked me to provide a link. But it was similar to one that I posted recently stackoverflow.com/questions/47242503/…, it didn't get any answers until I offered a bounty, and then someone asked me if I could provide a link.
    – buydadip
    Commented Nov 13, 2017 at 21:05
  • 2
    @Bolboa: The first thing that I see when opening your question is text as images.
    – BDL
    Commented Nov 13, 2017 at 21:06
  • I've added a comment to that question. I don't mess with NumPy anymore, so I delegate any question of quality or further improvement to those that do.
    – Makoto
    Commented Nov 13, 2017 at 21:07

2 Answers 2

4

To add to Servy's answer, the main point is to make your example minimal enough to be able to fit in a Stack Overflow question without needing lots of external dependencies, but localized enough that it replicates your specific issue.

For example, if you stated that you had a problem with reading a file in a specific spacing format into an object in your project, the only things we'd need would be the code that reads the file into your application, what is mapping between them (if you can be specific here, that's fantastic - we don't need POJOs that are 200 LOC), and a sample file format. We can work with you from there.

5
  • Why none of you mentioned the MCVE yet?
    – user0042
    Commented Nov 13, 2017 at 20:57
  • 1
    @user0042: Did you miss the part where I categorically describe an MCVE?
    – Makoto
    Commented Nov 13, 2017 at 20:58
  • I meant the link would be nice ...
    – user0042
    Commented Nov 13, 2017 at 20:59
  • @user0042: I'm not sure what more value adding the link would have over describing what we're expecting. We can get too comfortable with our variation of "duckspeak" when it comes to what we're asking for, but having the patience to simply describe what it is in more friendly terms is better, in my opinion.
    – Makoto
    Commented Nov 13, 2017 at 21:01
  • 2
    Well, as additional information the link to MCVE adds some more detail information how to compose, what you describe in shorter (and undoubtedly valid) terms.
    – user0042
    Commented Nov 13, 2017 at 21:06
6

It's important that you provide enough information in the question to replicate the problem. Linking to a Github isn't doing that.

4
  • Why none of you mentioned the MCVE yet?
    – user0042
    Commented Nov 13, 2017 at 20:58
  • 1
    @user0042 I did, I just didn't use that particular abbreviation.
    – Servy
    Commented Nov 13, 2017 at 20:59
  • meta.stackoverflow.com/questions/359303/…
    – user0042
    Commented Nov 13, 2017 at 21:00
  • 1
    How about include in github link in an answer?
    – theking2
    Commented Jul 6, 2022 at 16:49

You must log in to answer this question.

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