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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code refactoring in preparation for moving client state to radar server. #128

Merged
merged 2 commits into from Mar 10, 2015

Conversation

bolddane
Copy link
Contributor

@bolddane bolddane commented Mar 9, 2015

  • don't use the naked _me reference
  • Identify APIs as public/private by
    • prefixing with _ (e.g. _handleClientMessage) where appropriate
    • regrouping of APIs in source files into public/private groups
  • rename APIs where needed (all private APIs)
  • expand comments minimally to clarify purpose of APIs

/cc @zendesk/zendesk-radar

Steps to merge

  • 馃憤 of the team

References

Risks

  • Low: Minor refactoring, and very little new code in this step.

  - don't use the naked _me reference
  - Identify APIs as public/private by
    - prefixing with _ (e.g. _handleClientMessage) where appropriate
    - regrouping of APIs in source files into public/private groups
  - rename APIs where needed (all private APIs)
  - expand comments minimally to clarify purpose of APIs
@@ -21,7 +23,7 @@ function Server() {
this.subs = {};
}

MiniEventEmitter.mixin(Server);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably better to leave it after Server definition

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It works fine either before or after, but I will standardize on putting it after the definition of the main class in the module, which in this case is Server.

@vanchi-zendesk
Copy link
Contributor

馃憤

bolddane added a commit that referenced this pull request Mar 10, 2015
Code refactoring in preparation for moving client state to radar server.
@bolddane bolddane merged commit b2b9f84 into master Mar 10, 2015
@junosuarez junosuarez deleted the pobrien/client_data_server_one branch November 21, 2015 10:41
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