29.11.2014 Views

Smalltalk and Object Orientation: an Introduction - Free

Smalltalk and Object Orientation: an Introduction - Free

Smalltalk and Object Orientation: an Introduction - Free

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Finally, you should see <strong>an</strong> inspector window displayed. Try clicking on some of the left h<strong><strong>an</strong>d</strong> items.<br />

The left h<strong><strong>an</strong>d</strong> view of the window shows inst<strong>an</strong>ce variables (such as tally) <strong><strong>an</strong>d</strong> positions (e.g. 1 - 7)<br />

<strong><strong>an</strong>d</strong> the right shows the contents of the variables (e.g. the string ‘John’).<br />

Here is a quest ion for you to ponder on <strong><strong>an</strong>d</strong> experiment with: “ What happens when the 8th item is<br />

added to this set?” 7 .<br />

5.8 Summary<br />

By now you have used a number of <strong>Smalltalk</strong> tools, run VisualWorks (or whatever <strong>Smalltalk</strong> system<br />

you are using) <strong><strong>an</strong>d</strong> written some <strong>Smalltalk</strong> code. Y ou have also had the ch<strong>an</strong>ce to use some of the tools<br />

available to help you debug your code. You are now ready for the <strong>Smalltalk</strong> l<strong>an</strong>guage itself!<br />

5.9 Further reading<br />

If you are going to do <strong>an</strong>y serious development in <strong>Smalltalk</strong> then you should consider obtaining at least<br />

Vol. 1. of Inside <strong>Smalltalk</strong> [Lalonde <strong><strong>an</strong>d</strong> Pugh 1991] (which concentrates on the l<strong>an</strong>guage) if not Vol. II.<br />

[Lalonde <strong><strong>an</strong>d</strong> Pugh 1991b] (which concentrates on the graphical facilities).<br />

However, by far my own favorite book is [Hopkins <strong><strong>an</strong>d</strong> Hor<strong>an</strong> 1995]. This is a very good<br />

introductory book on <strong>Smalltalk</strong> using the VisualWorks 2.0 system. Indeed it is based closely on the<br />

courses that were run by the University of M<strong>an</strong>chester by the authors <strong><strong>an</strong>d</strong> by the commercial suppliers<br />

of VisualWorks. This me<strong>an</strong>s that the material in the book has been “debugged” over a number of years.<br />

In particular it covers much of the same material as is in Part II of this book but spends much more time<br />

on the use of the graphical facilities in <strong>Smalltalk</strong>. It also goes into a great deal of detail about the tools<br />

in VisualWorks <strong><strong>an</strong>d</strong> how to use. However it does not cover issues such as ‘what is object orientation in<br />

much detail’, nor does it attempt to guide the novice through the application of object orientation to<br />

developing a system.<br />

7<br />

Answer: it grows. Try it for yourself - remember to use the inspector to examine the con tents of the set.<br />

60

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!