Home

Homework 2 Reflection

  1. Node
    1. Changes
      1. I added "/api" before all routes as per the instructions.
      2. I added "export" before types in server.ts so I could easily access them in the front end.
      3. I added error messages to zod error handling so that everything was taken care of on the server-side rather than the client-side.
      If I were to go back in time and make any changes, I would only change the error handling for zod. I feel like I did pretty well on the back end for the first assignment, as I didn't have to make any major changes.
    2. As I stated before, I wanted to (and did) use server-side validation. Using it for this assignment was very convenient due to using zod. It is much safer to use server-side validation because of its security, which is why I prefer it. You can make your error messages look pretty if you use client-side, but I feel as if that's the only real pro. It's very easy to manipulate client-side code. I would much rather take the extra steps for server-side validation to keep my site safe rather than take the easy route for client-side.
  2. React
    1. My overall experience using React was looking at documentation. There are a lot of new things to learn thus did a lot of google searches and documentation look-ups. I enjoyed the easiness of it in that everything looks nice and doesn't require a lot of manipulation. I did not enjoy having to figure out every little tiny thing, but that's programming.
    2. I prefer React over JS DOM manipulation, even though I've been struggling. React makes it a lot easier to, in my mind, compartmentalize the specific aspects of the page I'm creating.
    3. I found types to be pretty easy to work with. It made data a lot easier to display. I didn't struggle at all with them and overall found them very helpful.
  3. LLMs
    1. I did not use LLMs to help write my code.
    2. -