News for hackers. Stuff that matters.
Re:Ask HN: Overcoming coder's block? by DanielBMarkham on Saturday November 07, 2009 @10:28AM (#927934)
Two things:

1) Understand whether you are blocked on a design question or a coding question. Is the problem you can't find the answer or the problem that you can't make the answer happen in code?

2) Purposeful distraction. Sleep. Go for a walk. Play a FPS. Learn to distract yourself for short periods throughout the day. When done correctly, this gives your subconscious time to work on the problem. When done very well over a period of days, it "ramps up" your problem-solving skills.

I'm starting off a small project this weekend. After a few hours of coding last night (my first coding session in a while) I got blocked.

So I went to sleep.

As I slept, in my dream (or when I was barely conscious, hard to tell) I realized what I needed to do next. When I woke up I was ready to get at it.

The trick is to make these times purposeful (not random procrastinating) and to never try to code your way out of a design block. Sometimes problem-solving is best approached like night vision: you see the most at night by not looking directly at the thing you're tying to see.

Hope that makes some sense.

There are no comments on this comment yet.