Before I left my previous company, I decided to introduce the mediator pattern in order to encapsulate the communication between our data models and the WebSocket. Although the implementation was a bit simple, I think it has a lot of power and future possibilities, making the code cleaner and unit testing live updates easier. Continue reading
Tag Archives: programming
Mocking Services for AngularJS tests
One of the things that I’ve enjoyed more in the last year is Test Driven Development, with the satisfaction of seeing the green after all tests have passed. AngularJS is written with testability in mind which makes testing applications easy. And although it can be hard to grasp at the beginning, there are a lot of good resources around to learn how to unit test the application logic. Continue reading
AngularJS Capitalize Filter
Over a month ago I was messing around with CSS when I realized the text-transform property with the capitalize keyword works just with lowercase text, as it forces the first letter of each word to be converted to uppercase keeping the rest of the characters unchanged. Continue reading
Holiday alert module for PrestaShop
Last year I got a client that needed me to help them with the technical part of the e-commerce PrestaShop. Although I didn’t use PHP for over a year I accepted the challenge and for Christmas they wanted to show an alert to their clients because the orders wouldn’t be processed till January. Continue reading
Using Grunt to run Mocha tests with Backbone.js and RequireJS
I don’t have all the time that I would like for writing here but before the end of the year it’s time for a new blog post.
This year has been really prolific for me learning new things with JavaScript and in the last months I have adopted the Yeoman workflow, which really helps to develop web applications. Continue reading