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

feat(client): Remove use of singleton pattern #109

Merged
merged 1 commit into from
May 13, 2019
Merged

Conversation

orangejulius
Copy link
Member

The singleton pattern has fallen out of favor lately, as it reduces the flexibility of a module, and sometimes makes it harder to unit test.

More details on the singleton pattern: https://stackoverflow.com/questions/12755539/why-is-singleton-considered-an-anti-pattern

This change removes dbclient's use of the singleton pattern, which should help folk who are using the module in ways we didn't anticipate.

Fixes #77

The singleton pattern has fallen out of favor lately, as it reduces the
flexibility of a module, and sometimes makes it harder to unit test.

More details on the singleton pattern: https://stackoverflow.com/questions/12755539/why-is-singleton-considered-an-anti-pattern

This change removes dbclient's use of the singleton pattern, which
should help folk who are using the module in ways we didn't anticipate.

Fixes #77
@orangejulius orangejulius merged commit 6a58018 into master May 13, 2019
@orangejulius orangejulius deleted the remove-singleton branch May 13, 2019 17:31
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.

Getting configuration error when importing data through a parent module
1 participant