Building Blocks

Building Software Better

Archive for August, 1997

Why dynamic-typing? (3)

Posted by Mark on August 27, 1997

Java Collection

Joern Janneck wrote:
> Mark Fussell wrote:
> > If you need a specific example, consider the [completely randomly
> > selected] JDK 1.2 Collection code of:
> >     public boolean AbstractCollection::removeAll(Collection c) {
[snip]
> >
> > The static-typing problem in this extremely simple code is that 'c' only
> > needs to respond to 'contains', not be a Collection.  This means I can't
> > just use any containment concept I want to (say, remove all people who
> > are 6' tall)
>
> ... which is something that could be defined as a collection, couldn't
> it? at least in a good design, it should be able to.

I don’t think you really mean that. Of the 13 operations for a Collection:

Posted in Dynamic, Java, Smalltalk | Leave a Comment »

Why dynamic-typing? (2)

Posted by Mark on August 27, 1997

Follow on topic “… actually, you could have both, couldn’t you? …”

Posted in Dynamic, Java, Smalltalk | Tagged: | Leave a Comment »

Why dynamic typing?

Posted by Mark on August 27, 1997

Why use dynamic typing for programming languages like Smalltalk, Ruby, etc. and what are the effects of that dynamic typing on application stability. Back in the mid 90s, the emergence of Java ‘opened’ the topic because Java was clearly more dynamic in typing than C++ [primarily through the ‘interface’ mechanism] but not nearly as dynamic as Smalltalk [which was a very active language in some circles at the time]. Now that Ruby has become mainstream as a kind of rebirth of Smalltalk into an updated world, this topic may be interesting again.

Posted in Dynamic, Java, Ruby, Smalltalk | Tagged: | Leave a Comment »

SmallJava-97, The Language

Posted by Mark on August 27, 1997

This document is comparing Smalltalk and Java through an intermediary language, SmallJava. SmallJava will start as the common elements from both Smalltalk and Java. It will then be used to discuss how new properties brought into SmallJava from Smalltalk or Java impact the language. The first item on the agenda is to specify what the base version of SmallJava will look like in both semantics and syntax.

Posted in Dynamic, Java, Smalltalk | Leave a Comment »