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

code of commands is not maintainable and scalable #1

Open
yashrajb opened this issue Oct 1, 2023 · 2 comments · May be fixed by #3
Open

code of commands is not maintainable and scalable #1

yashrajb opened this issue Oct 1, 2023 · 2 comments · May be fixed by #3
Assignees
Labels
good first issue Good for newcomers

Comments

@yashrajb
Copy link
Owner

yashrajb commented Oct 1, 2023

Check the code in src/index.js for the commands; it appears to be written in a spaghetti code style. To make the command code more scalable and maintainable for the long term, follow these guidelines:

  • Break down the code into smaller, reusable modules or functions. Each command should ideally have its own module or file.

  • Separate the concerns of input parsing, command execution, and output generation. This will make it easier to change or expand functionalities in the future.

  • Implement proper error handling and validation to prevent unexpected crashes and provide meaningful error messages to users.

  • Consider the potential for scalability when designing your code. Will it be easy to add new commands or features in the future?

@yashrajb yashrajb added the good first issue Good for newcomers label Oct 1, 2023
@asharma991
Copy link

I wanna work on this, can you please assign this to me?

@yashrajb
Copy link
Owner Author

yashrajb commented Oct 1, 2023

assigned to you @asharma991

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
2 participants