[self-interest] Prototypes in Self And JavaScript

Russell Allen mail at russell-allen.com
Thu Jul 30 03:34:36 UTC 2009

Hi Chris,

Great to see you're interested in Self!  Can I suggest that you try out 
the newer 4.4 preview release - it should be faster and nicer looking on 
a Mac (and if you are on a Macbook you can scroll the world from the 
trackpad which is really helpful)

Chris Double's links are good to read, especially his first link to his 
blog post which sets out the different approaches of Javascript and Self.

(Also, if you want to see how Javascript could/should be used checkout 
Dan Ingall's Lively Kernel at http://livelykernel.sunlabs.com/ which has 
a version of the Self UI 'Morphic' in Javascript)


brassplume wrote:
> Hi All,
> I'm playing with the 4.3 Mac Demo.snap image. I'm looking at the 
> tutorial there. I've created lots of slots. I'm seeing how Morphic in 
> that tutorial is similar to the Morphic I've used (but not programmed) 
> in Squeak. It's all pretty cool.
> One of the things I want to get a grip on is prototypical inheritance as 
> it relates to Self and JavaScript. I understand one lead to the other. I 
> feel on safe ground saying that a lot of people like JavaScript, but 
> mainly use it like C. Or they replicate classical inheritance. Have you 
> seen a book of JavaScript design patterns? Don't bother.
> I'd really like to say to somebody: "You know, you JS programmer you. 
> Your conception of how to use JS sucks. The reason is you don't 
> understand prototypical inheritance. Here's what you need to know..."
> And then a light would go on over their head, and they'd use JS the way 
> it's meant to instead of the hack that it usually is.
> I'm going to read the Wiki page on Prototype-based programming, but 
> anything you could contribute would be great.
> Chris

More information about the Self-interest mailing list