Today's Smalltalk 4 You looks at the GF/ST graphics framework - which you can use in VA Smalltalk, and in other dialects as well. If you have trouble viewing it here in the browser, you can also navigate directly to YouTube. To watch now, click on the image below:
If you have trouble viewing that directly, you can click here to download the video directly. If you need the video in a Windows Media format, then download that here.
You can also watch it on YouTube:
If you need a simple, cross dialect graphics framework, then you should probably have a look at GF/ST. In VA Smalltalk, simply load it from the "Load/Unload Features" UI. Once you've done that, you can have a look at class GFThreeDEditor for some example usage. Try this code:
GFThreeDEditor new open
You can play with the examples in there - here's the cube:
You'll want to see things in the browser to get an idea as to how they work. Take a look at the Application GFTesting, and its sub app GFTestingES. From there, you can start tracing the drawing code:
Need more help? There's a screencast for other topics like this which you may want to watch. Questions? Try the "Chat with James" Google gadget over in the sidebar.
Join the Facebook Group to discuss the tutorials. You can view the archives here.
To watch now, click on the image below:
If you have trouble viewing that directly, you can click here to download the video directly. If you need the video in a Windows Media format, then download that here.
Today's Smalltalk 4 You continues looking at the usage of JSON in Pharo. If you have trouble viewing it here in the browser, you can also navigate directly to YouTube. To watch now, click on the image below:
If you have trouble viewing that directly, you can click here to download the video directly. If you need the video in a Windows Media format, then download that here.
Today's Javascript 4 You looks at using autocomplete (on search fields) with the Places maps API. If you have trouble viewing it here in the browser, you can also navigate directly to YouTube.
Join the Facebook Group to discuss the tutorials. You can view the archives here.
To watch now, click on the image below:
If you have trouble viewing that directly, you can click here to download the video directly. If you need the video in a Windows Media format, then download that here.
Today's Smalltalk 4 You looks at using JSON in Pharo Smalltalk. If you have trouble viewing it here in the browser, you can also navigate directly to YouTube. To watch now, click on the image below:
If you have trouble viewing that directly, you can click here to download the video directly. If you need the video in a Windows Media format, then download that here.
Welcome to episode 123 of Independent Misinterpretations - a Smalltalk and dynamic language oriented podcast with James Robertson and David Buck.
This week Dave and I talked about the differences (and similarities) between error handling and exception handling, giving a few examples of each in different Smalltalk dialects.
You can subscribe to the podcast in iTunes (or any other podcatching software) using this feed directly or in iTunes with this one.
To listen now, you can either download the mp3 edition, or the AAC edition. The AAC edition comes with chapter markers. You can subscribe to either edition of the podcast directly in iTunes; just search for Smalltalk and look in the Podcast results. You can subscribe to the mp3 edition directly using this feed, or the AAC edition using this feed using any podcatching software. You can also download the podcast in ogg format.
If you like the music we use, please visit Josh Woodward's site. We use the song Troublemaker for our intro/outro music. I'm sure he'd appreciate your support!
If you have feedback, send it to jarober@gmail.com - or visit us on Facebook - you can subscribe in iTunes using this iTunes enabled feed.. If you enjoy the podcast, pass the word - we would love to have more people hear about Smalltalk!
Welcome to episode 123 of Independent Misinterpretations - a Smalltalk and dynamic language oriented podcast with James Robertson and David Buck.
This week Dave and I talked about the differences (and similarities) between error handling and exception handling, giving a few examples of each in different Smalltalk dialects.
You can subscribe to the podcast in iTunes (or any other podcatching software) using this feed directly or in iTunes with this one.
To listen now, you can either download the mp3 edition, or the AAC edition. The AAC edition comes with chapter markers. You can subscribe to either edition of the podcast directly in iTunes; just search for Smalltalk and look in the Podcast results. You can subscribe to the mp3 edition directly using this feed, or the AAC edition using this feed using any podcatching software. You can also download the podcast in ogg format.
If you like the music we use, please visit Josh Woodward's site. We use the song Troublemaker for our intro/outro music. I'm sure he'd appreciate your support!
If you have feedback, send it to jarober@gmail.com - or visit us on Facebook - you can subscribe in iTunes using this iTunes enabled feed.. If you enjoy the podcast, pass the word - we would love to have more people hear about Smalltalk!
Today's Smalltalk 4 You looks at extending an existing class (i.e., adding new methods) in your own application in VA Smalltalk. Doing this allows you to version your changes without making changes to applications delivered by your vendor. If you have trouble viewing it here in the browser, you can also navigate directly to YouTube. To watch now, click on the image below:
If you have trouble viewing that directly, you can click here to download the video directly. If you need the video in a Windows Media format, then download that here.
You can also watch it on YouTube:
When you're extending a Smalltalk class, there are a few different approaches:
Subclass and modify in the subclass
Extend an existing class by adding new methods
Modify the existing class by changing the existing methods and/or class definition
In VA Smalltalk, doing the third requires you to change the owning (i.e., probably system) application. However, you can add new methods into your own applications easily, and that's what we'll look at today. First, create a new application. Then, in the class pane of the browser, pop up the context menu:
After you've created the extension, you can add new methods to the class in question. Here, we've added #cubed to Number:
The important thing to keep in mind is that you can version and release extensions like this without touching the applications delivered by Instantiations. If you can, it's safer to develop in this way. Sometimes overrides are necessary, but they do cause some headaches when it's time to upgrade to a new version from the vendor.
Need more help? There's a screencast for other topics like this which you may want to watch. Questions? Try the "Chat with James" Google gadget over in the sidebar.