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

Switch to camelized names for event keys #68

Open
pilwon opened this issue Jul 10, 2015 · 1 comment
Open

Switch to camelized names for event keys #68

pilwon opened this issue Jul 10, 2015 · 1 comment

Comments

@pilwon
Copy link
Contributor

pilwon commented Jul 10, 2015

BEST code can easily get messy with lots of quotation marks used for selectors, events, etc. It'd be fantastic to switch to camelized names for event keys as it will significantly reduce the amount of quotation marks needed in behaviors and events sections of code. Camel case is more consistent with idiomatic JavaScript as well.

The only places I see that absolutely need dasherized strings wrapped with quotation marks are selectors, and we cannot really do much about it. However the rest can be changed for better developer experience.

@matthewtoast
Copy link
Contributor

This seems sensible to me. I don't think there was a very strong reason to adopt the dasherized convention - other than aesthetics and readability. (I personally think foo-bar-baz is prettier and easier to read than fooBarBaz.) However I think developer convenience and convention should outweigh this, so it might be worth changing our recommended conventions. Tentative 👍

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

2 participants