
External
Squeak by Example
Squeak by Example, intended for both students and developers, will guide you gently through the Squeak language and environment by means of a series of examples and exercises. The book helps you get started with A Quick Tour of Squeak and guides you through A First Application.
- Author
- Andrew P. Black, Stéphane Ducasse, Oscar Nierstrasz, Damien Pollet
- Publisher
- LibreTexts
- Source
- LibreTexts
- License
- CC BY-SA
- Language
- EN
- Category
- Information Technology
Contents· 120 sections
- 01: A Quick Tour of Squeak
- 1.01: Getting Started
- 1.02: The World Menu
- 1.03: Saving Quitting and Restarting a Squeak Session
- 1.04: Workspaces and Transcripts
- 1.05: Keyboard Shortcuts
- 1.06: SqueakMap
- 1.07: The System Browser
- 1.08: Finding Classes
- 1.09: Finding Methods
- 1.10: Defining a New Method
- 1.11: Chapter Summary
- 02: A First Application
- 2.01: The Quinto Game
- 2.02: Creating a New Class Category
- 2.03: Defining the Class SBECell
- 2.04: Adding Methods to a Class
- 2.05: Inspecting an Object
- 2.06: Defining the Class SBEGame
- 2.07: Organizing Methods into Protocols
- 2.08: Let’s Try Our Code
- 2.09: Saving and Sharing Smalltalk Code
- 2.10: Chapter Summary
- 03: Syntax in a Nutshell
- 3.01: Syntactic Elements
- 3.02: Psuedo-Variables
- 3.03: Message Sends
- 3.04: Method Syntax
- 3.05: Block Syntax
- 3.06: Conditionals and Loops in a Nutshell
- 3.7: Primitives and Pragmas
- 3.8: Chapter Summary
- 04: Understanding Message Syntax
- 4.01: Identifying Messages
- 4.02: Three Kinds of Messages
- 4.03: Message Composition
- 4.04: Hints for Identifying Keyword Messages
- 4.05: Expression Sequences
- 4.06: Cascaded Messages
- 4.7: Chapter Summary
- 05: The Smalltalk Object Model
- 5.01: The Rules of the Model
- 5.02: Everything is an Object
- 5.03: Every Object Is an Instance of a Class
- 5.04: Every Class Has a Superclass
- 5.05: Everything Happens by Message Sending
- 5.06: Method Lookup Follows the Inheritance Chain
- 5.07: Shared Variables
- 5.08: Chapter Summary
- 06: The Squeak Programming Environment
- 6.01: Overview
- 6.02: The System Browser
- 6.03: Monticello
- 6.04: The Inspector and the Explorer
- 6.05: The Debugger
- 6.06: The Process Browser
- 6.07: Finding Methods
- 6.08: Change Sets and the Change Sorter
- 6.09: The File List Browser
- 6.10: In Smalltalk, You Can’t Lose Code
- 6.11: Chapter Summary
- 07: SUnit
- 7.01: Introduction
- 7.02: Why Testing Is Important
- 7.03: What Makes a Good Test?
- 7.04: SUnit by Example
- 7.05: The SUnit Cook Book
- 7.06: The SUnit Framework
- 7.07: Advanced Features of SUnit
- 7.08: The Implementation of SUnit
- 7.09: Some Advice on Testing
- 7.10: Chapter Summary
- 08: Basic Classes
- 8.01: Object
- 8.02: Numbers
- 8.03: Characters
- 8.04: Strings
- 8.05: Booleans
- 8.06: Chapter Summary
- 09: Collections
- 9.01: Introduction
- 9.02: The Varieties of Collections
- 9.03: Implementations of Collections
- 9.04: Examples of Key Classes
- 9.05: Collection Iterators
- 9.06: Some Hints for Using Collections
- 9.07: Chapter Summary
- 10: Streams
- 10.01: Two Sequences of Elements
- 10.02: Streams vs Collections
- 10.03: Streaming over Collections
- 10.04: Using Streams for File Access
- 10.05: Chapter Summary
- 11: Morphic
- 11.01: The History of Morphic
- 11.02: Manipulating Morphs
- 11.03: Composing Morphs
- 11.04: Creating and Drawing Your Own Morphs
- 11.05: Interaction and Animation
- 11.06: Interactors
- 11.07: Drag-and-Drop
- 11.08: A Complete Example
- 11.09: More about the Canvas
- 11.10: Chapter Summary
- 12: Classes and Metaclasses
- 12.01: Rules for Classes and Metaclasses
- 12.02: Revisiting the Smalltalk Object Model
- 12.03: Every Class Is an Instance of a Metaclass
- 12.04: The Metaclass Hierarchy Parallels the Class Hierarchy
- 12.05: Every Metaclass Inherits from Class and Behavior
- 12.06: Every Metaclass Is an Instance of Metaclass
- 12.07: The Metaclass of Metaclass Is an Instance of Metaclass
- 12.08: Chapter Summary
- 13: Appendix A - Frequently Asked Questions
- 13.01: Getting Started
- 13.02: Collections
- 13.03: Browsing the System
- 13.04: Using Monticello and SqueakSource
- 13.05: Tools
- 13.06: Regular Expressions and Parsing