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 - Expectation Clashes #6

Closed
SuperWomble opened this issue Feb 14, 2017 · 2 comments
Closed

Naming - Expectation Clashes #6

SuperWomble opened this issue Feb 14, 2017 · 2 comments

Comments

@SuperWomble
Copy link

This looks like a very useful project!

However, the naming of some of the methods -- particularly those normally relating to dimensions -- will cause some confusion

For this reason, I suggest renaming to something like:

view.heightConstraint
view.widthConstraint 
view.sizeConstraint
view.centerConstraint
etc.

or

view.constrainWidth
view.constraintHeight
view.constrainSize
view.constrainCenter
etc.

The slight increase in verbosity would do a lot to help understanding and recall, without going all over-verbose overkill like the current Auto Layout API.

Cheers. And thank you for your contribution.

@roberthein
Copy link
Owner

I considered something like this when I wrote these functions and came to conclusion that I like the shorter version more. Maybe I change my mind later ;)

@muescha
Copy link

muescha commented Feb 19, 2017

other suggestion:

view.constraint.width
view.constraint.height
view.constraint.size
view.constraint.center
etc.

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

3 participants