What to do when you get stuck
For many, learning to code is a painful process. It gets even more painful when you're stuck on a problem. How do you fix bugs? How do you not lose your mind while at it? I'll help you answer these questions in this lesson.
We'll cover the following
1. Be Calm
You do not have to run around like a headless chicken.
We all have bugs.
2. Use the Process of Elimination
If you can’t isolate the bug to a particular line of code, begin to comment out working bits until you can reach the actual cause.
In most cases, taking out code insteead of adding more will prove very helpful.
3. Go to Sleep or take a Creative Pause
What most people do when they have a bug is say to themselves, “I will not leave here until I get this solved.” Don’t be that person.
You’ll just waste time, get fatigued, and burn yourself out.
4. Get My Help
Sometimes, what you need is a fresh pair of eyes. Tweet me @ohansemmanuel and I’ll be happy to take a look.
Get hands-on with 1400+ tech skills courses.