Computers

class HelloWorld  {
	private $_sText;
	
	public function __construct()  {
		$this->_sText = 'Hello World!';
	}	
	public function sayHello()  {
		print_r($this->_sText);
	}
}
$hello = new HelloWorld();
$hello->sayHello();

$user = new User();
if($user->interests() == 'Computers')  {
	print_r('Awesome!');
} else  {
	print_r('Awww... ={');
}

Newest Offering

Tuesday, February 9, 2010 - 21:25

This is amazing stuff. These guys hacked into a building's light controls and turned the side of an office building into a game of Space Invaders. This awesomely funny.

Watching this video got me thinking: how would you go about designing and testing something like this prior to actually doing it?

I think I would probably write a super-simple version of the game and test it with a light-board and a couple controllers before trying it on a building. But it couldn't be that much different. How would you do it?

Random Post

Friday, June 19, 2009 - 00:06

Download the source for the Navigation Menu.

Goal: This easy project will combine powerful tools with some simple components to produce a flexible navigation menu capable of displaying horizontally or vertically with never-ending submenus.

Tools & Materials:

Before Beginning: Take a look at the posts on the Iterator and Composite patterns to become familiar with them. Be sure to download the code for...