March 2012
3 posts
4 tags
140 bytes Finite State Machine in JavaScript
There’s one thing I dislike in JavaScript, it’s the if/else structure.
I’m not saying that I don’t use it, it’s nice to use it to check a value’s type or truthiness, for error proofing or input checking. But when it’s being used for deciding wether or not to execute an action, then I sense that it could be replaced by a nice behavioral design pattern.
...
5 tags
Setting up a test environment featuring Jasmine...
Testing is an important part of a project. While developing Emily I had to set up an environment that would automate testing for several cases.
As I followed a full TDD process for developing Emily, I needed a way to get instant tests results. But Emily is designed to be executed in a browser, as well as in a node.js environment, and I wanted to pass the same tests for both.
So I started to look...
Welcome to my tech blog!
I’m creating it today to share tech stuff and thoughts about my current projects.
I’m preparing writings about my frameworks for developing rich applications and stuff that bothered me when developing them. I’ll also say a few things about hunting down memory leaks and improving UI performances. Last but not least, I may speak a bit about myself.
I...