The programming Process — A step by step mini guide
1. Defining The Problem
This step consists of identifying inputs, outputs, and operations, which lead us to inputs and outputs.
FOR EXAMPLE, There is a problem that asks the user to enter a round number. So now that program gives an output number that doubles the number that the user entered.
So here User input is defining what the program output is.
So to start working on this program’s code, you need to work on the input and output of this program solely!
2.
Want to add a caption to this image? Click the Settings icon.
This is the step many novice programmers ignore but. You should first solve the problem then write the code!
FOR EXAMPLE, if there is a problem that you need to program which is asking you to solve 12 multiplied by 1000, then you must get the math done before you jump on writing the code!
You must think twice and code once!
3. coding the problem
As the program, your next step is to code the program that is to express your solution in a programming language of your choice. SIMPLE
4. testing the problem
The newly written program probably have a few errors. Find them with some tests and fix them.
FOR EXAMPLE, you should use the debugger feature in your IDE or any favorite editor like atom text editor.
5.
Want to add a caption to this image? Click the Settings icon.
Documentation is an ongoing, necessary process, although, as many programmers are, maybe you are also eager to pursue more exciting activities.
However, do not ignore documenting each line of your code, if needed. Tell, describe why that line exists, what that block of code is supposed to do. It is essential, and it needs to have some attention. More on this in the following point!**
6.
Want to add a caption to this image? Click the Settings icon.
Now that everything works let’s optimize this code.
Optimization should always be there in your coding schedules. Not because your code at the very first place always sucks,
but there is always more than one solution to every problem, and there is always that more efficient one’s among them.
Look for that shortest, simplest one from all and use that. Maybe in future, you are going to let other developers work on your code, or maybe you are going to work on it in future, so using that efficient and straightforward code(not to forget documented code**) helps you and that other developer a lot while working on that!
Do you use these processes?
Do something today that future self thank you for!
Hope you liked the article, don’t forget to share it with others who find this topic to be valuable.
thank you!!