This lecture will provide a basic understanding of Garbage Collectors (GC) and object-oriented programming (object, references, instantiation) using Pharo. We will present the syntax of the language and explore the Pharo environment. We will some tools to write and execute simple programs.
- The code of the Swallow class in the
Example.stfile (Example package). Just drag-and-drop the file into the Pharo world and selectInstall into the image.
- At the end, the code in the Playground was
pepita := Swallow new.
pepita areYouTired.
pepita fly: 50.
Smalltalk garbageCollect.
Smalltalk vm totalGCTime. "2967" "3005"- Download the Pharo: https://pharo.org/download
- Check the Pharo MOOC: https://mooc.pharo.org/
- Books about Pharo: https://books.pharo.org/
- Follow
ProfStefin the Pharo image to learn how to use the environment. - Extend the Swallow example (adding tests, adding features, etc).
- Or create a new program (model) that you want.