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

Specify some naming conventions #14

Open
loganwright opened this issue Feb 4, 2016 · 0 comments
Open

Specify some naming conventions #14

loganwright opened this issue Feb 4, 2016 · 0 comments

Comments

@loganwright
Copy link

The ones I'd like to agree upon (whether or not we use these exactly, I think there should be parity). The reasoning behind this is that it makes it easy to search the project for the corresponding action

Button Presses

<#name-of-button#>Pressed:

ie:

closeButtonPressed

not

close

Gestures

handle<#gesture-type#>

ie:

handleTap

not

showImage

If multiple gestures of same type are used in parallel, should be:

handle<#identifier#><#type#>

ie:

handleImagePan
handleTrayPan
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