Skip to content
This repository has been archived by the owner on Nov 23, 2021. It is now read-only.

ideas of further coding conventions #95

Open
maybeec opened this issue Mar 30, 2016 · 1 comment
Open

ideas of further coding conventions #95

maybeec opened this issue Mar 30, 2016 · 1 comment

Comments

@maybeec
Copy link
Member

maybeec commented Mar 30, 2016

This ticket can be seen as experience report and collection under construction, where anybody can introduce and discuss coding conventions.

  • never change prototypes after instantiating it or inheriting from it! -> very slow due to runtime implementations
  • use parseInt and parseFloat to fix the number radix rather than use implicit type coercion
  • use === over ==, document == uses!
  • No expressions without a dot! (especially for templates & scope access)
@maybeec
Copy link
Member Author

maybeec commented Apr 1, 2016

I would like to evaluate the angular1/2 style guides by johnpapa. We then should reference this style guide and my make changes based on that.

As an example for change: do not specify a service api by a return object containing function references on top of the service. This confuses newbees and makes code look odd, especially if the service implements further service global variables.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant