Skip to content
This repository has been archived by the owner on Jun 21, 2022. It is now read-only.

Source code for Chris Double's "Self Demo: Creating a bank account object"

License

Notifications You must be signed in to change notification settings

brackendev/BankAccountDemo-Self

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

"[Self] was first used as an experimental test system for language design in the 1980s and 1990s. ... Self was designed mostly by David Ungar and Randall Smith in 1986 while working at Xerox PARC. Their objective was to push forward the state of the art in object-oriented programming language research..." Wikipedia


BankAccountDemo-Self

Source code for Chris Double's Self Demo: Creating a bank account object.

Installation

  1. Install and setup Self.

  2. Download this project.

  3. Via a Self shell, specify the correct path and Do it:

    modules init
      registerTree: 'bankaccount'
      At: '/Users/username/Downloads/BankAccountDemo-Self-master/bankaccount'
    
  4. Next, Do it:

    bootstrap read: 'bankaccount'
      From: 'applications'
      InTree: 'bankaccount'
      IfFail: nil
    
  5. Lastly, Get it:

    bankaccount clone
    

(For steps 3-5, see the shell object in Screenshots below.)

Example Usage

Via a bankaccount object, Do it:

deposit: 50
withdraw: 25

(See the bankaccount object in Screenshots below.)

Screenshots

Screenshot 1

Screenshot 2

Author

Bracken Spencer

License

BankAccountDemo-Self is released under the MIT license. See the LICENSE file for more info.


Useful Links