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

Cleaner naming #12

Open
thomasguillory opened this issue May 19, 2014 · 2 comments
Open

Cleaner naming #12

thomasguillory opened this issue May 19, 2014 · 2 comments

Comments

@thomasguillory
Copy link

I'm not fond of the shorten names (RangDrt, ScopeCtrl, ...)

What do you think about something like Backbone.js :

  • Rang.Controller
  • Rang.ScopedController
  • Rang.Directive
  • ...
@BernhardRode
Copy link

+1

@ranska
Copy link
Owner

ranska commented Jun 8, 2014

Well
i just use Ctrl because on the angular js main page and many blog people write

'PostCtrl'

First because i was comming from the rails world it was surprising me,
but now is ok.
So I use

@Ctrl
@DrtCtrl
@Srv

To be consistent

But you're right plain word are nice.

look at
https://github.com/ranska/rang/blob/directive_controller/rang.js.coffee
RangBase use a switch pattern
so why not use both
a short form and a formal form ?
Feel free to push me your first pull request i would be very happy to accept it :) (o)/

For
Backbone style
look at
https://github.com/ranska/rang/blob/aether_auto_register/rang.js.coffee
and look at my aether repository.
there is maybe something to do with it.

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