3 - oop - visualworks (b)

18
S.Ducasse 1 QuickTime™ TIFF (Uncompress are needed to see Stéphane Ducasse [email protected] http://www.listic.univ-savoie.f r/~ducasse/ The VisualWorks Environment

Upload: the-world-of-smalltalk

Post on 07-Jul-2015

335 views

Category:

Education


0 download

TRANSCRIPT

Page 1: 3 - OOP - VisualWorks (b)

S.Ducasse 1

QuickTime™ and aTIFF (Uncompressed) decompressorare needed to see this picture.

Stéphane [email protected]://www.listic.univ-savoie.fr/~ducasse/

The VisualWorks Environment

Page 2: 3 - OOP - VisualWorks (b)

S.Ducasse 2

License: CC-Attribution-ShareAlike 2.0http://creativecommons.org/licenses/by-sa/2.0/

Page 3: 3 - OOP - VisualWorks (b)

S.Ducasse 3

Smalltalk Run-Time Architecture• Virtual Machine + Image + Changes and Sources

• Image = bytecodes• Sources and changes = code (text)

A byte-code interpreter:the virtual machine interpretes the imageIMAGE2.IMIMAGE2.CHAStandard SOURCESShared by everybody

IMAGE1.IMIMAGE1.CHAAll the objects of the systemat a moment in time

One per user+

Page 4: 3 - OOP - VisualWorks (b)

S.Ducasse 4

Runtime Architecture• The byte-code is in fact translated into native code by

a just-in-time compiler. • The source and the changes are not necessary for

interpreting the byte-code, this is just for the development. Normally they are removed for deployment.

• An application can be delivered as some byte-code files that will be executed with a VM. The development image is stripped to remove the unnecessary development components.

Page 5: 3 - OOP - VisualWorks (b)

S.Ducasse 5

Mouse Semantics

SelectOperateWindowRed BlueYellow

Page 6: 3 - OOP - VisualWorks (b)

S.Ducasse 6

Launcher

Page 7: 3 - OOP - VisualWorks (b)

S.Ducasse 7

Browsing a class

Page 8: 3 - OOP - VisualWorks (b)

S.Ducasse 8

Browsing methods

Page 9: 3 - OOP - VisualWorks (b)

S.Ducasse 9

Inspector• To look inside objects• anObject inspect

Page 10: 3 - OOP - VisualWorks (b)

S.Ducasse 10

Debugger!!!

Page 11: 3 - OOP - VisualWorks (b)

S.Ducasse 11

ChangeList To recover from power failure!!

Page 12: 3 - OOP - VisualWorks (b)

S.Ducasse 12

SUnit: TestRunner open

Page 13: 3 - OOP - VisualWorks (b)

S.Ducasse 13

Tests...

Page 14: 3 - OOP - VisualWorks (b)

S.Ducasse 14

Workspace: to edit code snippet

Page 15: 3 - OOP - VisualWorks (b)

S.Ducasse 15

Integrated version management Check in / outBack end postgres/oracleBased on packages and bundles

no scope only deployment/source management concepts

Store

Page 16: 3 - OOP - VisualWorks (b)

S.Ducasse 16

Published Items

Page 17: 3 - OOP - VisualWorks (b)

S.Ducasse 17

Package: Versioning Code

Page 18: 3 - OOP - VisualWorks (b)

S.Ducasse 18

Change your Mind• Everything you do is recorded !!• So try and learn how to recover your code

• You are smart so – experiment, – learn for you, browse, – all the code is there