FizzBuzz in Smalltalk
The article demonstrates implementing the classic FizzBuzz programming problem in Smalltalk, showing how to use integer iteration, conditionals, and output methods to print numbers 1 to 100, replacing multiples of 3 with "Fizz", multiples of 5 with "Buzz", and multiples of both with "FizzBuzz".
Background
- **Smalltalk** is one of the earliest object-oriented programming languages (created in the 1970s at Xerox PARC). It is still used in some financial, industrial, and educational contexts, and heavily influenced languages like Java, Python, and Ruby.
- The article's author, **Don Raab**, is a well-known Smalltalk developer and the creator of the Eclipse Collections Java library.
- **FizzBuzz** is a classic programming exercise (often used in job interviews): print numbers 1 to 100, but for multiples of 3 print "Fizz", for multiples of 5 print "Buzz", and for multiples of both print "FizzBuzz".
- The post demonstrates how to write FizzBuzz in Smalltalk, highlighting the language's expressive syntax, blocks (closures), and message-passing style — which look very different from modern mainstream languages.