KBD

Keith Devens .com

Friday, May 16, 2008 Flag waving
A society that puts equality -- in the sense of equality of outcome -- ahead of freedom will end up with neither... – Milton Friedman (Thomas Sowell: A Conflict of Visions, p130)

Archive: June 09, 2002

← June 08, 2002June 10, 2002 →

Daily link icon Sunday, June 9, 2002

Licenses

Damn, I just realized I should really put a license on code I release. Anyone have any links to explanations of the pros and cons of different open source licenses?

Testing changes to my Blogger API

Testing... and again.

Zend 2.0 - Watch out!

Via PHPEverywhere, an initial release of the Zend Engine 2.0. For those who don't know, Zend is the engine which is the basis for PHP.

New stuff:

  • New Object Model
  • Private Members
  • Object Cloning
  • Forced deletion of objects
  • Nested classes (namespaces)
  • Classes may contain classes
  • Classes may contain constants
  • Current namespace's symbol tables are searched first for constants and functions
  • In the scope of a function, the current namespace is that of the containing class/namespace
  • It is possible to "import" symbols from one namespace into another
  • Unified Constructors
  • Destructors
  • Exceptions
  • Dereferencing objects returned from functions
  • Static member variables of static classes can now be initialized
  • Parameters that are passed by reference to a function may now have default values
  • Built-In Backtracing

I just copied the major bullet points from the changes file. I gotta read everything in detail and understand what exactly has changed. They have examples of some of the new code you can use. One of the nice things is that you can dereference an object returned from a function, as in this snippet, which you just couldn't do before:

<?php
 ShapeFactoryMethod
("Circle")->draw();
 
ShapeFactoryMethod("Square")->draw();

 
#and you can even do it multiple times
 
print $person->getName()->display();
?>

Other nice things, exceptions, namespaces (a class can act as a namespace (its own scope), so you have more flexibility with scoping than we did before. You can refer to variables in your namespace by typing self::$variable_name, and import names from one namespace to another. That's great! - much better way to package reusable code), you can do stuff like this:

<?php
 
#reference argument has a default value! 
 
function my_function(&$var null) {
?>

All good news. As you can see, most of the changes have to do with their object model, which was pretty much broken in all previous versions of PHP. I almost never used classes - now maybe I will, and exceptions, and namespaces, and on and on. PHP's almost all growed up <sniff>.

Crystal

Via my friend Justin: Finally, Arafat's intentions made clear.

Arafat warned that if Israel does not withdraw from Palestinian held territory immediately, "enabling our people to practice their legitimate rights of establishing the independent Palestinian state with Jerusalem as its capital, the whole region will witness a disastrous explosion that will impact not only the region but the stability of the whole world." [emphasis mine]

Discussion at LGF. Also see this little compilation of Arafat's bull at Yourish.com: "That's what happens when you issue empty platitudes and don't back them up with the barrel of a tank or three. The Sultan of Lies merely talks out of the other side of his mouth."

Oh yeah, almost forgot. This is the man who that Canadian we know thinks shouldn't be fought. He has a Nobel peace prize, after all.

Also, via LGF, check out this great short essay by Ariel Sharon.

Gay pedophiles

Don't freaking encourage deviant behavior by making priests be celibate. You wind up with weirdos in the church! Why don't they understand this? Grrrr....

XMLRPC

Just finished my XMLRPC library. Smiley Well, not necessarily "finished" - it's at version 1.0 though Smiley Just two minor known issues, and then it'll really be finished.

Never make a wish you don't really mean

If there's one thing Space Camp and Buffy have taught me, it's to never make a wish you don't really mean.

Space Camp:
The little kid makes a wish to be in space, and then Jinx the sentient robot decides to grant his wish and sends them into space where they almost die. Luckily, Lea Thompson is a master space-ship pilot and gets them home.

Buffy:
You never know when there's a vengeance demon around.

Cordelia makes a wish that Buffy never came to Sunnydale, which is granted (by a vengeance demon) and plunges the world into a bizarro-world alternate reality, much worse off than the normal bizarro reality - except that it has sexy vampire Willow. Luckily, Cordelia lives long enough to tell Giles the scoop, and he's "the man" enough to fix things.

Then Dawn wishes that everyone would "never leave" and everyone gets trapped in their house and almost gets killed by an evil warpy demon. Luckily, they trick the vengeance demon into getting trapped by her own spell, so she releases it.

And what have we learned? Ne-ver make a wish you don't actually want granted. There may be some superhuman force around just waiting to grant it.

The Template Toolkit

Check out Building and Managing Web Sites with the Template Toolkit.

← June 08, 2002June 10, 2002 →
May 2008
SunMonTueWedThuFriSat
 123
45678910
11121314151617
18192021222324
25262728293031



RSS feed RSS feed for Keith's Weblog
Atom feed Atom feed for Keith's Weblog
Weblog archive
Recent comments
  on 1 posts

Recent comments XML

"IMDB for music"

IMDB for Music? It looks to be a​couple of years old...​http://MusicTell.co...

Ken Empie: May 14, 9:57pm

Generated in about 0.052s.

(Used 7 db queries)