Actually, I think these examples are substantial. Think about it. How would you code these examples in Java or JavaScript? I’m not an expert in Java nor JavaScript, so I wouldn’t pretend to be able to code these elegantly, but I bet in the best cases, they’d still be pretty gnarly, possibly requiring dozens of lines. Remember, the Pharo examples work right out of the box. As Sven says, “given the proper abstractions,” the code should be sweet and concise. This is a testament to the breadth and quality of Pharo’s class hierarchy.

Also, it helps enormously that Smalltalk’s syntax is so clean and simple. There’s none of the syntactical clutter that you find in Java and JavaScript, resulting in far fewer lines of code.

Of course, I’d be happy to be proven wrong, if anybody cares to take up the challenge. ;-)

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store