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

Discussion 3 - Nazli Dokuzoglu

Discussion 3
Nazli Dokuzoglu
902163737
gth795k

Part 1: Create and Post a Discussion
In detail, describe a feature of Squeak that you have found particularly useful. What is the feature? Why is it useful? How do you envoke it?

Squeak is different from the development environments that I used before (Java Platform and Visual C++) in many ways. When I first opened Squeak, I even didn’t know where to write the code, how to compile the code and how to correct the errors. After a little “frustration period” and started to figure out and get used to squeak and I found out about some features of squeak which help you a lot, like searching the classes and methods, and exploring and inspecting objects.

If you know which class you want to use, you can open a system browser (by alt+b) and click to the top of the scroll bar near the listing of the classes and select “find class…” from the menu. After this, type the name class that you want to find and squeak will bring you all the classes with names that have the typed string.

On the other hand, if you do not know the class name but you know the object that you want to use, you can inspect the object. In squeak you can select ANY object in the world (even squeak’s menus, and system browser!) and the alt+i command will bring you an inspector window. Or you can type “objectName inspect” to the transcript and execute that line by alt+d for opening the inspector window. Inspector window shows the class name and all the attributes of the object on the left pane and if you select any of the attribute, it will show you the contents of the selected attribute on the right pane. You can also call the attributes or methods of that object by writing “self MethodName” or “self AttributeName” and print the result by alt+p command. This is a very useful tool for understanding the class and debugging the code. Similarly, you can explore an object by typing “objectName explore” to the transcript and execute that line by alt+d for opening the explorer window. The explorer window is an outline of the original object, and it allows you to see the contents of the object.

Last of all, if you know the method name or a part of the name of the method, you can search it by the Method Finder tool. To open the method finder, you should left click on the browser choose open and method finder from the menu. Type the name of the method that you want to find and squeak will bring you all the methods with names that have the typed string in the left pane. Then you can click on the method you want to use and the classes that have that method are listed on the right pane. If you click any class' method on the right pane, squeak opens a system browser showing the implementation of the method.

Squeak is an interesting development environment and it has many useful features for helping you to code and debug the code, explore or inspect an object, find a class or a method and so on. While I was working on Milestone 1 and Milestone 2, I used these features when I wanted to find a method or a class, or inspect the object and I think they helped me a lot. If I gain more practice in squeak and using the useful features of it, squeak can be a very powerful environment for coding, especially for user interfaces and graphics.


Part 2: Read Other Posts and Pick a Good One
Next, find two posts that you think are useful. Link to them on your original page and explain why you found them particularly useful.

Discussion 3 - Hai Phan (gtg394v) was useful for me to find out about the "compare" function of Squeak for comparing two objects.

Arcadiy Kantors discussion was also useful for me to find out about the "color print" feature of Squeak. It will definitely help me to correct the syntax mistakes!

Thanks.



shot.bmp

Links to this Page