Increase the verification done in the code.
private to be sure your code is used from where it is
Strong Typing to know when people are sending you garbage. All that lead to faster bug fixes. so better code.
Thus you measure more accuratly what your code is actually doing. Monitor Garbage Collection. Monitor Global Variables. Monitor all you can. Good measures leads to better decision on which action to take.
With Better.js, it is possible to pass attributes to class. You can define which functions is private or not, same for properties. You can apply strong typing to arguments and better.js check the validity of each arguments passed to your constructor. You can apply strong typing to properties the same way.
With Better.js, you can define the strong typing for your arguments and better.js check the validity of each arguments passed to your function. It is the same for strong typing for the returned value. If this function is part of a class, you can declare it as private thus only this class will be able to use it.
With better.js you can have strong typing for your properties. So you define the type allowed for your property, and better.js check it everytime the value is modified. If this property is part of a class, you can declare it as private thus only this class will be able to use it.
npm install better.js
bower install better.js