Archive for May, 2008

JavaScript Object Manipulation

Sunday, May 25th, 2008

JavaScript is a very dynamic language, so much so that you can redefine and change objects on the fly. This can be a strange concept to programmers from a more traditional OO background such as Java or C#, however once made familiar it can be very useful.
This feature is not restricted to modifying your own [...]

Lambda Functions - Does your language support it?

Sunday, May 18th, 2008

What are Lambda functions? Basically lambdas are functions that can be treated as anonymous or as objects. It depends on the language that is being used. They are very useful and at the core of the Functional Programming paradigm. So what languages can you create lambas in? Here is a few;
JavaScript

var foo = function(x, y){

  [...]

Galactocracy

Sunday, May 11th, 2008

It’s been a busy week so I don’t have much time to write. Therefore, I’m just going to do a quick plug of a Facebook application I made with some friends. Don’t worry – it’s not one of those applications that’s going to be annoying and force you do invite people or ask you silly [...]

Analysing PHP Objects and Classes

Monday, May 5th, 2008

Due to the dynamic nature of PHP as a programming language it can be quite difficult to determine what is happening. This is then even harder if you don’t have access to debugging tools such as those in Zend Studio.
How can you view an object?

header("Content-Type: text/plain");

error_reporting(E_ALL);

 

class Foo {

 

private $name = "Fred";

private $age = 30;

 

public function [...]