Sunday, 21 February 2016

Ways to become a Good Programmer

The Secret behind becoming a better or an exceptional coder is very simple . Programming is simply a task of converting your knowledge into computer program that will help solving different tasks. Programmer usually writes codes in different languages (like C, C++, Java) . The basic thing to do to become a better programmer is to become a better coder. The question now is that how to become a better coder?
I have seen a number of people who have all the knowledge of the languages like C++ or Java , but they can't write good programs and are not able to solve different programming task. The actual problem is that they don't have a logic or they can't just make a logic related to the problem .

There isn't any rocket science to become a good programmer or a good coder, the simplest things you need to do are given below:

Develop Interest:

The most important thing to become a good programmer is that you should have the interest in the field . This rule is just not applicable on just programming or coding but any thing you do in your life you must have interest in that work. As far as Programming is related , without interest you cant even like to think about it. You have to develop interest and you should love to code . That's the first thing to do.

Get Knowledge of Trio:

1. Logic
2. Mathematics
3. Programming Language (like C++, Java, Python)

Logic :

Your logic building power should be strong. This can only be achieved by practice, the more you solve problems the more your logic building ability becomes strong .

Mathematics :

Coding is something related to mathematics . As it is said that Mathematics is the mother of all subjects so you should have a good knowledge of mathematics to make good and strong logic.
For Example, if you are given a task to make program to find area of cube. In this case your knowledge of mathematics will help you to solve the task.

Programming language :

Its obvious to understand the language you are working on . You should know the syntax of the language and should have full control over it .

Understand The Problem :

First of all , Read the problem twice and understand it completely. Without understanding the demands of problem you are nowhere.

Make A Plan : 

Make a plan to solve the problem, like design a flowchart or Algorithm. This will help you to solve the problem more efficiently and clearly.
Design Flowchart

Go Step By Step :

While solving a problem , it's important to remember that don't be afraid of the problem. Think Broader but not out of the box. Divide the problem into parts if its a bigger one and solve each part step by step. It is also recommended to divide the problem while designing Algorithm.

Paper Coding :

Paper coding is also an efficient practice to make your logic strong . Paper coding is actually to write the whole program on paper before writing on compiler.
Paper Coding

Author's Suggestion : 

It is suggested to at least start the program whether you have made your logic or not . This works for me I hope it does for you too. So its a better idea to at least initiate your logic.

Believe In Yourself :

Keep it in your mind, if you have made a logic don't think will it work or not. Believe in yourself and start your program. It is useless to waste your time instead start your task.

Organize Your Code :

While writing your program, it is important to write your program in a way that other can understand it easily. Your Program should be well organized. Use blank spaces and proper use of brackets for this reason.
Well Organized Code

Good Naming :

Another Important thing is to name the variables and functions properly. For examples, if a variable is counting the numbers, name it count. This is very important point to remember. At times you have to make long codes, in that case your variables and functions should be properly named. 
Method to name the variables

Test Your Program :

When you'll write your program, test your program with different values. Check it completely for every possibility.

Be Prepared For Changes :

When you are writing your code be prepared mentally that you may have to change your code. There may occur errors or you may get wrong output, so be prepared to make amendments.

Programmer Choice :

If you are about to start your professional life , decide which type of programmer you want to become. For this, you should know the types the Programmer.
  • Web Programmer
  • Desktop application programmer
    • Operating system (OS) oriented programmer(tied to a single operating system or set of operating systems)
    • Platform-independent programmer
  • Distributed applications programmer
  • Library/platform/framework/core programmer
  • System programmer
    • Kernel programmer
    • Driver programmer
    • Compiler programmer
  • Programming Scientist                      ( Reference of types : Wikipedia )

Practice :

Practice makes you perfect. Do as much practice you can , this is the most important thing to do.
Soon you'll become a Computer Scientist :)
Keep Practicing , Keep Smiling. Happy Coding. Thank You :)

Summary