Learn SMALLTALK with Real Code Examples
Updated Nov 20, 2025
Practical Examples
Hello World in workspace
Simple calculator class
GUI-based form with buttons and fields
Iterating over collections using blocks
Small domain-specific language
Troubleshooting
Use inspector to check object state
Verify message names and method signatures
Check image for missing objects or classes
Debug using workspace and stack trace
Reload or restart image if environment corrupted
Testing Guide
Write unit tests using SUnit
Test methods interactively in workspace
Use debugger to step through code
Inspect objects during runtime
Version changes incrementally using Monticello
Deployment Options
Distribute image files with code and objects
Package applications for VM execution
Web apps via Seaside deployment
Export code for integration in other Smalltalk systems
Use scripts to initialize runtime state
Tools Ecosystem
Pharo Smalltalk IDE
Squeak Smalltalk
VisualWorks Smalltalk
Monticello versioning system
Inspector, debugger, and workspace tools
Integrations
GUI frameworks (Morph, Seaside)
Database access via GemStone/S
Web applications using Seaside
Interfacing with external libraries via FFI
Educational platforms for OOP learning
Productivity Tips
Use workspace for iterative coding
Leverage inspector and debugger
Organize code in packages
Take advantage of image snapshots
Experiment with blocks and dynamic objects
Challenges
Hello World workspace script
Simple class with arithmetic methods
Interactive GUI with buttons
Iterate collection using blocks
Build a small web page with Seaside