I'm Vu Hai Do, a senior full-stack .NET, NodeJS web developer who has a strong focus on performance and scalability. more →

Daily Reading Friday, June 14 2013

Devtoolsecrets

A collection of tips & tricks about web debugging

Debug frame rate for better performance

Atoic Web Design

Atomic is an approach in web design, it divides into five distinct levels: atom, molecule, organism, template, page. It's not new, but it defines a clear way of thinking that supports team members, client for better communication, easily traverse from abstract to concrete

read more

Posted in  dailyreading

14 Jun 2013


Jasmine Setup

The first time using Jasmine. This is step by step example:

function helloWorld() {
    return "Hello World!";
}
  • Add test files to /spec: HelloWorldSpec.js
describe("Hello world", function() {
    it("says hello", function() {
        expect(helloWorld()).toEqual("Hello world!");
    });
});
  • Edit file SpecRunner.html: include source and spec files in include source files here and include spec files here
  • Run the SpecRunner.html

Visit Jasmine home for more assert statements.

References:

Posted in  testing

29 May 2013


Python Package Installation

This is a short note how to install package from PyPi

read more

Posted in  guide

17 May 2013


Recent Posts