Sunday, June 28, 2015

Karma-Jasmine | Protractor for AngularJS

Lately, I have been working on setting up the testing framework and writing test cases for angular apps. I am using Karma-Jasmine framework for unit testing. And for end-to-end testing, am using another testing framework called Protractor.

I like to follow best practices while using any technology. It will feel hard initially but, you will find the its usefulness as you come across complex scenarios. Till now writing test cases for an Angular Apps has been smooth ride. Thanks to some good articles online to get me going.

I have found some very helpful resources, which talks about unit testing and end-to-end testing which, I would like to share with other peps... Enjoy..


Friday, June 5, 2015

Learn ECMAScript 2015

ECMAScript 6 is the upcoming version of the ECMAScript standard. This standard is targeting ratification in June 2015. ES2015 is a significant update to the language, and the first update to the language since ES5 was standardized in 2009. Implementation of these features in major JavaScript engines is underway now.

Click here to read more about ..ECMAScript 6 Features


Eliminate Javascript code smells

This slide will review various common smelly snippets of code and discuss techniques on how we can eliminate and protect against their pungent odors.JavaScript Code Smells


Tuesday, June 2, 2015

AngularJS’ Internals

I came across an interesting article on AngularJS internals authored by Nicolas Bevacqua. This article gives a very clear understanding of the entire idea of scoping!

AngularJS presents a remarkable number of interesting design choices in its code base. Two particularly interesting cases are the way in which scopes work and how directives behave.

AngularJS' Internals In Depth

The first thing anyone is taught when approaching AngularJS for the first time is that directives are meant to interact with the DOM, or whatever manipulates the DOM for you, such as jQuery (get over jQuery already!). What immediately becomes (and remains) confusing for most, though, is the interaction between scopes, directives and controllers. Read more...