Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

I am a Java programmer willing to learn smalltalk. As of now I am working within the Pharo environment. Trying to switch from Java to Smalltalk is being a bit of a headache, honestly. I would like to learn Smalltalk with the help of a code base available but I believe that there aren't many Smalltalk example projects available on the web.

So are there any particular websites that involve learning Smalltalk (Pharo) based on some simple examples? Currently I am taking the help of Pharo By Example doc but I feel it is just not sufficient for me. I am looking for more some code examples in Smalltalk.

share|improve this question

5 Answers 5

up vote 8 down vote accepted

Your image is full of Smalltalk code examples, isn't it?

Few small snippets are available at http://code.google.com/p/pharo/wiki/CodeSnippets.

…Yep, and you can use ProfStef to learn Smalltalk interactively: http://www.pharocasts.com/2010/01/learn-smalltalk-with-profstef.html

share|improve this answer

As others have suggested, image is your primary reading source. There is a ton of code there ready to be read, but much more importantly to be instantly tried, inspected, debugged and poked around.

Once you click with that you will get the "Oh my God it is full of stars (objects)" feeling.

Talk to your image and enjoy.

p.s. Remember to make backups of your "poking" image regularly.

share|improve this answer

Hmmm , there are a lot of samples, also a lot of books available for free under CC or similar

Here is the Stef's Free Online Smalltalk Books recopilation http://stephane.ducasse.free.fr/FreeBooks.html

You can read there what Stéphane Ducasse said : I started to be fed up to see all the books I like to be out of print, so I started to contact authors and collect their old books. I would like to thanks them all and their publishers as well. If you know an author that is willing to give to the community a book, please give him my email. Now if you like these books and want to help me continue support me.

share|improve this answer
There is a book called Learn Pharo by Example pharo-project.org/pharobyexample –  yeradis May 17 '11 at 10:18

You can browse http://squeaksource.com and look for examples. Beware that some projects are quite old and the quality is highly variable.

As others have said, the image contains some good packages (ProfStef is a good read in my opinion).

share|improve this answer

If Smalltalk causes a headache for you, maybe you should start with small code examples from books:

As for real code:

  • Since many applications of Smalltalk are in the financial sector, you don't have access to the code.
  • You will find some Smalltalk code on the nice open source project pharo-project.org.
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.