Conversation
📝 HackYourFuture auto gradeAssignment Score: 100 / 100 ✅Status: ✅ Passed Test Details |
There was a problem hiding this comment.
See my main comment for the trail “"
JQnetherlands
left a comment
There was a problem hiding this comment.
Hello Hannah,
First of all, Congratulation your code passed all the requirements, your code is clean and well organised and it accomplishes all the goals. It is easy to understand and follow de logic.
The only thing I encountered is the following, I try your curls request by coping them and directly submit them in the terminal , not only you can try them with $ bash “file.sh”, you can use them in the terminal directly. I did that what with some of your curls you have an ending “\”, please be mindful to only use it where you need them, in this case in the post curl but it is not needed in the others (update, path, delete).
What happens when you use a command with a not needed “\”? , The terminal keep waiting for other command, that can create confusion , it is in on purpose? or the developer forgot a part of the command? because you should only use “\” if other command follow it in the same prompt. That is the only suggestion to write more clear code.
Other thing that you did very well was to put offset = 0, limit = 10 as their default value but did you know that is not strictly necessary? . Because if you read the API of the novel prizes documentation, you find out that the API gives those values as default even if you don’t provide for them.
If you already knew this but then decided to provide a default value for offset and limit, that is good to make it explicit in the code.
But if you did not know about this and then you thought it was needed, then please think in the future what is really needed and what is not, so you can make more wise choices in the future and career. Again you did overall really well , be proud of yourself.
Networks and API