Posted on October 26, 2007 by Bryan
This morning I was driving to work when I spotted an Orange Chevrolet Cobalt from California with a tall contraption on the roof. At the top was a camera with multiple lenses that covered a 360° area. By the base looked like a GPS receiver. I pulled up to the side of it and saw [...]
Filed under: Internet, Technology | Tagged: camera, chevrolet, cobalt, driving, Google, google maps, gps, las vegas, maps, orange, street view, Technology | 1 Comment »
Posted on October 1, 2007 by Joey
It is very common in the programming world for the terms argument and parameter to be used to convey the same meaning. Technically, however, there is a distinct difference between the two.
When a function is defined, the expected variables are listed in parentheses. These are parameters.
For example:
function GetSquarePerimeter(sideLength)
{
return 4*sideLength;
}
In the preceding example, sideLength is a [...]
Filed under: JavaScript, Programming, Software | Tagged: arguments, parameters | Leave a Comment »
Posted on October 1, 2007 by Joey
The ‘this’ keyword is indispensable in JavaScript object-oriented programming. When used in a JavaScript constructor function, ‘this’ refers to the object. Through the ‘this’ keyword, properties and methods can be assigned object, also known as a class. For example:
function Square(intSideLength)
{
this.sideLength = intSideLength;
}
In the preceding example the ‘this’ keyword is used to assign the variable ’sideLength’ [...]
Filed under: Programming, Software | Leave a Comment »