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

Applied the singleton pattern to scrape_rss #193

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jnuguid1
Copy link

Applying the singleton pattern to scrape_rss is logical because there should be only one available instance of the rss scraper. Multiple scrape_rss instances does not make sense and could lead to unforeseen bugs in the code. I refactored rss_scraper by adding the get_instance method and turning the constructor into a 'virtual' private constructor to prevent other classes from making more than one instance of the class.

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

Successfully merging this pull request may close these issues.

1 participant