Sleep. Best side task for your brain. How many times has this happened to me? You struggle with a feature or a bug, you think about it, you weigh the pros and cons for hours... because you don't want to start something that will set you back. You're tired, but you don't want to go to sleep until you've at least made a decision for tomorrow. Go to sleep. Now. Then you wake up knowing immediately what to do. You hardly…
Also exercise. Sleep restores you. Exercise is the spark.
Developer's block
61–70 of 106 posts
Re: Developer's block
#62Re: Developer's block
#63> Release early, release often I’m big on this. I find it efficacious to have an integrated product going as soon as possible, even if it’s a field of stubs. It’s my experience that I almost never know what the end product will look like, no matter how much upfront planning time I devote, so being able to test and iterate the whole system, as soon as possible, is pretty vital. It’s also one reason that I like to use…
Your linked post about test harnesses is outstanding; thanks for sharing!
Re: Developer's block
#64Sleep. Best side task for your brain. How many times has this happened to me? You struggle with a feature or a bug, you think about it, you weigh the pros and cons for hours... because you don't want to start something that will set you back. You're tired, but you don't want to go to sleep until you've at least made a decision for tomorrow. Go to sleep. Now. Then you wake up knowing immediately what to do. You hardly…
I just take a hot bath… best ideas happen in the bathtub for me.
> “Illumination, which can happen in a fraction of a second, is the emergence of the creative idea into the conscious. This almost always occurs when the mind is in a state of relaxation, and engaged lightly with ordinary matters. Helmholtz's ideas usually came to him when he was walking in hilly country. There is a lot to be said for walking during rest periods, unpopular as the idea may be. Incidentally, the relaxed activity of shaving can be a fruitful source of minor ideas; I used to postpone it, when possible, till after a period of work.”
I also recommend walking, I leave shaving to the men to try, and would add that like many others the shower is my most happy place for ideas and hitting on the causes of difficult bugs.
Re: Developer's block
#65Re: Developer's block
#66I love how we developers see ourselves like creative writers instead of plumbers
Re: Developer's block
#67I love how we developers see ourselves like creative writers instead of plumbers
Haven't heard plumbers launching side plumbing projects. But who knows, perhaps they do and just don't post on HN.
Re: Developer's block
#68Naming was often my biggest block. I often know the project topic, but cannot choose a name. Then, of course, there's variable, function and file naming. Turns out the AI is fantastic at choosing good names, so that block is largely obviated these days.
At the function level, I'll often write the function and then rename it with F2 after I've written it.
Re: Developer's block
#69Sleep. Best side task for your brain. How many times has this happened to me? You struggle with a feature or a bug, you think about it, you weigh the pros and cons for hours... because you don't want to start something that will set you back. You're tired, but you don't want to go to sleep until you've at least made a decision for tomorrow. Go to sleep. Now. Then you wake up knowing immediately what to do. You hardly…
Does it mean THAT problem gets solved later? Sometimes, but often not. And more importantly, I'm maintaining a pace that's SUSTAINABLE. I can crank on hard problems almost constantly, but I leave myself some space so I don't get burned out.
Re: Developer's block
#70Earlier quoted context omitted.
Also exercise. Sleep restores you. Exercise is the spark.
Good exercise also contributes to good sleep. I sleep like a log after a good bike ride or an evening out swing dancing, but if all I did was sit at my desk all day then it’s a lot more likely I’ll be tossing and turning or doom scrolling into the wee hours.