[ Content | View menu ]

Archive for 'Smalltalk roots'

Scarily accurate quiz.

16 Jan 2007

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

The quiz

Via Dave Snowden

Smalltalk roots

Smalltalk cascades

11 Feb 2006

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’;
other.

I just got fed up having to redeclare the same object

thing.setOne("one");
thing.setTwo("two);

Smalltalk roots