-
Notifications
You must be signed in to change notification settings - Fork 52
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 convention #32
Comments
i'am for camelCase so |
camelCase should be the convention for most of the code but publication might use sth like: posts.list.author |
why publication should be an exception? |
I think camelCase is a good idea. May be we can write it down on the spec too. |
Agreed with camel case for this, it's basically the accepted standard for JS naming. |
camelCase like |
There is a part written about naming convention for publications:
Looking at the
sample-blog-app
, I can find the publications:posts.list
,posts.single
andposts.comments
. All pretty obvious. But what will the naming convention be for more specific actions. Like publish all posts for one author?posts.by-author
posts.list-by-author
posts.list_by_author
posts.listByAuthor
posts.forAuthor
posts.list.author
Is there a suggestion for this edge-case? I think my favorite would be
posts.list-by-author
. (Only not sure if we should dolist-by-author
orlist-for-author
. But that's more a grammar thing).The text was updated successfully, but these errors were encountered: