I've tried moving the second while loop to other places but all attempts have the same outcome and I've tried added a sleep timer but no amount of time fixes the issue.
That's not how to debug code, you need to understand what's wrong with it, randomly changing it won't help.
The comment you received was condescending (and I suspect also wrong), but I can understand why: Stack Overflow is not there to teach you programming or to help you debugging your code.
Stack Overflow is not there to teach you programming? Dude, quote from the site's description "Stack Overflow is the largest, most trusted online community for developers to learn, share their programming knowledge". Keywords being "learn" and "share knowledge". If you are too lazy to spend some time teaching someone who's obviously trying to learn then you're part of the problem. If more people gave a bit more fucks on SO, we would have more better programmers.
If you are too lazy to spend some time teaching someone who's obviously trying to learn then you're part of the problem. If more people gave a bit more fucks on SO, we would have more better programmers.
We would not, because with this approach, Stack Overflow would become yet another programming forum. And that would mean it would work much less in the "Google a problem, find a solution" situation.
But because Stack Overflow is so strongly optimized for the "ask one clear question, receive answers" case, you will have a bad time if you try to use it any other case. And not being "lazy" is not going to fix that.
-17
u/svick Feb 06 '18
From the question:
That's not how to debug code, you need to understand what's wrong with it, randomly changing it won't help.
The comment you received was condescending (and I suspect also wrong), but I can understand why: Stack Overflow is not there to teach you programming or to help you debugging your code.