Skip to content
This repository has been archived by the owner on Feb 5, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants