Reflection Post for Homework 1

1. Coding

How long did you spend on this assignment?

I spent approximately 3 days on this assignment. The time was divided among setting up the environment, designing the API, debugging, and writing tests.

Where did you spend the most time?

The most time-consuming part was debugging request handlers. In general, I find that debugging takes up most of my time in any assignment or project.

What did you struggle with the most?

I struggled the most with debugging foreign key issues, handling invalid IDs. Additional examples or documentation would have helped.

2. TypeScript

Bugs caught by TypeScript

TypeScript helped catch issues like missing properties in request bodies and type mismatches in database queries. However, it didn’t catch runtime issues like invalid foreign keys.

ii.) Typing struggles

Typing database results and request/response objects was challenging. Advanced TypeScript topics like that are still a bit confusing.

3. Testing

Experience writing tests

Writing tests was challenging as I am still not quite used to doing them, and I am not familiar with TypeScript. However, it made debugging easier and ensured the API worked as expected.

Bugs found by tests

Tests helped uncover issues, such as incorrect status codes and mismatched error messages.

Future testing improvements

In the future, I would like group tests to be better and to use reusable setups to make the suite easier to maintain.

Back to Home