6 Common Programming Mistakes to avoid for best result
Programming… Where counting starts from 0 not 1. If you are not in programming and you will be pointing this a mistake made by a programmer then be ready to see a sarcastic angry young man look of a programmer throwing a paper or stone at yourself. Programming is one of the funniest (We have already given example), hardest (If you don’t enjoy coding) and easiest (If you love to play with code) thing to do in the world. A semicolon, a bracket, a loop and a lot of small and big things matter a lot in coding and you might have definitely experienced your silly mistakes especially in the initial phase-in programming.
Mistakes are part of coding and every programmer makes tonnes of mistakes especially as a beginner but that’s how they grow and become a good developer. We are going to discuss 6 common mistakes that programmers make during the initial phase of coding but these are not limited. It’s good to be aware of these mistakes and not to do the same while learning to code…
Mistakes to avoid
1. Learning Too Many Programming Languages, Frameworks, and Technology
This is one of the common mistakes that most of beginners make when they start learning to code. They think that it’s impressive to have C, C#, java , c++ , Python, and a lot of more language, frameworks or technology to showcase to someone or to mention in the resume but that’s actually foolishness not the sign of intelligence if you don’t have command or in-depth knowledge in any one of them.
Learning Java for 15 days and switching to Python just because java is tough or there is another reason then you will eventually end up with lots of confusion. It’s good to have knowledge of multiple languages but we highly recommend you to focus on a single language, in the beginning. Once you are experienced you won’t face difficulty in switching to another language. If you do this mistake then after a couple of years you will realize you aren’t master in any single language.
2. Self doubt, fear
It’s human nature to have fear and doubt of doing something but, doubt and fear never let you become the person you want really to be, being a programmer require much effort and you have to overcome fear and you have to trust your self that you can do it. You see a talented programmer who is good at solving the problems and making things work too fast, you start doubting and questioning your capability which is not good. Some people are good at picking up the concept very easily and some people take time but slow learning is completely superb if you take interest in coding.
Programming might be scary for you sometimes and beginners go through the phase when a voice in the head always say ‘I am not smart enough to solve the problem‘, programming is for genius by that time you are having negative mind then doubt will make you week to even start or continue your journey of coding you will feel that you are not capable enough for coding. When you have self-doubt on yourself always remember that you need to face it with courage and you need to be fearless. Programming is the field of taking the challenge and helping others by solving their problems but before that do yourself a favor and help yourself first.
There is a lot of videos on YouTube which can help you to overcome the fear and to be trustful. click here to watch;
3. Writing Code Without Plan
A lot of beginners in excitement skip the thinking, research, and planning stages of a project and start writing code right away. They do not understand the problem requirements, limitations and do not think about all the case scenarios (what’s the input and what should be the output etc). It can create a big issue and later you may regret it. We highly recommend every beginner to start step by step before writing code, for get getting a good output on the end. Beginner should also think and research before you start writing code. In programming, developers spend only 10% of the time writing code. Rest of the time they think, plan, research and discuss the complete project.
A beginner should go with the flow in a sequence of Think, Research, Plan, Write, Validate and Modify so they should follow some basic things before writing the code to avoid any issue or disaster at the production level.
- Understand the problem (Requirements analysis and specification)
- Design the program and make a rough working draft.
- Coding and unit testing
- Think and note down all the corner cases for testing.
- Break the problems into solvable pieces.
4. Not Using Proper Debugging Tool or IDE
Debugging is an essential part of programming. Debugging can be done manually or using a tool. The tool provides vital information regarding the errors or bugs that make the program not usable.
Using debugging tools or Integrated Development Environment(IDE) can improve the way you write and debug code, improving productivity and satisfaction.
5. Thinking you are already a master
It’s really an exciting and amazing feeling for beginners when they start writing small program and they found that their code starts running without any bug. After all they put so much effort into learning to code and finally they have successfully written a program that actually works. You enjoy coding, your confidence grows and maybe you also start teaching stuff to others. It’s actually pleasurable feeling that you have learned a lot of stuff but what if we say to explore some more complex projects or just take a look at your own code you have written a couple of months back. You will understand that it still needs some modification and your code can be refactored as well. This happens with the experienced programmer as well.
Always remember programming is a marathon where there is no end line. Every day new technology, frameworks and a lot of things are coming out in the world, so there is no end of learning the coding stuff. Keep your feet on the ground, explore more complex stuff in programming and keep learning. If you will hang out with some great experienced programmer you will find they don’t carry ‘I know everything attitude’ with themselves, they keep learning and they keep exploring the things even after spending years in programming.
6. Commenting and OverCommenting — Where is the Comment?
A coin has two sides, and this is true for many ideas and concepts or behavior we come across through our daily life.
Commenting your code is necessary and highly rewarding if done right. And, there are two types of people who treat their code rightly. The number one are those who do not comment at all. The other type, do comment but overdo it by a large margin.
Both approaches complement each other. Commenting your code makes it easier to understand and sends the message in natural language to the reader. On the other hand, too much information can make the situation ugly and unnecessarily complicated.
Slight use of humor in comments can work, but unnecessary writing an essay in comments is not at all recommended(unless needed).
For example, Variable += 1 // increment Variable by 1, is unnecessary and unsettling for others.
Programming is one of the rewarding trade out there. It can be frustration on many occasions, but many of us know the rewards and satisfaction it yields after successful execution. Today, I went through the 6 mistakes beginners programmers makes.
The list is in no way complete, and the readers are encouraged to share their own experience. Beginners experience the world of programming differently and it is always best to make mistakes as fast as you can. Understanding that you are making mistakes fast can improve you in less time and make you a better programmer in a long run.
The idea of this post came into my mind when my friend asked me on how he can avoid making common mistakes. It’s very easy for beginners to fall into the trap of thinking that they are moving in the right direction and can lose precious time practicing odd habits and code writing habits.