Re:Ask HN: what creative methods do you use to solve program...
by Iterated on Thursday April 18, 2013 @12:13AM
(#5568856)
I do this as well. It's funny when you've struggled with a problem for an hour or so the day before and then the next day you sit down and figure it out in 10 minutes.
Re:Ask HN: what creative methods do you use to solve program...
by ragatskynet on Thursday April 18, 2013 @04:42AM
(#5569520)
This works for me too. For the cases when it does not work, and you have the option, leave it and go rest/sleep/run/etc.
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.