This examples applies for web mainly, but could apply for other stuff also.

Let say I develop a web plugin that has both JavaScript code and CSS.

  • Should I post one question to review the JavaScript with its specific issues and one question for the CSS with its specific issue.
  • Should I post one big question with both the JavaScript and the CSS with their issues.

I find the first one to be better because JavaScript and CSS are pretty different and have their own issues. Also, one is not dependent of the other, they are totally independent. They both have different coding style.

Also, having one big post would cause the issue where 2 person could have the "right" answer, one for the JS and one for the CSS.

Though having one big post regroup everything at the same place and that can be great too. As you have a more global view of the whole thing.

What do you think?

this question is a bit related to this question but does not cover exactly the same issue.

share
add comment

2 Answers 2

up vote 5 down vote accepted

I would ask two separate questions because (as you said) they are totally independent and smaller questions are easier to answer. (You can link them, of course.)

If there is a chance that they are not totally independent I'd consider asking the first question and waiting for a few days or reviews before posting the second one. You might get feedbacks which requires some modification in the code of the second question.

share
1  
Well, That's what I've ended up doing, thank you for the answer! –  Hugo Dozois Mar 14 '13 at 1:32
add comment

If they are in no way co-dependent I'd ask two separate questions as the context of both pieces of code will be completely different. Also this might only bring up confusion to people who answer the question. What's not needed in a question doesn't belong there and should be left out.

Furthermore the last point of 'palacsint' is indeed important. Best is to ask one of the two and depending on the feedback ask the second question. Which one you want to ask first is depending on the priority of one of the two.

In any case where the JavaScript and CSS are co-dependent, ask both pieces in one question. In a situation for example where JavaScript can influence the CSS, let's say using jQuery, one question would be advised since they are dependent of each other.

share
1  
Well, about the day between both question it all depends. Since in my case any change to having to be made on of or the other wouldn't change anything about the other questions, I've decided to ask both at the same time. But I do agree that in most cases it's better to wait a bit of feedback before asking the second one. –  Hugo Dozois Mar 14 '13 at 1:34
add comment

You must log in to answer this question.

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