1 / 8

Squeak by Example

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

zia-york
Download Presentation

Squeak by Example

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Squeak by Example Andrew Black, Stéphane Ducasse, Oscar Nierstrasz and Damien Pollet with Damien Cassou and Marcus Denker scg.unibe.ch/SBE

  2. An Open Source Book • For beginners • For teaching … available soon!

  3. scg.unibe.ch/SBE

  4. 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

  5. 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

  6. 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

  7. Automated tests! SUnit tests are generated from LaTeX examples (!) 3 + 4  7 test114 self assert: [ 3 + 4 ] value printString = '7'.

  8. 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!

More Related