abdelwahidjr / CatLover

0 stars 0 forks source link

Nice work Ibrahim šŸ’Ŗ #1

Open jhatzics opened 1 year ago

jhatzics commented 1 year ago

Hi Ibrahim,

First of all, thank you for effort in this assignment! We really appreciate it. Apart from my comments below, I would like you to answer these two questions.

Thank you once again and have a great day ahead šŸ™

Questions

  1. In terms of security, what would you change in this app before a production deployment? Assume that hundrends of users will use it.
  2. If you had to present thousands of images without pagination, what would you do differently?

Comments

  1. Can you suggest a different way of implementing this toast message, presentation logic?

https://github.com/abdelwahidjr/CatLover/blob/c07e3fc5406032c48e76ec20f544a65a18b4856a/src/components/delete-favourite-cat-button.tsx#L29-L38

  1. What is the return type of this function?

https://github.com/abdelwahidjr/CatLover/blob/c07e3fc5406032c48e76ec20f544a65a18b4856a/src/components/cat-list.tsx#L16

  1. Why you did not define a property like breedsPages?: Array<Breed[]>; here?

https://github.com/abdelwahidjr/CatLover/blob/c07e3fc5406032c48e76ec20f544a65a18b4856a/src/components/breed-list.tsx#L7-L11

  1. What is the use of React.useMemo here?

https://github.com/abdelwahidjr/CatLover/blob/c07e3fc5406032c48e76ec20f544a65a18b4856a/src/components/nav-link.tsx#L10

  1. What else you could do to define the pages property here with a single array type?

https://github.com/abdelwahidjr/CatLover/blob/c07e3fc5406032c48e76ec20f544a65a18b4856a/src/components/cat-list.tsx#L11

  1. Can you briefly describe the idea behind the src\routes folder structure?

  2. Is there something else you could do here to increase your app's performance?

https://github.com/abdelwahidjr/CatLover/blob/c07e3fc5406032c48e76ec20f544a65a18b4856a/src/routes/favourites/api.ts#L39-L52

abdelwahidjr commented 1 year ago

First of all i have worked with many many different stacks and reactjs is not my first choice also have a wide experience in core side of software engineering and server side in extensive way as well, but as you know if you're a good software engineer you can do anything related to the SDLC from gathering the requirements doing UML diagrams class diagram , activity ,sequence , block etc even DB ERD and practice in development in addition to server side work. BTW


Comments

some answers i mentioned in the long paragraph and the rest will take care and keep in mind of course as well