Wiredcraft / test-fullstack

6 stars 43 forks source link

Nicolas de Lima Application - Fullstack #60

Closed deLimaNicolas closed 3 years ago

deLimaNicolas commented 3 years ago

Hey there!

I hope you`re good

Please check the Readme, I wrote some introduction to help you with this review!

I`m waiting for cool tips and insights on my code now, good luck and good code!

REPO -- https://github.com/deLimaNicolas/test-fullstack

rankun203 commented 3 years ago

@deLimaNicolas Thanks for the PR! A few topics I wanna discuss with you:

  1. For the Routes + Compose Generator (error handling & service encapsulation) design, is there any room for simplify / improve it? As I understand you haven't completely abstracted the network related dependencies out of the services layer as "Compose Generator" is trying to do.
  2. I saw your notes on the refresh token, if one day you decided to do it properly, how'd you like to do it from the FE side?
deLimaNicolas commented 3 years ago

@deLimaNicolas Thanks for the PR! A few topics I wanna discuss with you:

1. For the Routes + Compose Generator (error handling & service encapsulation) design, is there any room for simplify / improve it? As I understand you haven't completely abstracted the network related dependencies out of the services layer as "Compose Generator" is trying to do.

2. I saw your notes on the refresh token, if one day you decided to do it properly, how'd you like to do it from the FE side?

@rankun203 Hey there! Good points, let's go then

About the Compose Generator:

Sorry if this isn't what you were expecting, I would love to get your opinion on how to improve this, it is a strategy that I like to implement as you can see, so any feedback would be really valuable for me :)

OBS: I changed some names so I wouldn't expose anything

Imp Imp2

Now about the refresh token.

I'm thinking about this problem with a simple approach, nothing too sophisticated.

I hope this could solve your questions! But if that is not the case, feel free to ask more

Thanks!

rankun203 commented 3 years ago

@deLimaNicolas Hi, thank you for your detailed response! I see you are pretty passionate and creative on researching different ways to improve your code architecture.

I think that's enough info from my side, have a good day :-)

deLimaNicolas commented 3 years ago

@rankun203 Totally agree! I could just move this logic to the Middlewares folder, as I said before it is something that was in my head, but I over-engineered it this time :/

Thanks for your feedback! Have a Good Rest