Having worked on and with AngularJS for short period thou , here are some of the time-saving tips at the top of my mind , Just go ahead and comment out if you find it wrong or if you have any : At a high / architecture level: 1) Write your tests ! - Stop, right now.I mean it !!!. ;) Don't Ever go by this Saying !!! You can never be 100% right Always write your unit tests. In Javascript, you don't have the compiler to hand hold you and tell you did something wrong. And you will want to pull your hair out the next time your app is broken because of a missing letter.And the larger your application gets, having the comfort of making large scale changes and refactorings without worrying about broken functionality is amazing! And writing your unit tests is the only way to get there! 2) Don't put too many things on the scope . The scope is expensive, as it is the one that undergoes dirty checks. Just put exactly what will be di...
Comments
Post a Comment