Welcome to Code Chatter, your go-to series for conversational coding insights. What makes this series of questions different from all the others? Well, truth be told, not much, but they're still thought-provoking and fun. Join us as we explore the coding world, one witty question at a time.
When facing a particularly difficult problem, bug, or design issue, what strategies do you use to 'unstick' yourself?
Follow the DEVteam for more discussions and online camaraderie!
Top comments (7)
I usually try to break it into pieces. If Iโm having a problem with code, Iโll usually try to write a test to exercise the problem. Small test programs are much easier to use a step debugger with. I usually go there pretty quick since itโs so effective.
I also, unironically, love rubber duck debugging. ๐ค
When trying to solve a difficult problem, I usually take a break. I walk away from the problem for a while. During that time, my mind is more settled and Ideas to solve the problem just easily flow in.
some of all of these, in no particular order, within a loop (not shown here)
The key to solving difficult problems is communication. Communicating with your team or friends always provides a different point of view and can suggest effective solutions.
I take a break, write down why I'm stuck, and talk with a human about it.
in no particular order:
Until I solve the problem
Take a break, going for a walk, to gym, or swimming helps.