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

Unstructured format of the script #5

Open
shashankjo opened this issue May 14, 2021 · 0 comments
Open

Unstructured format of the script #5

shashankjo opened this issue May 14, 2021 · 0 comments

Comments

@shashankjo
Copy link

shashankjo commented May 14, 2021

print("Starting search for Covid vaccine slots!")

The script does it's job but code is not maintainable. The script could be refactored to follow an OOP approach and could be written as a Class.

Benefits of structuring the script as a Class :

  1. Easier to write specs (unit test cases).
  2. Easier to publish the Class file as a library that could be directly imported into other projects.
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