" I'm sure that a single error can give you a headache for days (even weeks) but if you fix it by yourself, then you'll never face the same problem again. "
1. You'll get Errors!
It doesn't matter whether you're learning or working, beginner or a Pro, following a lecturer or an Online Course, Sooner or Later you'll face this monster of Programming World - Error!
And as a normal human being, we'll be panicked and sometimes get demotivated to continue learning when we can't fix it within minutes.
So, we start to look for a help (quick fix). We call or meet our friends whom we think is better than us, show errors to lecturers (online or offline) and ask them to fix it.
But Stop 🛑 doing this. Instead you should...👇
2. Don't be Afraid of Bugs and Errors
Instead of taking Errors/Bugs as a Monster, you should take it as an Opportunity to learn something new.
Debugging (Fixing Errors) is the must have skill for any developers and I think this is the one that separates Senior Developers from Freshers.
I think, "One who completes the programming course without any Errors, Learns Nothing".
They're just following the steps not learning.
So, if you want to learn then don't be afraid of getting errors. Instead try to understand it.
3. How to Tackle Errors?
So, you got an Error and panicking or frustrated.
First thing you should do is calm down.
And then read the error message carefully. In every programming language when you encounter an error there will be some error message.
It will have some error code or error message and the line number where you have problem.
Read the error message slowly, carefully and multiple times if needed. And try to understand it.
If you couldn't understand it, then just copy the error code or error message and paste it in Google search bar.
Here you'll get thousands of results because the error you're facing was faced by other developers as well.
Now open each links (which seems legit) in new tab and read it.
I recommend opening links from Stackoverflow or some programming forums.
Once you start reading these articles, you'll get to know more about the errors like
a. What is causing this error?
b. Why did you get the error?
c. When do you get such error?
d. And ways to fix it. There'll be lots of fixes to a problem. And you can also learn why some fixes are better than other.
So, in my opinion this is what you should do when you get an Error instead of a quick fix from a friend or a lecturer.
When you start researching and understand the error, you'll remember it forever because you fixed it yourself.
And no matter how many times you get such error it'll be a piece of a Pie 🥧 for you to fix it.
It's just my personal opinion. Please feel free to comment yours 😊
I also share my Personal Learning Experience on YouTube.
Top comments (0)