TASK 2 - REFLECTION
A reflection on all the code that you have created and how you can express an idea based on a computer program.
-
Data Handling
-
Describe and compare coding methods
i) Creating from scratch
ii) Acquiring premade code
-
Describe perform simple calculations on data coding
i) Explain why the calculations is required
ii) Annotate the result of this calculation
-
Describe the proper way to acquire, manipulate and acknowledge data and information in solving a specific problem
DATA HANDLING - Describe and compare coding methods
Scratch is much simpler than processing and can achieve much less. Scratch is a simple app which has lots of option, even a 6 year-old children can use it or you can make something more complicated which requires much more work and time. It is a simple program to start using and mastering it requires a little more effort, but it’s simple design is what attracts children, teens and some adults. I used to play Scratch in my primary school. It is easy and not even complicated. It doesn't required any coding skills and all you need to do is to drag boxes of command and matches it with others. It is based on the web and uses color-coded blocks which users drag around to make your creations. I think that Scratch is a is a great tool for starters in programming.
On the other hand, pre-made code is also a nice thing for beginner. Premade code can be defined as the code that had already created by other programmers and can be used to modified and explored by others. Using premade code enable users to save times on coding their main functions. Acquiring premade codes are able to let the starters to explore more about coding. In addition, acquiring premade codes on difficult tasks is also a nice solution as users will not be wasting time on other things but focusing on their main task.
DATA HANDLING - Describe perform simple calculations on data coding
Calculations is required for coding. In this portfolio, most of my code includes calculations. These calculations provide users a specific location of where the text, line or shape are. For example, in task 1 code 1, the line, "translate(width/2, height/2);" shows where the text will be positioned as (width/2, height/2) is clearly the center of the screen. Instead of guessing the location of the text, using math calculations will definitely be easier, faster and smarter. In addition, not only simple calculations can be used in coding, complicated calculations can also be used in it. For instance, the trigonometry function can also be used in the code. For example, in Task 1 Text Animation: int wave = int(sin(frameCount * 0.12 + ( x * y ) * 0.07) * 100); is used to control the speed of the moving tiles.
All these math calculations are necessary in the code. Users used them to calculate the object's position and also move the object. Without these calculations, coding will be harder and more confusing. Because text command such as " move to right three steps" are not allowed i coding, simple calculations are formed to solve these problems. The importance of the simple calculations can be seen in this portfolio as almost every code has a simple calculations.
DATA HANDLING - Describe the proper way to acquire, manipulate and acknowledge data and information in solving a specific problem
The proper way to acquire, manipulate and acknowledge can be done by:
Acquire - To find a code that has been done by others' programmers. Explore and discovered the code. Make sure that you are able to understand the solution of the problem from the code. By doing this, users are able to have a idea about the solution of the problem. However, users need to have a clear idea of which part of the code are useful and not. By acquire a pre-made code, it save a lot of my time as I don't need to spend time creating a programme.
Manipulate - After acquiring, manipulate is important. It is important that the code is modified so that it will works well in my own code. This is because the code that the users acquire might not be able to fully solve the problems. By changing and improving it, the code will fit your own programme better. Additionally, modified is also important so that plagiarism will not happen. Plagiarism = stealings people's work and therefore this is not allowed.
Acknowledge - After all the above is done, it is important to state the owner of the premade codes. Credits should be given to them or else it will e count as plagiarism. This part can be done by creating a bibliography or citing the source.