Lock in $30 Savings on PRO—Offer Ends Soon! ⏳

Object-Oriented Programming Basics with Smalltalk

Object-Oriented Programming Basics with Smalltalk

Presented at CodeMash 2016

Larry Staton Jr.

January 07, 2016
Tweet

More Decks by Larry Staton Jr.

Other Decks in Programming

Transcript

  1. @statonjr OOP Basics with Smalltalk To eval a program list,

    control is passed to the first object and the remainder is treated as its message
  2. GENERALLY, WE DON'T WANT THE PROGRAMMER TO BE MESSING AROUND

    WITH STATE, WHETHER SIMULATED OR NOT. Alan Kay THE EARLY HISTORY OF SMALLTALK
  3. @statonjr OOP Basics with Smalltalk Class Instance Class Methods Class

    Variables Instance Methods Instance Variables Instance Methods Instance Variables
  4. @statonjr OOP Basics with Smalltalk SMALLTALK SYNTAX Tokens: Identifiers, Numbers,

    ‘Strings’, “Comments”, Binary Operators, Keywords, Special Tokens
  5. @statonjr OOP Basics with Smalltalk SMALLTALK SYNTAX Special Tokens: #:^’|”;()[]

    Tokens: Identifiers, Numbers, ‘Strings’, “Comments”, Binary Operators, Keywords, Special Tokens
  6. @statonjr OOP Basics with Smalltalk SMALLTALK SYNTAX Special Tokens: #:^’|”;()[]

    Tokens: Identifiers, Numbers, ‘Strings’, “Comments”, Binary Operators, Keywords, Special Tokens Reserved Words: nil false true self super
  7. @statonjr OOP Basics with Smalltalk SMALLTALK SYNTAX Special Tokens: #:^’|”;()[]

    Tokens: Identifiers, Numbers, ‘Strings’, “Comments”, Binary Operators, Keywords, Special Tokens Reserved Words: nil false true self super Syntactic Forms: Unary messages, Binary messages, Keyword messages, Block closures, Return Value, Method definition, Assignment, Cascade
  8. @statonjr OOP Basics with Smalltalk RESOURCES http://pharo.org http://pharobyexample.org Smalltalk-80: The

    Language and Its Implementation http://files.pharo.org/books/ ProfStef go