Right now, I'm sitting at my desk staring at an error - it doesn't make sense whats going on or why this error occurred. If you're working with a language that has a huge cormmunitity, it's likely that you can just google what problem you've come across. For me that's not really the case, I work with ColdFusion. Of course, after a while - if I can't solve the error I will reach out to my coworkers for help, but I'm trying to do that as a last resort now.
Out of habit, I reach for my phone. Check twitter, facebook, instagram.. or even writing this post. Most of the time I don't really realize I'm doing it. I was talking to a colleague recently who mentioned that I spend a lot of time on phone, and I was pretty surprised. Out of this discussion, I became more aware that grabbing for my phone is something I do what I get stuck or even uncomfortable with a ticket. I use it for a distraction or outlet even to get my mind off what I'm struggling with.
Since becoming aware of my constant phone use I've made an effort to keep my phone in my bag. But now I still need an outlet to let that feeling of being stuck pass.
What is the right approach for issues like this? Obviously we all get stuck, from junior to senior dev - we won't automagically know the answers or always how to source them. So, how do you handle these types of situations?