9781449398583
glossary.html

Glossary

A glossary contains a collection of terms and brief descriptions or definitions of those terms. The basic markup follows.

Pseudo-class

A Psuedo-class is a way of creating an abtract object in JavaScript that is intended to be initialised into an object. Pseudo-classes should be turned into objects using the new keyword. Psuedo-class names start with a leading capital by convention to differentiate them from other kinds of objects. For example Server would be a psuedo-class and server might be an instance of that pseudo-class.

Class

See Pseudo-class.

Method

A function which is a property of an object

Function

A unit of code that can be invoked with a set of variable parameters. It may pass a single return In JavaScript functions also have a context which defines the value of the reserved this variable. Functions in JavaScript are considered first class in that they can also be treated as variables or properties of objects.

Callback

A callback is a function that is "called back" to after a blocking operation. Typically this is an I/O operation such as disk access. Callbacks can take parameters.

Blocking Operation

A blocking operation is one that requires the program to halt while it is waiting for a slow resource. Typically this is either a hardware resource, such as a disk drive or a network resource such as an HTTP request. Since the request cannot requires a result from a slow resource it blocks subsequent operation until it is complete even if the computer or program still has available resources such as CPU or memory available.

Non-Blocking Operation

A non-blocking operation is one that does not block

Site last updated on: February 29, 2012 at 06:00:28 PM PST