I have a slightly related question: Why do people post their entire module? Aren't they debugging, in which case they would have the problem isolated to a few functions/lines of code?
if one is not sure where the problem is, indiscriminately cutting things out might cut out what was causing the problem
...and there-by give you a clue as to the source of the problem, perhaps allowing you to solve the problem yourself. Which is why it is polite to do this before you come asking for help on a problem. It also greatly increases the odds of you getting a quick and accurate answer.