Stephen Freeman Rotating Header Image

Smalltalk roots

Scarily accurate quiz.

BBSpot has a quiz to decide “Which Programming Lanuguage Are You?” Look what I got:

You are Smalltalk. You like to treat everyone the same way, but this lack of individuality makes everyone feel like objects.

The quiz

Via Dave Snowden

Smalltalk cascades

Jay Fields writes about “using chaining for object initialisation”:

One of the inspirations for the “fluent interface”: style in jMock was a Smalltalk construct called _cascade_, which sends multiple message to the same object.

aThing one: 'one';
  two: 'two';

I just got fed up having to redeclare the same object