Smalltalk Bar Camp Hanoi 2009

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    Favorites, Groups & Events

    Smalltalk Bar Camp Hanoi 2009 - Presentation Transcript

    1. Smalltalk Serge Stinckwich (Serge.Stinckwich@esug.org)
    2. The origin of Smalltalk Alan Kay’s Dynabook project (1968) Alto —!Xerox PARC (1973)
    3. Smalltalk today
    4. Smalltalk today
    5. Smalltalk today
    6. Smalltalk today
    7. Smalltalk today
    8. Squeak resources www.squeak.org www.seaside.st Downloads and links One-click image SqueakByExample.org Free download — Print-on-demand
    9. Getting started
    10. Everything is an object
    11. Everything happens by sending messages
    12. Running Squeak
    13. Do it, print it You can evaluate any expression anywhere in Smalltalk
    14. Standard development tools
    15. Debuggers, Inspectors, Explorers
    16. Syntax in a Nutshell
    17. Three kind of messages 5 factorial Unary messages Transcript cr Binary messages 3+4 Keyword messages 3 raisedTo: 10 modulo: 5 Transcript show: 'hello world'
    18. A typical method in the class Point Method name Argument Comment <= aPoint ! \"Answer whether the receiver is neither ! below nor to the right of aPoint.\" ! ^ x <= aPoint x and: [y <= aPoint y] Return Block Binary message Instance variable Keyword message (2@3) <= (5@6) true
    19. Statements and cascades Temporary variables Statement | p pen | p := 100@100. pen := Pen new. pen up. pen goto: p; down; goto: p+p Cascade
    20. Control structures Every control structure is realized by message sends 4 timesRepeat: [Beeper beep] max: aNumber ! ^ self < aNumber ! ! ifTrue: [aNumber] ! ! ifFalse: [self]
    21. Control structures Every control structure is realized by message sends 4 timesRepeat: [Beeper beep] Boolean ifTrue:ifFalse: max: aNumber True False ifTrue:ifFalse: ifTrue:ifFalse: ! ^ self < aNumber ! ! ifTrue: [aNumber] ! ! ifFalse: [self] ifTrue: t ifFalse: f ifTrue: t ifFalse: f ^ t value ^ f value
    22. Creating classes Send a message to a class (!) Number subclass: #Complex ! instanceVariableNames: 'real imaginary' ! classVariableNames: '' ! poolDictionaries: '' ! category: 'ComplexNumbers'
    23. Smalltalk ressources • Mailing-list : http:// lists.squeakfoundation.org/mailman/listinfo/ smalltalk-vn • Smalltalk flyer translated in Vietnamese • http://community.ofset.org/wiki/Squeak
    SlideShare Zeitgeist 2009

    + Stinckwich SergeStinckwich Serge Nominate

    custom

    440 views, 0 favs, 0 embeds more stats

    A short introduction to Smalltalk during Bar Camp H more

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 440
      • 440 on SlideShare
      • 0 from embeds
    • Comments 0
    • Favorites 0
    • Downloads 7
    Most viewed embeds

    more

    All embeds

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories