GSG-G13 / aya-haitham-api-app

0 stars 2 forks source link

Code Review #21

Open fadezak100 opened 1 year ago

fadezak100 commented 1 year ago

Hi @haitham-akram and @AyaQunoo. I hope you're enjoying your night after working hard on that project. I like your final product, the styles are cool, the console is empty and everything is clean! Excellent work!

I left some comments on your code here #20, please review them and reply there if you have any questions.

Here are some general notes to consider in your future projects:

  1. file structure: I like that you have created a separate folder for scripts and styles but we can do better. I suggest making a folder for each page. For example a giveaway folder with index.html, index.js, and style.css. This will be so much better than having all of your styles in one file.
  2. GOOD JOB having your code formatted and free of typos 🥳
  3. What will happen in case of no response sent back from the API? this might be early but start to think about including fallback values. For example, if an object in the response came with no image, I can use a local image for it.
  4. Please take your time finding names for your commit messages and pull requests and avoid things like fixes and final changes
  5. Try to stick with a naming convention for your branches, the recommended one by GitHub is kebab-case. And close them once you're finished with them.
  6. Don't forget about previous weeks' topics, such as testing. You got plenty of pure functions that can be tested.

That's it for me. Again, excellent work on your project. The comments I added in pr #20, are just to open your mind about writing robust code. Good Luck!