Smalltalk Programming Language: Modified By: Richelle Joy A. Reyes

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 15

SmallTalk

Programming
Language
Modified by: Richelle Joy A. Reyes
Introduction

Smalltalk is a "pure" object-oriented programming
language, meaning that, unlike C++ and Java, there
is no difference between values which are objects
and values which are primitive types.
Smalltalk was the first
graphical language tool
to support live
programming and
advanced debugging
techniques such as on-
the-fly inspection and
code changes during
execution in a very user-
friendly format.
o Smalltalk introduced the
world to the language virtual
machine, on which Java and
Ruby are based, as well.

o Smalltalk was instrumental


in developing the graphical
user interface (GUI) and the
“what you see is what you
get” (WYSIWYG) user
interface.
Alan Kay
Developers Alan Kay designed most of
It was designed by Alan Kay, Adele
the early Smalltalk versions
Goldberg, Dan Ingalls, and others in
the Learning Research Group at Xerox
PARC.

Dan Ingalis Adele Goldberg


Dan Ingalls implemented Adele Goldberg wrote most of
most of the early versions the documentation
Year Developed

It was designed in early 1970’s and initially


came as Smalltalk-80 which was later
known as Smalltalk.  The first hardware-
environments which ran the Smalltalk VMs
were Xerox Alto computers.
The scope of
language design.
Communication between two people (or between one person and a computer)
includes communication on two levels. Explicit communication includes
the information that is transmitted in a given message. Implicit
communication includes the relevant assumptions common to the two
beings.
SmallTalk Designed for:

Educational Use Constructionist Learning


It was designed and created in part for More so for constructionist learning,
educational use. at the Learning Research Group
(LRG) of Xerox PARC.
The Pharo
Programming
Language

Pharo is an open source, cross-


platform implementation of the
classic Smalltalk-80
programming language and
runtime.
The Pharo IDE

The System
Browser
• Packages
• Classes
• Methods
• Protocols
• Edit
• Quality Assistant
● From Smalltalk came the first modern IDE
(integrated development environment),
which included a text editor, a system or
class browser, an object or property
inspector, and a debugger.

● It means that the IDE allows you to inspect


objects and modify program code while it’s
running! You can debug your code on the
fly! In fact, you can spend all your time in
the debugger while coding!
"Smalltalk if statement"
time > 120
ifTrue: [Transcript show: 'Time expired.'; cr.
time := 0]
ifFalse: [Transcript show: 'Time remaining: ',
(120 - time) printString, ' minutes'; cr]

# Python if statement
if time > 120:
print 'Time expired.'
time = 0

Example source
else:
print 'Time remaining: ', 120 - time, '
minutes'

/* C language if statement */
if (time > 120) {
printf("Time expired.\n");
codes
time = 0;
}
else
To illustrate control structures in
printf("Time remaining: %i minutes\n", 120 - SmallTalk, here’s and if statement in
time);
several language
Example of SmallTalk Program
References:

• https://learnxinyminutes.com/docs/smalltalk/
• https://wiki.c2.com/?WhyIsSmalltalkDead
• https://techbeacon.com/app-dev-testing/how-learning-smalltalk-can-make-you-better-dev
eloper
• https://www.cs.virginia.edu/~evans/cs655/readings/smalltalk.html
• https://www.codeproject.com/Articles/1241904/Introduction-to-the-Smalltalk-Programmin
g-Language
• https://itnext.io/why-smalltalk-is-so-easy-to-evangelize-2b88b4d4605c

CREDITS: This presentation template was created by Slidesgo and includes icons by Flaticon and infographics & images by Freepik
END OF PRESENTATION

You might also like