Try before giving up


Home | Blogs

There are two parts to this: when you first experience a problem and when you experience it again.

When you first experience a problem, you should try to see if you can fix it yourself. If it's something important, you can use the internet. If it's not important after a little bit of trying to fix the problem yourself, you can use the Internet. If the internet does not help, you can ask someone directly. Say you have this JavaScript code.

var input = "1"
input_to_number(input)
console.log(typeof(input))

We run this, and it tells us input is a string. This can be very confusing if this is your first time seeing this problem because your input_to_number function returns an int.

First, what you can do is think for about 5 minutes: why is this not working? It could be because the input is actually not changing, so we need to set input to the output of input_to_number, and that works.

If we can't figure that out, let's search for javascript function parameter not changing. The first response from Google tells us exactly how to fix our problem. If our problem was complicated enough that we could not find anything on the internet, that is when you can ask others for help.

In total, it should take at least 15–30 minutes before you ever ask someone directly for help.

You might be wondering what the point of not asking for help is when no one would mind helping. This will actually make it easier for you to fix this problem in the future and will teach you how to fix your own problems quicker, as this does not only count in programming but could help if, say, you want to build a computer, make a fire, or even fix your car.

If you have experienced this problem before, even if it's important, try to see if you can fix it yourself and try to remember what you did last time. Try and spend 10–30 minutes trying to fix it yourself, then try and use the internet.

Here you can use the same approach that we used when you first started learning: try only using the internet, then ask for help. The more you don't ask for help, the more it will make you knowledgeable and train your brain for any situation where you would normally just give up.

Trying to do it on your own will make it much easier for you to remember how to do it again and will save you time again and again. It could also save you money if you need professional help to fix the problem, as you won't have to pay for that.