-
Notifications
You must be signed in to change notification settings - Fork 23
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 component vs data #18
Comments
Can you add a bit more context? This can be vastly different depending on the framework or state library that is used. |
This is very much depended on the project, the domain model, the external API's and frameworks and/or libraries that are used. But in general: You should avoid names with only a single word, like
But I don't think we should put this into rules, because this is very much dependent on the context. Depending on the framework or library there are also terms like, I think it's more important to be consistent within a project. So a |
I think we should revisit this issue, in particular these 2 topics in relation to variable naming:
|
https://github.com/mediamonks/frontend-coding-standards/tree/feature/readme#naming
Maybe add a section on how to name data vs the visual component that represents it?
The text was updated successfully, but these errors were encountered: