In: Computer Science
Discuss the importance of planning out a program on paper before writing the actual code, and why there are advantages to doing it this way.
300 words
Importance of writing code on paper before writing actual code are as follows:-
* Many times programming problems require us to deduce formula to find the answer. Which can be done easily on a paper .
* When we write pseudo code on paper we need not to worry about the syntax thus we can focus more on the problem. But when we code on computer we see syntax errors highlighted which can distract us from focusing on solution and thus reduce efficiency.
*Many bugs are solved on the paper itself which saves the time of compiling the code and then looking for error.
* When you plan program on a paper you can also make flow charts for the program. Making flow charts reduces the time of understanding the program. Thus the chances of error also gets reduced.
* On paper you can dry run the code and confirm if the code gives correct output for the given inputs. And make correction in code if needed. Dry running code gives better understanding of the program.
Why there are advantages of writing code on paper?
* The efficiency is highly increased, because while planning program on paper you do focus on only one thing.
* The screen time is reduced. You don't have to face computer screen which can effect yours eyes.
* After planning whole program on paper when you write the final code on computer, it takes less time than without planing on paper. It is because in this case you need not to think about the program, you can code with your typing speed.
-------------
Consider giving thumbs up you are satisfied with the answer