It’s been a while since I blogged here, but I recently gave a talk, “Introduction to GNU Smalltalk” at Chicago Code Camp and just moments ago, “GNU Smalltalk Koans” at the Software Craftsmanship McHenry meetup. Yes, you read that right. A set of tests to teach you the Smalltalk language. See slides here.
Heavily inspired by Ruby Koans and Clojure Koans, GNU Smalltalk Koans attempts to teach you the Smalltalk language, syntax, and most of the standard libraries. If you’re a Rubyist and have not been exposed to Smalltalk, here’s your chance to find out how much Smalltalk influenced Ruby.
README.markdown should suffice in getting you started, but let’s get down to the nitty gritty and reach our way to enlightenment.
Note: Unfortunately, Windows support is not available at this time. I’m unable to build it on my system, but feel free to fork the project and contribute!
If you have git on your system, the easiest way to get the koans is to perform:
git clone [email protected]:sl4m/gnu_smalltalk_koans.git
If you don’t have git, not a problem. Go to the Downloads section to grab your tarball or zip file and extract it to a location of your choosing.
Once you’re ready to dive in, simply type:
script/run in the project root directory. You will see a message like:
TestAssert#testTruth has damaged your karma.
It will tell you which file to open and which test to correct. In this case, you’ll need to open
TestAssert.st file under
src/koans and correct
testTruth method (aka message). Once you have corrected the test, re-run
script/run to see what other koans might have damaged your karma. Repeat and rinse.
Be sure to read the rest of the
README.markdown as it has some important information. This is an open source project, so feel free to fork it, contribute, give feedback, I’m all ears! Thanks for stopping by!