For Assignment 2, we were tasked to add more features to our existing store website from Assignment 1. To be more specific, we needed to make the website more personalized to the user and ensure that the pages greets them, only a registered users may make purchases, and the invoice needs to personally thank each user. In order to do the aforementioned tasks, we needed to code a fully functioning login page and registration page. More information regarding the assignment can be found here.
I learned a lot of new code from completing this assignment. For instance, I learned how to code a server that would provide full functionality to my website. In the server, I had to code posts to be able to correctly process logins and registrations. I also learned how to code and utilize a user data .json file to make sure that new users who register will be saved into the data base and they can use that same registration information to login in the future. Another important code that I learned was the res/req coding that would validate data. For example, when a login or registration does not work for any reason, the res.send code would bring the user to a new window and display what the problem was.
I did not work with a partner. I contributed 100% of the submitted assignment.
When I needed help, I did not ask anyone. I am the suffer in silence type which is really bad but I was behind on the assignment (COVID shot made me unwell lol) and did not want to bother people. I ended up relying on looking up solutions to assist me with what I struggled with. I needed help the most with validating the registration via the server and ensuring that the user would receive an error if they did not meet the requirements of the registration fields. Besides that, I was able to figure things out easily.
Developing this assignment differed from Assignment 1 because of the complexity of the functions required. In Assignment 1, we were allowed to just copy the coding for the server. For this assignment, we needed to do various codes in the server to make sure our websites were working correctly (posts, req, res) and that users would have no problem going through the different functions of the website. We also had to make the website more personalized which means that we needed to add code that would display custom messages for each user.
I probably spent about 25% thinking about what I had to do, 60% writing code, and 15% testing and debugging. Due to the fact that I was behind on the assignment, I just threw myself in there and hoped for the best. I did not really spend much time thinking critically about what I had to do, I just wrote code and hoped for the best. Since I was late, I didn’t really spend time testing it out either. Once I had it working, I just uploaded and didn’t look back. Only now, a week later, that I’m going back to properly debug and test.
If I could go back in time, I would plan ahead what I need to do and make ample to complete the assignment. Rather than just cramming everything in 3 days, I would plan to work on different things and spreadout the work. Managing my time and planning out the work would also allow me to see where I need help or where I have errors in my code early so I can get help from my peers or the TAs/Professor Port. My poor planning resulted in both a time crunch and being stuck without any help. Double homicide.
Source: https://media.tenor.com/images/642c71bf3f28b79363bd35adfa992fa4/tenor.gif