In the emblematic book: The Mythical Man-Month, Fred Brooks states that one of the joys of software development is the act of creating something; moreso if it comes from your own design. Another joy is creating something that will be helpful to someone else. All of that is absolutely true.
However, while developing software is rewarding it can get frustrating at times, especially when you’ve spent hours, or days, trying to solve an error and it looks like you are not getting any closer to the solution. That’s completely normal in this profession. What shouldn’t be normal is letting frustration, anger, or other negative feelings get the best of us. The following tips might help you to deal with obstacles when you are coding:
Identify your turning point
When we code we encounter obstacles like errors, or we need to implement an API that we’ve never used before, etcetera.
At first the challenge can be intriguing, but after certain amount of time or troubleshooting you start to experience anger and frustration. Some people even start hitting their computer or throwing stuff around.
It’s important to identify that point when we start to get a little angry and change tasks, get up for a glass of water or a short walk until you feel more calm. Changing to an activity that doesn’t require a lot of analysis can help, like working in CSS code. The important thing is to not let negative feelings get the best of us.
Don’t be afraid to start over
You don’t need to be afraid to start over with different logic or different plugins, or other possible solutions . A fresh start can even help us to save some time. It is possible to use negative feelings in our favor.
Explain the problem to someone
On the other hand, asking for help from a co-worker when we no longer see the light at the end of the tunnel can help, and a pair of fresh eyes are always welcome. They might see the problem differently than you.
Learn from your mistakes
Bad experiences or obstacles that we face during a project can help us grow if we see them in the right way. They can help us to be better developers and be more aware and prepared so it won’t happen to us again.