We’ve been working on the Library Project for the past few weeks, and so far, so good! I can see that the assignments are gradually getting more challenging as the weeks go by, but it’s quite exciting. For this week, I did a code review with my teammate, and one suggestion I received was to add more comments to explain some of the methods. This would help make my code easier for others to understand. I feel that the methods in Book.java and Reader.java
are fairly simple, so I didn’t add much explanation in the code, but I agree that it’s good practice to include some descriptions.
Using the auto-generate tool in IntelliJ for the equals() and hashCode() methods helped a lot, so those parts went smoothly. As I mentioned, the structure of Book.java and Reader.java was straightforward, and I didn’t face many challenges while working on those two files. The part I had to test multiple times was the toString() method, which required some adjustments to the output string format. However, this was also an easy fix. I always feel a sense of accomplishment when I see all the tests pass.
No comments:
Post a Comment