Errors and Bugs are Important!

Hey, guys welcome to another developer blog. I promise this one will be a short one. In a previous blog, I wrote about Which Programming language is best for you to learn if you haven't read it go ahead and read "There is no best programming language".

In the life of a programmer, Errors and Bugs are important aspects where some programmers hate it as well as love it (not everyone). I know when you are writing a code and gets an error then you might get frustrated (the same thing happen to every programmer). Then why errors are important? Well, the answer is we cannot learn each and every method and feature of a particular language even if we decided to master that programming language. So we learn on the go like if you are building some project and you need some feature include in that project then you can search for that feature and can see documentation of that feature. And when you are learning something new there is no way that you do it in the first try so errors occur and for solving that errors, you research on that feature and gain more knowledge.

Error screenIf you are beginner programmer, who just getting started with programming career and you got so many errors on your first or second program and you get frustrated and then some thought came up from a corner of your brain that programming is hard. Then don’t worry its usual that your brain gets stuck and some unusual thought wonder around you. In this scenario most likely you will ask for help from your instructor or friend to solve your errors. In my opinion, by doing this you are destroying your career by your own hands. Wait wait don’t get angry on me I am not saying that you must not take any help from other instructor/friend. What I mean is first you should try by yourself for solving the error. Because error could be very small in the end it could be some misspelled variable name or function name. I know some students who are learning to code, when they get any error then they don't even see what error message is showing they just call instructor to solve their errors. And I believe this is a totally wrong method to move forward in a programming career you need to try by yourself. If you are unable to solve that error then at least you can search solution for that error on the web. Lots of websites are available like Stack Overflow, Stack Exchange, and many others. Because when we get an error then there is a high chance that error you are getting could have already occurred to another developer from around the world and the solution is already available.

 In any case, you are not able to find a solution on the web then you can ask your instructor or your friend but ask if and only if you did full research on that error. The reason I am saying again and again that you should solve your error because errors are the way to gain more and more knowledge and if you are not trying even 1% to solve that error then I would say you are on wrong track. When you get help from instructor or friend then I am pretty sure that they will successfully solve your error but in the end you will understand nothing even if they explain you a solution to the problem then you will get limited knowledge for limited time and when next time same error occurs and then you get help again to solve the same problem. (This applied in some cases).

debugging

In my experience, I learned that almost 99% errors which I get already occur to another developer around the globe. Some of them were logical and some of the errors were syntactical errors and they were so frustrating that even sometimes it takes 2-3 days to solve the single error. Sometimes error was like I have written code of 130 lines and showing error on line 150 that time it gets frustrating. Well to tackle any error you need to calm down your head and think clearly and if in any case your brain stop working (not actually stopes that mean if not single solution come out of your mind) then just leave code alone and take a walk, talk to others it refreshes your brain and when you come again to your code and try to find solution then you already figure out the solution. It's like a magic and it happens every time with me when I just take a break and come again to try my luck to solve Error/Bug and I literally found a solution. So keep in mind that Errors are not bad it is part of our life.

In the last, if you are good error solver and reading this blog then please you should encourage beginners to solve their own errors, don't give a direct solution to those who really want to be the good programmer in their life.

Happy Coding :) 

Comments

Popular posts from this blog

How to write JavaFX CSS for tab pane

How to add JavaFX CSS in your SceneBuilder

Basic of JavaFX CSS Syntax