Showing posts with label Dolphin Smalltalk. Show all posts
Showing posts with label Dolphin Smalltalk. Show all posts

Thursday, June 9, 2011

Squeak MVC

At squeak.org the blurb for 4.2 says
  and legacy MVC support
but the first test that I make gives a ScheduledControllers that is nil.
Both BitEditor and FormEditor appear unusable.
I looked in Monticello and the Universe browser but I see no relevant package to retrieve.
The package ToolBuilder-MVC retains this gem:
isActiveBuilder
"Answer whether I am the currently active builder"
"This is really a way of answering whether 'Smalltalk isMVC'"
ScheduledControllers ifNil:[^false].
So something is amiss.  I am looking for a dependency framework - events, or Announcements or whatever in this image.

In Kernel-Objects package the Object class has a class variable DependentsFields.

In Kernel-Model package Model has an instance var named dependents.

But I see no tests for MVC.

There had been a Tweak package and a code.google.com project to revive MVC in Squeak.  Perhaps more interesting is Announcements in Pharo and the coming changes to Model-View-Presenter in Dolphin Smalltalk.

Abstractions are needed.  MVC could be complex and Morphic seems best for direct manipulation rather than for traditional GUI applications.  I like the admissions made at Dolphin for their candor - and I like working in Dolphin when all that I need is a Windows app or tool over at http://apps.logiquewerks.com/ST

note:  the method >>isMVC  is not available.

BUT.  There is an answer.  You need to start a new project which is an MVC project.

And now you are in as old a Smalltalk as you can imagine: an ST-80.  Oh vey.  This is not offering an MVC option.  This is a collapsible Model-A in the cargo space of your auto-plane.

This is not Smalltalk the programming environment, but Smalltalk the split-environment for a house divided among partisans, some laboring under a tax of 90%, some under a flat-10%.

Tuesday, May 25, 2010

Squeak Smalltalk 4.1


Could this be a Squeak right out of the box?

That is a menu bar with Projects, Tools, Extras, Windows, Help and a Search entry field. And where are the Fi$her-Price colours? (They are an option now.)

This is the influence of Gilad Bracha's Newspeak.  The release comes not long after Pharo Smalltalk went 1.0 (although I don't know the politics.)

The good news for Squeak and Smalltalk is that 4.1 has so many important changes which are not cosmetic. These include updated closures, even greater modularity (unload, reload), a new implementation of Traits from the folks who gave us traits. And a great many changes in the class hierarchy.  All of these listed when you click the green or the orange buttons on that "Welcome to Squeak 4.1" pane.

If you have wanted to learn Smalltalk, there are even more resources online now, including Pharo By Example. The first thing to know in Squeak or Pharo is to left or right click in that workarea background (the brushed aluminum-looking main window area.)

There will be other Smalltalk news coming when Vision Smalltalk appears (also known as DNG or Dolphin Next-Generation Smalltalk.)

It remains an oddity to me that Smalltalkers are still using Adobe PDF for their e-books .... see FotB.