Saturday, July 2, 2011

Quotes that stayed with me as a developer


"Any fool can write code that a computer can understand. Good programmers write code that humans can understand" --Martin Fowler

"There is no silver bullet" -- Frederick Brooks


http://www.d80.co.uk/post/2011/04/26/9-Quotes-that-stayed-with-me-as-a-developer.aspx

Thursday, June 30, 2011

What is OR operator in jQuery selector, Multiple selector


Comma (,)
Put comma between difference selectors, you can get combine result. OR operator.

$("div,span,p.myClass").css("border","3px solid red");

In jQuery, call Multiple selector

Reference:
http://api.jquery.com/multiple-selector/

Wednesday, June 29, 2011

What is prototype Property in JavaScript

The prototype property allows you to add properties and methods to any object.
A prototype property is automatically created for every function, to allow for the possibility that the function will be used as a constructor
(Every function in Javascript is an instance of the Function object)
JavaScript prototype Property