Started with coding
|
So last week I started on the coding process as I completed the documentation part. The task I started with next was a score manager that would keep track of the points, and then being saved to a file; in this case a text file. Every time the program is run 100 points are added to the text file. This means that the score is saved in the text file and always being kept there until the next time the score manager is compiled and run. What I mean by “score manager” is a manager that keeps track of the current score + 100 points every time it gets “updated”. So if you start at 0 points and compile the program the text file will have the value “100″, and the second time “200″ etc. To further explain what I mean a picture is shown below (note that the number “1600″ means that I’ve compiled this 16 times):
As you can see the code was made in the “main.cpp” which wasn’t appreciated by the other coders in my group due to it being in the main file. This is because the main.cpp should contain so little code as possible, but also that using source files (.cpp) and header files (.h) are much better as the code has a better overall structure that way. Unfortunately the lead programmer in my group didn’t think this code would help with anything at all (but at least I’ve made something). I think this is due to a misunderstanding because I didn’t understand the task correctly, so we need a better communication for clarification purposes. I know that I’m not a great provider with the coding part as I am with the documentation, and it’s really hard for me to do anything without help from friends, teachers and tutorials, but even then I struggle. However, the school offers help in the form of mentor assistances and I have contacted one to a meeting so that I can get help.
Another problem I’ve had is the underestimation of time that I’ll need to finish tasks off. My knowledge of coding is not very high and thus even a “simple” thing will take time. Because of this, I only got this task to start off with, but the last week’s task wasn’t completed and it’s frustrating. What’s even more frustrating is the fact that my group suffers from this too. Of course I can ask questions when I’m stuck but it also depends that I haven’t invested the time needed… I’ve sadly been unmotivated at times that’s why. |
