View this PageEdit this PageAttachments to this PageHistory of this PageHomeRecent ChangesSearch the SwikiHelp Guide
Hotspots: Admin Pages | Turn-in Site |
Current Links: Cases Final Project Summer 2007

Summer 2006

CoWeb Assignment 1:

The Cheesy Mice Cases
This page has insights on how to approach the project, lessons learned, and links to some helpful internet sites. They also have their project available for download in several zip files.

Team extends Good implements Skill Cases
This page has some good information on designing a project using MVC (Model-View-Control). It offers Squeak screenshots and example code.

Team "Clubbing of Baby Seals" - Introduction to Squeak, its Tools, and GUI Debugging Case Study
This page offers an introduction to using Squeak (with screenshots), advice on teamwork and approaching the project, and some good information on debugging.

Team SashKeDa
This page offers general advice on the class, Squeak tips, and some information on using Monticello for code sharing and version control.

In general, most of the pages linked to under the "Tutorials and How to do specialized things in Squeak" heading contain good information that is worth checking out.

CoWeb Assignment 2:

Tracing Code (1 point)

Statements
 1 + 2 * 3 - 4 factorial
 a := #(1 2 3 4 5)
 a select: [:i | i odd]
 b := a
 a := a reversed
 b collect: [:i | i* i]
 a perform: #at: withArguments: #(4)

Results
 -15
 #(1 2 3 4 5)
 #(1 3 5)
 #(1 2 3 4 5)
 #(5 4 3 2 1)
 #(1 4 9 16 25)
 2

Message Passing (1 point)

while loop
while (aBooleanTest)
{   // do stuff
}

Smalltalk
[aBooleanTest] whileTrue: [do stuff].

Object[aBooleanTest]
MessagewhileTrue:
Argument[do stuff]

for loop
for (i = 1; i <= 10; i++)
{   // do stuff
}

Smalltalk
1 to: 10 do: [stuff].

Object1
Messageto: do:
Arguments10 & [stuff]

if-then-else
if (aBooleanTest)
{   // do stuff
}
else
{   // do stuff
}

Smalltalk
[aBooleanTest] ifTrue: [do stuff] ifFalse: [do stuff].

Object[aBooleanTest]
MessageifTrue: ifFalse:
Arguments[do stuff] & [do stuff]


Link to this Page