Home

Homework 3 Reflection

  1. Node
    1. It was very easy to reuse my code from the previous assignment. All I had to do for editing a book was add a post request with a few additional lines of code. Most of the logic was already implemented in my code.
    2. I felt as though in this scenario, the test cases were redundant. They were easy, especially because I added delete tests before this assignment. However, I found I had to write more code creating the test cases. I understand the need for them, though.
  2. React
    1. I created a selection within the table. When the user selects a book, two buttons enable and the entries within the book are able to edit. The user can either delete the book or change information about it. I thought of this idea as soon as I read that the ui would have to include editing, but wasn't able to implement it right away. I originally had two forms, one which took an id input and the other which took all information for a book (none of the information was required). I hated how that looked so I spent my time figuring out how work out my original plan.
    2. I struggled with implementing edit/delete within the table. It still does not work as it should. If the user selects a book and attempts to type into an input, the input is deselected. The user would have to click back into the input and repeat the process again.
  3. Material UI
    1. I like how everything looks, but absolutely hate how every single element has to be imported. Some of the documentation also did not make sense nor did it explain the differences between some elements.
    2. It was pretty easy to refactor the code, there was a slight learning curve for me though.