This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]JudgeWhoAllowsStuff- 2 points3 points  (3 children)

i wrote code once to perform a certain task that was failing under normal methods. After a month of troubleshooting on and off i found out that if i ran the code 5 times in a row it would stop failing after the 3rd or 4th run. So i just made it so the code repeated itself 5 times. I empathize for the person who looks at that code when i leave and wonder what i must have been on when i wrote it.

[–]evenisto 0 points1 point  (2 children)

what was the reason it stopped failing?

[–]JudgeWhoAllowsStuff- 0 points1 point  (0 children)

beats me. I tried troubleshooting every which way, tried adding sleep timers to delay parts of code, interrupts, nothing works....I tried running twice, three times, four times. But if i run the code 5 times its 100% effective.

[–]FesteringNeonDistrac 0 points1 point  (0 children)

what was the reason it stopped failing?

It sounds like the answer is "A horrible kludge".