Ask HN: what creative methods do you use to solve programming problems?
I've talked to a few programmers who have interesting methods for encouraging their subconscious to take over when they hit a frustrating problem (eg: taking a walk, a bathroom break or playing Farmville). Do you have an interesting method you use for this?
13 comments
[ 3.5 ms ] story [ 37.6 ms ] threadWhen I run into an issue during some late night ooding, the solution is always sleep. Next morning, the answer will come to me a little after I wake up (when the mind is most clear).
If I still couldn't find a solution, I will eventually come up with a workaround during those disconnected times.
When I'm completely stumped or frustrated with something, I'll shut everything off for a while. I just go do something. Enjoy dinner, watch TV, play games, hang out with people. Zero thoughts about the problem.
Most of the time, re-approaching after a cold boot like that tends to change my perspective so much that I will typically solve the problem with much less effort than I expected would be required. Sometimes this is just caused by being tired when initially approaching a problem and then conquering it after resting. Sometimes I'll suddenly have a realization subconsciously and I'll realize I figured out a solution to the problem without thinking about it.
This has worked for me since college. Getting one of those nasty algebra or functional analysis problems and being stuck, then realizing in the middle of playing a game later that you suddenly know how to solve the problem is a great feeling. It's like you're doing work without doing work.