Attention to the details

By | 2021-02-05
Amina Filkins at Pexels

Have you ever had one of those moments where you just want to slap your forehead and beat yourself up?

Yup, I had another one of those moments today.

I say there for what seemed like forever, staring at the code I had just written trying to figure out why it wouldn’t work. I had imported the libraries correctly. The functions were all declared and I double checked all the calls. I even checked Stackoverflow and looked right at the solution twice before it dawned on me.

It was capitalization. A thing so simple that I looked right at it and didn’t see it. I read about others that had had the issue, looked at my code, and dismissed it as the cause.

I had fallen into the trap of being too close to the issue to see it.

Sometimes when you have something that isn’t going quite right, the best thing to do is take a break. Take a step back from the work, take a deep breath, and then take another look.

That’s what I ended up doing. I turned my attention to something else for just a few minutes and then when I returned to the code, there it was staring at me in the face. A quick change to the code and everything loaded and worked as expected.

So the next time you find yourself frustrated trying to find a solution, take a break. You might just be able to save your forehead.

Spread the love