Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Morning Session Peer to Peer Code Review | M2W5 #38

Open
harlexkhal opened this issue Mar 11, 2022 · 0 comments
Open

Morning Session Peer to Peer Code Review | M2W5 #38

harlexkhal opened this issue Mar 11, 2022 · 0 comments

Comments

@harlexkhal
Copy link

harlexkhal commented Mar 11, 2022

Even though this is not working at the time of this writing due to issues from your API providers. From the load screen, I can imagine it had a lovely user interface design behind it ⭐. also lovely code architectural design, almost similar to MVC architecture. 👏

  • Just a few issues I noticed while going through the codes in the add comment section when a comment is added, the input value is not cleared before the Involvement API to add a new comment is called, this could cause an unexpected runtime bug when a user has slow network and makes multiple clicks on the submit button. A request could be stopped by disabling the submit button until the API gives back a response or by stopping the next add comment await process if there's already one on the request queue.

  • Comments for documenting functions are better to put before functions not inside.

  • The argument "exists" in createComments could be named differently to be more descriptive. Maybe firstTime to be true by default.

  • Some functions like addComment could be implemented more in a functional way by passing the comment object to them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant