-
Notifications
You must be signed in to change notification settings - Fork 290
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
Survey about naming conventions - please participate! #35
Comments
As for modules, I agree Also I agree Which leaves providers, is there a reason these don't start with |
Modules Providers Python classes |
I tend to agree with what others have written that using |
I've got a slight preference for djng - but probably not enough angular experience to know if it's right thing to do. |
I agree with @jrief. Consistency is important, and mixins should not be preffixed |
I agree with @merll on all points, including the use of I would also prefer changing the Python module to match the package name: |
I agree on all of these, they all sound very sensible. On Thursday, June 19, 2014 4:20 PM, Espen Angell Kristiansen notifications@github.com wrote:
|
OK, great! |
Hi! |
Changing from version 0.7.x to 0.8 should just refactor the names. In Python it might be, that I keep the old name pointing onto the new one and adding a deprecation warning. JavaScript unfortunately doesn't offer such a feature. |
FWIW djng and django_angular (what espenak said) sound good. |
Anything but djangular... |
vote up for django_angular |
I don't like to repeat the lemma "django" as part of a library name, because its too redundant. My preference for now is @AncientSwordRage I agree, using Other proposal: What do you think about moving members from Form mixins, such as |
IME the bad thing is when the importable name is much too generic, i.e. a django-comments PyPI package that installs a Python package named FTR naming extensions “pyramid_thing” is also a standard habit in the Pyramid community (which comes from the Zope community, where best practices for packaging have a long tradition). |
Please vote here: |
@AncientSwordRage thanks for setting up the ballot. |
Vote is closed. Name has been chosen and must change when releasing version 0.8 right @jrief ? Closing this |
Yes, it will be changed for 0.8. Then in JS and Python we will use |
yep ! 👍 |
As a newer for Angular, I want to know why the "app.js" does not show in the Demo? What should I do for Angular file struct with django architecture? Thanks for your patience in advance |
Please open a new issue for that. It is not related to the original post... Have a look at
We define here the module 'djangular-demo'. It's the base of our angular app as you could find in any app.js file in some demo angularjs apps. Then for each different example, we add more specific code :
Maybe try stackoverflow first if the question is more related to angularjs than directly this library. Thanks. |
In 0.8.0 |
I noticed, that the current naming conventions are not very consistent.
Django-Angular's Javascript code, Directives start with
djng-...
, which is in my opinion is a good choice.Django-Angular modules start with
ng.django.
... , which is distracting. In my opinion, a better prefix would be to also usedjng.
...Django-Angular Providers start with
django
, for instancedjangoForm
,djangoRMI
anddjangoWebsocket
. This in my opinion is somehow acceptable, since they already are part of a Django-Angular namespace.In Django-Angular's Python code, Mixins are Prefixed with
Ng...
. For consistency, shouldn't they rather be renamed to sayDjNg...
ordjng
?Please participate and point my on conventions used in similar third party modules.
The text was updated successfully, but these errors were encountered: