Let's start learning about the computer programming process. There are 5 steps to this process and we will learn all of them through the course of this cartoon.
שקופית: 2
Step One - Identify the Problem
The same thing happened to me. Let's try to figure it out.
What happened to my code? What did I do wrong?
The first step in the computer programming process is to identify the problem. You need to figure out what you are trying to achieve. There are two parts to this step, what are the requirements and specifications to achieve the goal. You have to examine the data and make sure that the program runs smoothly.
שקופית: 3
Step Two - Design the Solution
That's a great idea! Let's run through the code and see if we can find and bugs.
What should we do now? I think that we should come up with a plan on how to solve this issue.
The second step is to design the solution. You should try to break down the problem into smaller subsections. This process is called modularization or the Top Down Design. You can split up each subsection and divide up the work to be more productive. You can create a plan through many different strategies, such as, an algorithm, pseudocode, or flowcharting.
שקופית: 4
Step Three - Write the Program
It is still not working, we have to keep trying and figure it out.
Now that we have a plan, lets write and fix our code to see if it works now.
The third step is to write the program. You'll need to find the right language that suits what you are trying to accomplish. Different languages handle date in different ways. You should follow the rules of the program preciely to avoid errors. A good programming style should be followed when writing the code, this makes it easier to read and understand.
שקופית: 5
Step Four - Debugging
Look, I got it!! It took many trys but I finally did it. I can help you if you want.
Ugh, its still not working, we have to keep trying. This is so difficult.
The forth step in the programming process is to debug the code you have written. As a coder you are going to make mistakes. It is unlikely that your code is going to come out flawless. You should test the program for all sytax errors. You should debug and alpha test (looking for logic errors in the code) your code. Run some diagnostics tests and lastly beta test. What would your users enter?
שקופית: 6
Step Five - Document and Maintain the Program
That's a great idea! I'll store it in a safe place so that it does not get lost.
Thank you its finally working! We should save the code so that we can remeber it for later.
The last step is to document the program. Documentation is for the users understanding but you can also create user guides so other users are certain that they are following the design of the code correctly. It is also useful to document the code so that you remeber what you are doing and how you created the program. This is a good practice to follow when updating or changing code written by someone else