What do you do when your stuck?
Emmanuel Obogbaimhe

Emmanuel Obogbaimhe @emmanuelobo

About: Developer. Learner. Innovator.

Location:
Virginia
Joined:
Jan 6, 2017

What do you do when your stuck?

Publish Date: Apr 9 '18
9 9

What do you guys do when you get stuck on a particular issue for a prolonged period of time? Especially those issues that are difficult to track, were you can't find a solution on Google or Stack Overflow

Comments 9 total

  • Andrew Lucker
    Andrew LuckerApr 9, 2018

    If you doubt yourself, keep working on it. If you doubt your tools, workaround it. Being able to place the blame is a learned skill.

    If you continue with your chosen approach, but don't find a match on Google or Stack Overflow, then try narrowing down the scope of the problem until you can place the blame. Some people like debuggers for this, personally I like checkpointing print statements and logs. If the problem continues into a library, then go to the source.

    Sometimes there is nothing you can do except workaround. There are compiler bugs. There are OS bugs. There are hardware bugs. These are exceptionally rare.

    Much more common is your program or a library is corrupt. My personal peeve is double freed memory. It is really common in code or libraries and causes exceedingly strange failures.

    • Emmanuel Obogbaimhe
      Emmanuel ObogbaimheApr 9, 2018

      Thanks for the feedback Andrew, I agree with this approach. This issue happens to me mainly because of third party libraries. Which kinda sucks because sometimes its completely out of your control or hard to find which other dependency is causing the issue with that specific library.

  • Jess Lee
    Jess LeeApr 9, 2018

    Ask The DEV Community 😇

  • Michael Minshew
    Michael MinshewApr 9, 2018

    I get up and stretch or do a bit of burpees, sometimes I do the dishes or go for a hike or shopping. Something to completely take my mind off the problem. Sometimes I take a nap or just watch a bit of tv. When I come back to the problem its with fresh eyes and that helps a ton. A lot of times i'm stuck because i get fixated on a little piece of the puzzle and don't realize the solution is elsewhere in the program.

    If that does't work i start crawling through documentation lol.

    • Emmanuel Obogbaimhe
      Emmanuel ObogbaimheApr 9, 2018

      Nice I do something similar, just that I've been having a real issue with a problem lately and haven't made much progress. Going to go back to crawling the documentation more in depth I guess. If that doesn't work then I can start crawling under a rock lol.

  • Isaac Lyman
    Isaac LymanApr 9, 2018

    Ooh, I just wrote about this one: dev.to/isaacandsuch/so-youre-stuck...

  • Ryosuke
    RyosukeApr 10, 2018

    Time + distance allows the mind to approach the problem from a different mindset. A lot of problems arise from running a marathon of code and letting your head get oversaturated with mental constructs.

Add comment