Login  Register

Re: Clickable class side example and initialize methods in Pharo 4.0

Posted by Sean P. DeNigris on Oct 23, 2014; 6:46pm
URL: https://forum.world.st/Clickable-class-side-example-and-initialize-methods-in-Pharo-4-0-tp4785865p4786275.html

I guess so, although I am not really sure what I am looking at - but it seems very cool.
kilon.alios wrote
What the hell is that, looks very interesting !!!!
Ha ha, yeah I guess a bit of context would help ;)

It's a prototype I've been working on that combines some of (IMHO) the best IDE ideas of various systems. That particular one shows Self Outliners (the Morphs on the left of the connector). By pressing $M when an outliner has the focus, you get a "Message Menu" of Scratch-like interactive tiles for all the messages it understands. You can click on the unary messages or type expressions for the ones taking arguments (actually just realized that the binary ones don't work so just keyword messages right now). When the message is sent, a new Self Outliner open(s)InHand on the result.

It's a WIP, but if you want to play, start with:

1.
Gofer it
        smalltalkhubUser: 'SeanDeNigris' project: 'SeansPlayground';
        configurationOf: 'LivingCode';
        load. "Strangely I can not #loadDevelopment here because the ScrollableWorldMorph package doesn't get loaded, even though it does with the next line"
#ConfigurationOfLivingCode asClass project development load.
#SelfWorld asClass open.

2. Then in the search bar, type an evaluatable expression, e.g. "1" and accept
3. Drop the Outliner from the hand into the Self World
4. For fun, click the world background and drag. OMG, you have an infinite world
5. Click on the M button in the outliner and the message menu will appear (erroneously in the World instead of the Self World).
6. Expand e.g. the "bit manipulation" protocol (assuming you started with "1" as above)
7. Click into the text field to the right of bitAnd: and accept the text
A new Outliner of the result will appear in the hand

Other buttons on the Outliner:
B - open a nautilus on the class of the object
I - traditional inspector
S - open the test class if it exists (I call them Specification(s) in my personal work)
E - Evaluator (very close to Self)

Also, if you click on the icons to the right of "class" and "package" Outliner(s) will appear on those objects.

That's pretty much it for now.
Cheers,
Sean