Skip to main content
replaced http://meta.stackexchange.com/ with https://meta.stackexchange.com/
Source Link

I hate to answer a question with a question, but why should it be okay to ask a question with hundreds of lines of code?

Reading lots of code takes time. It can lead one down a major rabbit hole and on things that may or may not be related to the question. It could also potentially expose other broken things, which may are completely tangential to the question at hand. That really distracts from the core of the question.

There are people that will happily post their entire projects here, but they really shouldn't be doing that. Instead, they should endeavor to find the simplest slice of code that can reproduce their bug, and post that instead.

Adding line numbers would only seem like posting lots and lots of code is encouraged. That doesn't seem like something we'd want to encourage.

There are some great points also raised in a similar Meta questiona similar Meta question, such as "any change to the code could potentially invalidate answers", which I do agree with entirely. But, I would disagree with putting line numbers on SO (or any site with code-like support), because it means that someone's going to post a whole project here, and think it's okay.

I hate to answer a question with a question, but why should it be okay to ask a question with hundreds of lines of code?

Reading lots of code takes time. It can lead one down a major rabbit hole and on things that may or may not be related to the question. It could also potentially expose other broken things, which may are completely tangential to the question at hand. That really distracts from the core of the question.

There are people that will happily post their entire projects here, but they really shouldn't be doing that. Instead, they should endeavor to find the simplest slice of code that can reproduce their bug, and post that instead.

Adding line numbers would only seem like posting lots and lots of code is encouraged. That doesn't seem like something we'd want to encourage.

There are some great points also raised in a similar Meta question, such as "any change to the code could potentially invalidate answers", which I do agree with entirely. But, I would disagree with putting line numbers on SO (or any site with code-like support), because it means that someone's going to post a whole project here, and think it's okay.

I hate to answer a question with a question, but why should it be okay to ask a question with hundreds of lines of code?

Reading lots of code takes time. It can lead one down a major rabbit hole and on things that may or may not be related to the question. It could also potentially expose other broken things, which may are completely tangential to the question at hand. That really distracts from the core of the question.

There are people that will happily post their entire projects here, but they really shouldn't be doing that. Instead, they should endeavor to find the simplest slice of code that can reproduce their bug, and post that instead.

Adding line numbers would only seem like posting lots and lots of code is encouraged. That doesn't seem like something we'd want to encourage.

There are some great points also raised in a similar Meta question, such as "any change to the code could potentially invalidate answers", which I do agree with entirely. But, I would disagree with putting line numbers on SO (or any site with code-like support), because it means that someone's going to post a whole project here, and think it's okay.

Source Link
Makoto
  • 106.2k
  • 120
  • 864
  • 1.3k

I hate to answer a question with a question, but why should it be okay to ask a question with hundreds of lines of code?

Reading lots of code takes time. It can lead one down a major rabbit hole and on things that may or may not be related to the question. It could also potentially expose other broken things, which may are completely tangential to the question at hand. That really distracts from the core of the question.

There are people that will happily post their entire projects here, but they really shouldn't be doing that. Instead, they should endeavor to find the simplest slice of code that can reproduce their bug, and post that instead.

Adding line numbers would only seem like posting lots and lots of code is encouraged. That doesn't seem like something we'd want to encourage.

There are some great points also raised in a similar Meta question, such as "any change to the code could potentially invalidate answers", which I do agree with entirely. But, I would disagree with putting line numbers on SO (or any site with code-like support), because it means that someone's going to post a whole project here, and think it's okay.