View this PageEdit this Page (locked)Attachments 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 - Oh Kil Kwon

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?

One of the features in Squeak that I thought was useful is, its ability to manipulate “things” within a window (any kind of morph) by pressing yellow button on a morph. I understand that there is no such API or detailed documentation for the Squeak like any other languages (Like Java). However, as we all know at this point, we can use this ability to view each morph as a virtual documentation. This is a good tool if you want to see how things work in certain method resided in a morph. It won’t give you the precise information as other documentations, but you still can find out easily how any classes/methods work in a morph, by testing a method in workspace. At the beginning of the semester, I wasn’t sure how to create a button with image. After playing with ButtonMorph and ImageMorph windows, I was able to accomplish this task by inspecting each morph (This was possible using the ability to manipulate a window). I thought this was very useful especially when you don’t have the precise documentations to follow. Evoking is very easy. All you have to do is find a morph that you would like to explore by choosing “new morph” in world. And you can choose a morph from the list, then window of the morph you chose will pop up in world. There, you can do “yellow” mouse clicks on the window of morph, and click on debug halo. Now, you can explore any methods resided in the morph and try them out yourself in workspace.

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)
I found this post useful not just for myself, but for everyone as well. This might look really obvious, but when you actually start to write a program, this might be easy to forget and might end up debugging for hours and hours. This happened to me for M2. I had to compare a string, and I had my if block as "('template' == aString) ifTrue [do something]". However, my program kept printing a result, which I didn't expect. At first, I didn't even bother to check this block, because I was confidant that this was a correct syntax. After debugging for 3 hours, I finally realized that the syntax that I had was wrong and there is "compare:" method, which I could use it for comparing string. Therefore, I thought this is useful post and reminds us that we could save a lot of times by avoiding this.

Discussion 3 - Laura Parker
I found this post useful, especially for future cs2340 students. Squeak is pure object oriented programming language as we have learned, and it is very powerful multimedia tool. However, it can make novice programmers’ very frustrating. As Laura has mentioned, it was hard to write a program in normal way as other program languages in Squeak. I should mention that somehow, Squeak provides lack of clarity for the programmers. Furthermore, as Laura has also mentioned, this can be overcome by trying "thing" out. I thought this is useful post because Squeak seems weird to many of us, but you can always try things out in workspace.

Links to this Page