Wednesday, February 13, 2013

Learning from jQuery


If you’re comfortable with jQuery but a bit shaky with JavaScript, this concise guide will help you expand your knowledge of the language—especially the code that jQuery covers up for you. Many jQuery devotees write as little code as possible, but with some JavaScript under your belt, you can prevent errors, reduce overhead, and make your application code more efficient.
This book explores event handling, prototypes, and working with the DOM and AJAX through examples and lots of code. You’ll learn common conventions and patterns in JavaScript and—if you’ve never coded with JavaScript before—a tutorial will take you through the basics.
  • Enhance your jQuery code by using object constructors and prototypes
  • Reduce overhead and gain more control by handling events with JavaScript
  • Work with the DOM much faster with JavaScript than you can with jQuery
  • Send a few AJAX requests without having to load the entire jQuery library
  • Understand the importance of JavaScript code standards, comments, code reuse, and anti-patterns
  • Enlist JavaScript resources, such as a good IDE, a syntax checker, and version control

Monday, February 11, 2013

FREE eBook: The Second Internet

The Second Internet
The eBook The Second Internet: Reinventing Computer Networks with IPv6, by Lawrence E. Hughes, is available for free in PDF format.

Download here: http://www.secondinternet.org/

Wednesday, February 6, 2013

jQuery 1.9.1 Released

The jQuery team is pleased to announced that jQuery 1.9.1 is available! This release addresses the bugs and regressions that have been reported during the past few weeks. Whether you’re using 1.9.0 or using an older version, these are the droids you’re looking for.

Source: jQuery Blog - jQuery 1.9.1 Released

Setter and Getter for private property, in dart.

To define private member in dart, prefix the name with underscore(_) character. This example demonstrate how to implement setter and getter for private member.

class Visitor{
  var _name;   //private property
  
  set name(value) => _name = value; //setter for private property
  get name => _name;                //getter for private property
}
void main() {
  var visitor = new Visitor();
  visitor.name = "Erik";
  print ("Hello, ${visitor.name}");
}


Setter and Getter for private property
Setter and Getter for private property

"Hello World" to dart, with public property

In this example, the variable name is a public property of class Visitor. It can be access from outside directly.

class Visitor{
  var name;   //public property
}
void main() {
  var visitor = new Visitor();
  visitor.name = "Erik";
  print ("Hello, ${visitor.name}");
}


class with public property
class with public property

"Hello World" to dart

"Hello World" to dart
"Hello World" to dart

Friday, February 1, 2013