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

Clean backends interface #434

Open
wants to merge 18 commits into
base: master
Choose a base branch
from

Conversation

allevo
Copy link

@allevo allevo commented Jul 17, 2014

Use inheritance to define an interface for backends

Remove global variables.
Remove all jshint warning where possible.
Add graphite utility.

@allevo allevo mentioned this pull request Jul 20, 2014
@allevo
Copy link
Author

allevo commented Jul 25, 2014

Are you interessed in this pull request?

@mrtazz
Copy link
Member

mrtazz commented Jul 26, 2014

I think removing global vars is definitely a good thing. I'm not sure I get the benefits of the inheritance approach. It seems to add some more boilerplate to creating a new backend. Can you elaborate a bit on the reasoning for this change?

@allevo
Copy link
Author

allevo commented Jul 26, 2014

In this way each backends describe which events are listened.
I've notice all backends have the same attributes like config, logger and startTime variable.
Conceptually all backends are interchangeable. So, the best way to explicit this is inheritance IHMO.
I can remove the inheritance is you disagree.

For the removing all grlobal variable, I'm preparing another pull request to clean stast.js file (https://github.com/allevo/statsd/commits/feature/refactorize-stast). ASAP I'll do pull request if you are interested...

@allevo
Copy link
Author

allevo commented Sep 16, 2014

which changes are you interested?

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.

None yet

2 participants