Hotspots: Admin Pages | Turn-in Site |
Current Links: Cases Final Project Summer 2007
My Squeak Diary
- Learned how to open up squeak by dragging image file, my copy of the image file over the top of an executable... which there happens to be one in the apps folder of Jefferson
- Learned how to do assignment statements using the underscore to make the backwards arrow, and learned that there are NO primitive types not even numbers are primitive in Squeak, they are all objects which is pretty cool because I can talk to them all the same by doing:
#(1 2 3)
- learned that a character object is notated by: $a or $m etc. arrays in squeak are like vectors in java all array slots are objects they have no particular identity. Arrays are declared by
#('joe' 1 'amy' $f)
condition ifTrue: [ execute this block of code]
- in squeak there are "blocks" of code which I guess are sort of like a method except that they can be attached to a conditional or such like:
- learned that i can perform multiple operations on an object without repeating the object's name by separting the "messages" or method calls by semi-colons:
OrderedCollection new add: 1; add: 2; add: 3.
- started really getting going on my trees project and found out that making a linked list/ tree data structure in squeak is very easy...
- unfortunately doing the graphics in squeak seems harder than I thought I can't seem to figure out the Form object so that I can draw using pen
- still stuck on the drawing !!
- found out random information about squeak... modulous operator is \\ I don't know when I'll need to use it in this class...but none the less
- Started to figure out how exactly to create objects, and how to subclass them, and all the methods that are in categories...the category names have no meaning other than to help me logically locate a particular method. I can create a subclassed object by:
inheritance blah blah, can over ride methods, can have "abstract"
- inheritence is basically the same as in java, no multiple
sort of classes
work file it out and THEN save and exit squeak so that if the save
- image files can get corrupted easily so if you want to save your
and exit crashes you don't have to do your charette or project over
methodName uses: var1 and: var2
- finally figured out how to do multiple parameters in methods
I think this method of passing multiple variables is very strange
and not very intuitive
really neato functions like being able to search for particular
- got help and learned the wonderful ways of HTMLtokenizer it has some
html tags, comments etc.
- ALWAYS REMEMBER THAT STRINGS ARE IN SINGLE QUOTES this saves on
out how to step though programs and change variables and view their
- learned self hault command is very helpful... also finally figured
values in the debugger ... those windows were there for a reason
- learned short cut keys are supposedly ALWAYS slower than using a mouse I don't know if I buy that...it contradicts modern or not so modern physics
- learned that the st (file out file) is really just a text file...but that it logs who made what changes when, which I guess means I can't cheat...just kidding
- I learned nothing this week...other than the fact that the project is tedious, and some what repetitive
- squeak and java are the same, both have garbage collection, virtual machines, and both use an interpreter to "compile" down to byte code but squeak is more OO and a little less linear... but I still prefer Java
- they said you can never lose code in squeak but they're wrong as best I can tell... I got that weird file out error that I got in the beginning of this semester again... who said I couldn't break squeak the only thing I know that works is file out often and pray that it doesn't throw an error
- streams in squeak are easy...
- learned that Georgia Tech is a shaft... and that I'm going to have to take a final in this class even though I'm a graduating senior...
Link to this Page