rang icon indicating copy to clipboard operation
rang copied to clipboard

Cleaner naming

Open thomasguillory opened this issue 10 years ago • 2 comments

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
  • ...

thomasguillory avatar May 19 '14 11:05 thomasguillory

+1

BernhardRode avatar May 28 '14 11:05 BernhardRode

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.

ranska avatar Jun 08 '14 21:06 ranska