Tomas Herich's Posts

Proper unit-testing of Angular JS 1.X applications with (ES6) modules

October 11, 2015

Testing of Angular JS application used to be quite painful especially when using "official" solutions like Karma or Protractor. ES6 (aka ES2015, aka new Javascript release) changed this by introducing standardized module syntax. This enables us to do real unit testing of Angular JS constructs like controllers, factories or services in a very simple and fast fashion.

Read more

Component pattern for Angular 1.3

May 28, 2015

This is a re-post from my personal blog. It was a lazy evening, I was watching some video from ng-conf when suddenly Miško Hevery dropped one line which captured my attention and pushed my understanding of what the future holds for us. Despite all the hate and anger, Angular 2.0 is here to stay. Well at least for some time… If you want your code to be worthy of fabled Angular 2.0 you have to use the best available ingredients. You will need ES6 and most probably also the newest incarnation of TypeScript too… Actually need is maybe a bit too strong word for the occasion because Angular 2.0 can…

Read more

Introduction to React and Flux

January 27, 2015

Single page applications (SPA) have became the standard for building of modern web applications. The main reason for this is the smooth user experience, which is achieved by employing Javascript frameworks and libraries when communicating with the backend server. Frameworks and libraries such as Angular, Ember, jQuery, Durandal, Backbone, React, Meteor, Grunt, Bower, NPM, Gulp, Broccoli, Karma, Jasmine, Mocha … WAIT WHAT? There are too many technologies to navigate effectively and frameworks are becoming obsolete even before becoming the standard (I am looking at you Angular 1.3, hmm 1.4 but…

Read more