DAVE'S LIFE ON HOLD

Phos update

I've pushed a bit of a small update for Phos. It has a new addition that is inspired by the Smalltalk port. So in addition to being able to say:


a(Circle).at(100,100).radius(40)

You can now just a easily say

A.circle().at(100,100).radius(40)


The addition of the A and An generator objects aren't actually an advantage over the old syntax, as they actually require an additional character, but do at least it now is capitalized like an English sentence would be. The other nice feature is you can inspect the A object and see all of the things you can instantiate.

Adhoc JS



Some of the new features that will appear in the next generation of this JS library, which will be broken out for general use with other web frameworks, include:

Object Names


A.circle().named('Bob')


This will allow you to directly name your objects using a function call during, rather than having to assign it to a variable.

Ad Hoc Object Methods


A.circle().has('greets').of( function (x)  alert('Hi '.append(x,'! My name is ', this.name() ).


This will allow for the creation of object specific behavior without creating a generalized prototype.

Ad Hoc Object Cloning


An.object().from(Bob)


This will allow you to copy all or part of the properties of an object, making for easy ad hoc multiple inheritance.