7

I recently posted a question in Stack Overflow, and after I got some replies I realized that the title I had chosen did not adequately describe the question I wanted to ask. I got several replies, including some that address to a tee what my botched title actually asks. My dilemma now is that, if on the one hand I accept one of these replies, I close off the opportunity to get an answer to what I really wanted to ask. On the other hand, changing the title of the question (and hence, in a way, the question being asked as well) seems shabby to those who took the time to reply.

I know from experience, both writing and replying to this sort of post, that choosing a good title is often tricky, and not easy to get right the first time. Therefore, I imagine that situations like this one are common in a site like Stack Overflow. What's considered the proper way to handle such a situation?

PS: For what it's worth, the post I'm referring to is stackoverflow.com/questions/7005323. For the title to really reflect what I'm asking, it would have to be something like, "How to salvage either the zip(*[iter(x)]*n) trick or the map(None, *[iter(x)]*n) trick when n % k > 0?" but this title seems to me way too long (isn't it?). Also, I'm sure it would be cryptic to most Python programmers, since these tricks are rarely mentioned in replies to questions on evenly "chunking" a list, but I think I will have to accept this: my question is arcane, so no accurate title could fail to be arcane as well. Therefore, for me now it's a toss up between the following titles:

How to salvage Python's zip(*[iter(x)]*n) trick when n % k > 0?
How to salvage Python's map(None, *[iter(x)]*n) trick when n % k > 0?

0

3 Answers 3

11

If you got answers to the question you actually asked, I think you should keep that one (and the answers).

Just ask another question if want to know more about something similar, like the thing you really wanted to ask. :-)

1
  • The thing is that, in this case the only thing I think needs changing is the title; the actual body of the question, as I asked it, is pretty close to what I would ask if I had to do it again...
    – kjo
    Commented Aug 10, 2011 at 13:36
5

Unfortunately, question title is an advertisement for the question it describes. You have to consider who you want viewing the question in addition to how many people you want to be answering the question.

I find that a misleading title will give you bad to useless answers the vast majority of the time. This is especially true if you ask a question in your title which is simple to answer (If you have How do I format xyz in Python? as a title for a question about regex, you can expect that at least one person will want to reply, "format"). This can be mitigated, of course, by the length of the question body (longer question = force someone to read it).

On the other hand, questions with overly specific titles are tumbleweed risks. But, it is far more likely that those who view the question are more specialized towards your answer.

In your case, I think that it might have been easier for you had you expressed it in a different way -- the brain auto-complete saw, break an n-long list into k-long chunks and filled in the rest. The proposed alternate title might be a good one. That said, it looks like your answers seem to all be in the right direction, so you might want to stet it.

(As a note, I've both +1'd and favorited that question. Fascinating)

2

I'd say try How to salvage either the zip(*[iter(x)]*n) or the map(None, *[iter(x)]*n) trick when n % k > 0? It's probably more grammatically nice the way you had it, but this way it's shorter, and the reader can get the rest of the info when they open the question. If it describes your question more accurately, then a bit of extra length is worth it, IMHO.

You must log in to answer this question.

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