Hotspots: Admin Pages | Turn-in Site |
Current Links: Cases Final Project Summer 2007
General Squeak Tips And Pearls of Wisdom
- Inspect windows can be your best friend. Get in the habit of using the inspect message, and you too will come to appreciate this ability that Squeak has!
- We reiterate, the inspect message is your friend! So is self halt. Insert this into a method, and you can start the debugger. Inspect windows and the debugger are two of your best allies in Squeak.
- In our experience, it's best to start out writing code in the workspace. Your workspace code can easily be converted into methods.
- Befriend collections! They will become your allies as well.
- The only way to learn what's there in Squeak is to get dirty. You're going to have to dig around, but you'll generally find what you need.
- One of the design lessons we've learned is that simplicity is key. A simple design isn't easy; it requires significantly more thought than just using the first thing that comes to mind. But taking the extra time to develop a simple, elegant design saves much time in coding. If you take the time to really design, the coding is much easier. We could tell you this a million times, but the only way you'll learn is by doing. Just remember this: Strive for simplicity.
- When using Morphs, always add them to the window before you try changing the color. (We have no idea why)
- You can right click on any class and choose more then choose sample instance. This will show you what the class looks like—it is really nice for Morphic objects.
- If you're having trouble figuring out how to call a method (ie its parameters, etc) check out the new or initialize methods for that class, or its parent class.
Link to this Page