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

Don't be afraid to use variables to break up long lines of code #13

Open
nickdesaulniers opened this issue Mar 22, 2013 · 0 comments
Open

Comments

@nickdesaulniers
Copy link

Memory is cheap, maintaining code is not:
Instead of passing an object literal in a nice one liner, the code is more readable if you declare the object on the previous line.

var postUrl = buildOauthURL(REQUEST_TOKEN_URL, 'POST', {oauth_callback : NOTES_APP_CALLBACK_URL, oauth_signature_method : OAUTH_SIGNATURE_METHOD});

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