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

Naming Coventions #176

Open
magicdawn opened this issue May 14, 2024 · 1 comment
Open

Naming Coventions #176

magicdawn opened this issue May 14, 2024 · 1 comment

Comments

@magicdawn
Copy link
Owner

No description provided.

@magicdawn
Copy link
Owner Author

一些文章

google js style guide 有一章讲 naming coventions
https://google.github.io/styleguide/jsguide.html#naming

一些争议

  • 一些建议对于 boolean, 应该 prefix with is / has, 但 isUserActive 像是在 invoke 一个方法. google style guide 是方法使用 is / has.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant