80 likes | 250 Views
Squeak by Example. Andrew Black, Stéphane Ducasse, Oscar Nierstrasz and Damien Pollet with Damien Cassou and Marcus Denker scg.unibe.ch/SBE. An Open Source Book. For beginners For teaching … available soon!. scg.unibe.ch/SBE. Getting Started 1. Preface 2. A Quick Tour of Squeak
E N D
Squeak by Example Andrew Black, Stéphane Ducasse, Oscar Nierstrasz and Damien Pollet with Damien Cassou and Marcus Denker scg.unibe.ch/SBE
An Open Source Book • For beginners • For teaching … available soon!
Getting Started 1. Preface 2. A Quick Tour of Squeak 3. A First Application 4. Syntax in a Nutshell 5. Understanding Message Syntax Developing in Squeak 6. The Smalltalk Object Model 7. The Squeak Programming Environment 8. SUnit 9. Basic Classes 10. Collections 11. Streams 12. Morphic Advanced Squeak 13. Classes and Metaclasses Frequently Asked Questions Planned Chapters … - Metaprogramming - Profiling - Inheritance/Idioms - Exceptions - Concurrency - Dependency Mechanisms - Common Errors - RegEx and SmaCC ... Topics
Drag the method finder icon out of the Tools drawer at the right of the screen. Type “now” in the top left pane, and <accept> it (or just press the return key). The method finder will display a list of all the method names that contain the substring “now” … Hands on
Examples galore 3 + 4 7 (1 to: 6) union: (4 to: 10) a Set(1 2 3 4 5 6 7 8 9 10) factorial := [:n | (1 to: n) inject: 1 into: [:product :each | product * each ] ]. factorial value: 10 3628800
Automated tests! SUnit tests are generated from LaTeX examples (!) 3 + 4 7 test114 self assert: [ 3 + 4 ] value printString = '7'.
Open Source means: • PDF download • Free, printable (soon) • Print-on-demand • Lulu.com (soon) • LaTeX sources • Creative Commons 3.0 license • Subversion repository • SqueakSource Projects • Contributions welcome!