.comment-link {margin-left:.6em;}
Books & Articles I wrote.

Friday, February 24, 2006

 

bit o' friday fun

It's Friday and i was just reminded of a Billy Connolly line, that i think is a cracker - it's a Glasgwegian way of saying that someone has been beat up, or lost a fight...

"He looks like he wiz talkin' when he should've been listening".

Excellent :) Anyone got any others?

Also, this is just excellent - an old April Fools joke from Steve Mann :

"Scientists who have been debating for some time as to
whether light is a particle or a wave, have suddenly realized that the issue is
a moot point because light does not, in fact, exist at all.

Light does not exist, apart from darkness; light is merely the absence of darkness.

... "


http://wearcam.org/theory_of_darkness.html

 read 0 comments | 
 

Scott Rafer on AI

I listed to an archived discussion with Scott Rafer on how collaborative tools are in the short to medium term more powerful than anything coming out of AI. He has some great points which i agree with 100%.

He talks about delicious, which i like, but i still see it more an a service to be mashed with other services than anything stand alone. I just don't see much value in visiting the site. But i DO see a lot of value as delious being a base of other services. It's much like taghop, but i added communities as a subtle hits to start thinking together - to give some context to the items that are created, rather than just tags, which is fairly one dimensional.

Still, as much as these mashups are fun, they are really going to have to be streamlined and grouped in order to sell themselves are any kind of service (or rely on advertising i guess).

 read 0 comments | 
 

Setting Properties Properly

Always set publically accessible (and protected and many private) values through properties. Never do it directly. Even is there is no logic at the moment, there may be in the future and setting them directly (say through private properties) will prevent using this logic in the future.

If you need to set a public property as readonly, but still set it in a non-public manner, then you can just a get only on the property.

Rather than setting the global variable the prooerty refers to directly, use a protected or private SetProperty() method which can contain any required logic.

So, say i have the property EmployeeID:

int _employeeID;

public EmployeeID
{
get
{
return _employeeID;
}
}

In the code this should be set as follows:

protected SetEmployeeID(int employeeID)
{
_employeeID = employeeID;
}

 read 0 comments | 

This page is powered by Blogger. Isn't yours?

Weblog Commenting and Trackback by HaloScan.com