E5 Reflecting on Assignment 2 Technocal Essay

03 May 2021

The assignment2 is based on the content of assignment1, and the contents of the login page and register page are added so that the user can enter the invoice page only after registering and logging in to the account. Click here to the page for further details. In this assignment, I learned how to add Codes to Server.js to make the Login and Register Page run on the Server. I also learned how to use if and else to create what I wanted. For example, for the password requirement, I can use “if” statement to set the input requirements, and the “else” statement to display input errors. Most of these are used for setting up the username, password, and email. In addition, I have become more familiar with the use of CSS to design the layout of Pages. However, I have learned a lot of knowledge about designing page layouts through constant adjustment.

I finished the assignment 2 by myself, so I can arrange the time according to my own schedule. When I need help, the first thing I do is go to Google and YouTube. Among them, my favorite one is W3School, where I got a lot of help. If I can’t get help on searching, I will ask the professor or TAs for help. When I ask the professor for help, most of the mistakes are made by me carelessly, so that the whole code does not work. Then the teacher will find out those stupid mistakes very quickly to help me make everything work successfully. The difference between Assignment 2 and Assignment 1 is to create an additional Login page and a Register page in order to have “clients” login to their account before checks out. In addition, I need to type more code in server.js than assignment 1, because I need to successfully run the login and register page on the server.

I spent 20% of my time trying to figure out how to create the Login and Register pages because the professor provided a screencast to help me simply set up those two pages. I spent about 45% of my time on coding, especially spent a lot of time on writing codes for server.js because I didn’t know how to write some codes to make these two pages execute on server. I spent 35% of my time testing and debugging. This is probably the most frustrating time for me, because sometimes the code I wrote did not work or I accidentally added a symbol to make the whole code not work, and I had to carefully review the codes repeatedly to find out the problem.

I think what I did well in this homework is that I spent enough time and patience to coding and modify some mistakes. I paid great attention to all details and tried my best to complete the homework according to the requirements of the homework. Something I didn’t did well is that I did not start the assignment in advance, which led to a hurry in the few days before the due day. If I could go back in time, I would start to do this assignment a week earlier, so that I would not be in such a hurry when testing and debugging are needed before the due day.