DEV Community

Discussion on: What Helps You Get Unstuck When Coding?

Collapse
 
scrabill profile image
Shannon Crabill

Walk away! Take a break. Do anything else.

Chances are, the solution will come to you in time.

Collapse
 
messerli90 profile image
Michael Messerli

This. "Unfortunately" I quite smoking, but I used to constantly solve problems I was banging my head against when I stepped out for a smoke. Now it takes more discipline to take regular breaks 😅

Collapse
 
scrabill profile image
Shannon Crabill

A "hack" that I use is always having a glass of water at my desk. Not a huge thermos or water bottle, just a class. I'll have to refill it on occasion or use the restroom, which forces/reminds me to get up at least every few hours.

Your body and brain will thank you.

Collapse
 
ahferroin7 profile image
Austin S. Hemmelgarn

Entirely agreed. I typically take two short (about 1.2km) walks each work day, and quite often I either come up with a solution to an issue I've been working on during the walk or right after getting back from it.