9 Common Programming Mistakes That Every Programmer Makes.

9 Common Programming Mistakes That Every Programmer Makes and Few Tips To Stay Healthy As a Programmer.

Programming:- Programming is a technique which gives power to the programmer to change the world with his/her skills.

Programming is an extremely osm thing.  Programming is the easiest thing if you love to write code. It is the hardest thing if you don't love to code. A programmer doesn't play with video game it plays with a semicolon, curly braces, loop, condition and many other things.

So I want to say one thing to every programmer that you are the creator of new things. You have the power to change the world with your creativity.

If we talk about mistakes it is a part of coding and every programmer make a thousand mistakes especially as a beginner. Today we are going to discuss 10 mistake that every programmer makes.



1) Try To Learning More Than One Language:- This is a common big mistake that most of the Programmer does special beginner. Most of the programmer thinks that if he/she learns more than one language, framework, technology to showcase to someone or to mention in the resume but it's madness if you don't have command or in-depth knowledge in any of them.

I also crashed at one point in my life as a programmer. It was not a pleasant experience.

Learning C for 1 month and try 10-15 program and switch
to C++ because C is old dated language and again learning C++ language for 2 months and try the same 10-15 program and switch to java and again switch to another language. It's good to learn or have knowledge of multiple languages but at least mastering in one language and take in-depth knowledge. I highly recommend you to focus on one language, in the beginning. Once you are experienced you won't face any difficulty in switching to another language. If you do this mistake again and again after a couple of years you will realize that you aren't master in any single language.

Writing messy code and ignoring code quality

2) No Comment In Program:- Most of the programmer make this type of Mistake they think what's the need of comment. But they don't know comment play a vital role in good programming. Comment help another programmer to understand your code and it helps you to write your code if you stuck with your code.

Comment make your program complex free, unwanted error-free and also comment help you to understand your code after a long time.

Comment help you to build Quality code which helps another programmer to understand and learn how you code.

"well dress make you beautiful 
and 
well comment make your program beautiful"


3) Code Without Plan:- Most of the programmer is stimulation to writing code right away. They skip the step of the planning project, thinking, research and analyzing the problem. They do not analyze the problem what type of output is required and what kind of input is needed. They do not understand the problem requirement, limitations.

They do not analyze the code complexity, Time complexity and Space complexity. There are several ways to solve a problem but they skip everything and jump into IDE and start to writing code. It can create a big issue and later you may regret it and if repeating these mistake continuously then after a couple of months you drop your Programming idea.

I highly recommend every programmer that first, you understand the problem, find what kind of input you need for this problem and what type of output is needed.

In programming, developers spend 80% of the time to think, plan, research and discuss the project and the remaining 20% of the time to writing code.

A beginner should go with the sequence of Thinking, Research, Plan, Write, Validate and Modify.
Follow some steps to avoid any issue or disaster at the production level.   
  • Analyze the problem and understand the requirement and limitation.
  • Find out which is the best algorithm to solve the given problem.
  • Think and note down all the cases for testing.
  • Desing the program and make a rough working draft.
  • Draw a flow chart.
  • Break the problems into solvable pieces.


4) Compare To Other Programmer, Self Doubt:- We all know that it's our human nature to compare ourselves with others all the time, that's the case in programming as well. If you see an experienced or talented programmer than you who is good in programming and good at solving the problem and have an in-depth knowledge of algorithm, we start doubting and questioning our capability which is not good. We don't do doubting ourselves after seeing a good programmer we follow his step. We observe how he solve a problem what the standard of his/her code. 

Some people have fast catching power and some people have less catching power. Programming might be scary for you sometimes and beginners think 'they are not smart enough to solve the problem' and a lot of things make them feel insecure and make them realize that they are not capable enough to code.

One thing always remembers you have your own mindset and catching power. When you have self-doubt on yourself always remember that you need to face it with courage and you need to fearless. Programming is a technique which has the power to solve the world problem and if you want to succeed in this field you take a challenge and helping others by solving their problem.

Question yourself...? What can I do to become a better programmer? What the way I take to succeed in programming? Identify your weakness and work on that by taking help from others. 

5) Writing Lousy Code And Ignoring Code Quality:-  Most of the programmer doesn't focus on Code Quality they only writing a line of code one by one. They ignore some important things which help to build code quality.

There is a number of mistakes that programmer do:-
  1. Choose a bad variable name which is note related to value or program.
  2. Choose Invalid Identifier Name.
  3. No Proper indentation in code.
  4. Try to put everything in a single line don't focus on white space or indentation.
  5. Taking a futile Function.
  6. Writing function that is too big or putting everything in a single line or file.
  7. No commenting or over commenting the code.
Programming is not about just writing code and making it work, your code should be clean, readable and maintainable. 
So we focus on writing code which is good documentation, clean, readable and maintainable.

“So if you want to go fast
 if you want to get done quickly, 
if you want your code to be easy to write, 
make it easy to read.”


6) Lack Of Coding:- Theory and understanding how stuff works is important. But in programming, what is also important is practice!

You are reading books to learn how to code. How else are you going to learn how to code, except by applying.

I will go as far as to say even this. When learning a new programming language, copy and type in code snippets from the textbook. You don't have to understand before typing. By typing it repeatedly, and running into different errors, you will begin to see how all these small pieces come together. Believe it or not, programmers also have to develop muscle memory.

What are some good ways to commit to coding?
  • Set aside a specific time period during the day. In this time block, only write code. Do not do anything else.
  • Practice by solving the problems.


"Programming is Thinking
Not Typing" 

Some coding website where you can increase your programming skills:-

  1. HackerEarth
  2. CodeChef
  3. Hackerrank

7) Thinking I Know Everything:- Most of the programmer thinks they know everything. They do not take help from another programmer. It's really an exciting and amazing feeling for a programmer when their code debugs without error or their code starts running without any bug. Afterall they put so much effort into learning to code finally they have successfully written a program that actually works but after a couple of successful programs they think they know everything but it is totally wrong thinking. It's an actually pleasurable feeling that you have learned a lot of stuff but what if we say to explore some more complex project. Programming has no end line and no one says that I make every program.  Every day new technology, framework and a lot of things are coming out in the world. So do not underestimate your ability also but do not overestimate your ability as well. If you will hang out with some great experienced programmer you will find they don't have overconfidence attitude they don't say 'I know everything', they always try to learn new thing and exploring a new idea.


8) Laziness In Doing Practice:- Laziness is things which destroy your life and career. There is a huge difference between reading the code and doing things practically. Practising the actual code should never be neglected in programming. It's easy to read some lines of code or watch some videos for learning then telling your brain that you understood everything but once you will start writing the code you will find that you are making a lot of silly and big mistake. Practising the actual code should never be neglected in programming. 

In the beginning, if you start coding with C language you will be a missing semicolon, braces and you will face difficulty in writing a loop. If you start coding with Python language you will make a mistake in the indention.

"She did not sleep because,
She missed him,
I did not sleep because,
I missed a semicolon in my code."

9) No Backup For Work:- There is one of the mistakes any programmer can make especially as a beginner. Think about that moment when you have put so much effort in making a project and after two weeks you find that the disk crashed where all your files were saved, you have also lost your work. There is no one who is going to listen that you have lost your code just because your system or a part of the system got crashed. Every beginner or programmer should have this habit to keep backup of their work at regular intervals.

Few Tips To Stay Healthy As A Programmer:-

1) Get Enough Sleep: 

Sleep deprivation in a long period has a devastating effect. Sleeping recharges your energy and helps in a lot of aspects. 

2) Take Pauses:

Make sure you take enough pauses. This will keep you healthy and let you think about a problem from a different angle.

3) Stay Physically Fit:

Our body is not made to remain in front of a desk all day long.
It needs movements.

4) Sit Correctly:

Sit well behind your computer: 90-degree angle, adjusted heights, sit straight.

5) Water Your Body:

Don't only drink only when you are thirsty, have a bottle with you the whole day, this will encourage you to drink more.

6) Kill Screen In Your Bed:

Stop all forms of working or screen time, 2 hours before going to bed. Go to bed early enough, so you wake up naturally.








Comments :

Post a Comment