By: Raeesa Rashid
With anyone learning to code, getting frustrated at some point whilst you’re learning is inevitable. It has happened to me countless times, and, as an experienced coder, still even happens to me today.
The worst thing you can do when coding frustrates you, is decide to quit coding altogether. Some people believe if they get frustrated when coding it means coding isn’t for them. That is not true, at all.
Coding can be for anyone and it is perfectly normal to get frustrated whilst coding something, and in my experience, the most common thing people seem to get frustrated by is when they can’t solve an error in their code.
If you do get frustrated when coding for that reason or another reason, what I suggest is to take a break from it for a certain period of time.
I usually take a 30-60 minute break, depending on how frustrated I actually am.
And when you take your break, always take it away from the computer and just completely focus your mind or something else. You could take a nap, watch TV, go outside for a walk, go outside to play a game, make yourself a cup of tea and relax or just anything you do to relax or calm yourself. Whilst you’re having this break forget about coding, don’t think about it.
Then once your break is over, go back to your computer and try coding again. Now you’d have a completely fresh mind when approaching coding, so you’ll find it less frustrating and if the reason for you being frustrated was an error you couldn’t solve you have a much better chance solving it after your break with a fresh mind and fresh set of eyes rather than someone who is tired and frustrated.
And remember, taking a break is not a waste of time either. What is wasting time is sitting at the computer screen for hours and hours making yourself frustrated and angry so you can’t learn anything or solve anything, getting tired and achieving nothing.
As I have said previously take this break away from your computer. Why? Because you need to get away from the environment you code, and go somewhere else and focus on something else. Even if it’s just going to your bed, and taking a nap.
I hope this helped some of you. If you’re unclear about any of my advice you could always comment a question below or DM me on Instagram (@raeesawritescode), also, thank you for reading this.
about the Author
Raeesa is a 17-year-old computer science student and writer from the UK. With being a girl who is partially-disabled in code, she has become an advocate from girls in code and disabilities in code. She believes in encouraging people from diverse backgrounds to get into code and young people too, given she started coding at the age of 10 herself. She believes writing for GenZ Writes will allow her to give advice to people, voice her opinions, and give her a platform to represent all the communities she is a part of and to eliminate stereotypes, all in a way she would like to as GenZ Writes gives her the freedom as a writer to do so.