. .

st4u

ProfStef: Learning Smalltalk in Pharo

May 16, 2011 16:07:37.041

Last year, I did a series of screencasts on the interactive "ProfStef" learning workspace in the "one click" Pharo download. Recently, I was asked whether I could make that available as one continuous video, so I did a bit of editing, and here it is. There are transition title screens between the major segments, and the entire thing is just under 30 minutes in lenth. 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:

ProfStef

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:

Technorati Tags: , , ,

Enclosures:
[ProfStef-iPhone.m4v ( Size: 92205629 )]

posted by James Robertson

 Share Tweet This

st4u

ST 4U 83: Setting up a SQLLite Store Repository

May 16, 2011 6:15:59.396

Today's Smalltalk 4 You shows you how to set up a personal Store Repository using SQLLite - even if you have a fairly locked down Windows machine to deal with. 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:

Store for SQLlite

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:

Technorati Tags: , , , ,

Enclosures:
[st4u83-iPhone.m4v ( Size: 7348884 )]

posted by James Robertson

 Share Tweet This

st4u

ST 4U 82: Loading GlorpDBX into Pharo

May 13, 2011 7:25:31.789

Today's Smalltalk 4 You shows you how to get GlorpDBX for Pharo loaded into your image using Metacello configurations. 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:

GlorpDBX

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:

Technorati Tags: , , , , ,

Enclosures:
[st4u82-iPhone.m4v ( Size: 5513779 )]

posted by James Robertson

 Share Tweet This

st4u

ST 4U 81: Using Breakpoints in VA

May 11, 2011 7:30:49.617

Today's Smalltalk 4 You takes an overview look at the debugger in VA Smalltalk. If you prefer a written walkthrough to video, then skip down to it. 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:

VA Debugger

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:


Today we'll take a little deeper look at the VA Smalltalk debugger. This tool has a lot of functionality, so it'll take more than this tutorial to cover the entire tool. To start with, we've created a simple Counter class. This gives us a jumping off place beyond the workspace to work with the debugger. The class is pretty simple - it has one instance variable, and two api methods to either increment or decrement the counter:

Counter Class

Next we'll script some simple interactions with the object in a workspace. To simulate a more complex bug, we've implemented a simple bug in the subtraction method:

Execute the Code

Having discovered that the decrement functionality doesn't work right, we'll go to the browser and put a breakpoint in. Again, this example is very simple; the idea is to show you how to use breakpoints. Put the cursor down in the method where you want the breakpoint, right click, and select Break:

Insert a Breakpoint

It turns out that you can configure your breakpoint -

Configure a Breakpoint

  • Select a specific process for which this breakpoint applies (ignoring it in all others)
  • If this code is in a loop, break on a specific iteration
  • Specify a boolean condition for which the break applies

If you let all of those default, then the breakpoint will halt your code anytime it is reached - yielding a debugger. Once you have inserted the breakpoint, you'll see a little red indicator appear in the browser:

Breakpoint Added

Now let's return to the workspace, and exercise the code that should hit the breakpoint:

Execute the Code

Now we've landed in the debugger. The top pane contains the context stack - all of the methods that were in the process of executing when we hit the break. To the right you'll see an inspector for all variables - temps, instance, and method arguments. At the bottom, you have the code pane. Since this is Smalltalk, you can change the code. Note that recompiling the code will remove the breakpoint.

In the Debugger

Now, if you hit the Break option in the debugger or browser while you have the cursor at the right place (where you inserted it), the options differ a bit:

Break Options

If you deactivate the break, the marker will change to yellow:

Break Deactivated

Finally, if you select Clear, the breakpoint will be removed.

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.

Technorati Tags: , , , ,

Enclosures:
[st4u81-iPhone.m4v ( Size: 8781165 )]

posted by James Robertson

 Share Tweet This

st4u

ST 4U 80: VA Smalltalk Debugger Overview

May 9, 2011 7:26:42.271

Today's Smalltalk 4 You takes an overview look at the debugger in VA Smalltalk. If you prefer a written walkthrough to video, then skip down to it. 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:

VA Debugger

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:


Today we'll take an overview look at the debugger in VA Smalltalk. It's a tool with a lot of functionality, so expect more on this topic soon. For today, we'll take a simple Smalltalk expression in the debugger and explore it via the debugger. Unlike the inspector, you'll need to highlight the expression in order to jump into the debugger:

Debug it

To execute the currently highlighted expression, use the Through button. That'll execute the expression, keeping the view in the current method. Over would skip past the expression, staying in this view:

Debugging

What if you want to jump into a highlighted method? Use the Into button - you'll jump into that code, and be able to step through the execution at that level. Note the change in the debugger view:

Through

There are a lot of other things you can do from here - on the menu, note the Break option:

Menu Options

We'll get to the more advanced functionality in other tutorials. For now, you should know enough to start exploring the system, and see how various things work. Try it yourself!

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.

Technorati Tags: , , ,

Enclosures:
[st4u80-iPhone.m4v ( Size: 6678011 )]

posted by James Robertson

 Share Tweet This

st4u

ST 4U 79: Exploring the VA Inspector

May 6, 2011 8:57:19.754

Today's Smalltalk 4 You takes an overview look at the browser set in VA Smalltalk (omitting the ENVY specific ones - we'll go through those in a separate tutorial). If you prefer a written walkthrough to video, then skip down to it. 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:

VA Inspector

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:


Today we'll look at the inspector in VA Smalltalk. First, open a workspace, and enter something you can inspect - in the example below, it's a simple string concatenation expression. Note that you don't need to highlight the expression to inspect it - simply drop the cursor at the end of the expression:

Inspect an Expression

Inspect an Expression

The inspector shows you the object, and any component parts. For a string, that's the individual slots with characters; for a non collection, it would instead show instance variables:

Inspector

Once you have the inspector, you can drill down on any element by double clicking on it. You can also open a little execution workspace attached to the inspector - go to the Options menu and select Workspace:

Attached Workspace

Finally, if you want to capture a screenshot (of the window or entire screen), you don't need to leave VA for that. Simply open the Options menu again, and follow the Snapshot pull right. There are various options for what you can snapshot, and how to save what you decide to grab:

Screen Capture

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.

Technorati Tags: , , ,

Enclosures:
[st4u79-iPhone.m4v ( Size: 7315856 )]

posted by James Robertson

 Share Tweet This

st4u

ST 4U 78 - Update a VW Bundle

May 4, 2011 9:33:17.735

Today's Smalltalk 4 You shows you how to easily update all of the packages contained within a bundle (including sub-bundles within it). The code I used in the screencast is in the public store - it can also be downloaded as a zip file. 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:

Update a Bundle

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:

Technorati Tags: , , , ,

Enclosures:
[st4u78-iPhone.m4v ( Size: 8154337 )]

posted by James Robertson

 Share Tweet This

st4u

ST 4U 77: The VA Workspace

May 2, 2011 8:40:13.257

Today's Smalltalk 4 You takes an overview look at the workspace tool in VA Smalltalk. If you prefer a written walkthrough to video, then skip down to it. 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:

VA Workspace

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:


One of the most commonly used tools in any Smalltalk implementation is the workspace - it's where you do ad-hoc testing and exploratory coding. VA Smalltalk is no different - th eonly thing you have to know is that the Workspace is opened via File>>New in the Launcher, not via a menu item labeled "Workspace:

Open a Workspace

Once that's open, you can do exactly what you would expect - start typing Smalltalk code and executing it. There's full support for workspace variables, so you don't need to create temporary declarations and line your executions up. Here's the new workspace:

Workspace

Now you can try typing in some Smalltalk code and executing it:

Workspace Code

Workspace Execution

As you would expect, that gets you an inspector. You don't need to highlight the variable in question; you can just put the cursor down after it. You can also highlight any expression, of course.

Inspector

The toolbar contains a lot of additional functionality, including access to senders/implementors; simply highlight a message send, and use those. As shown in the screencast, each toolbar item has tooltip help - just walk across the workspace and explore for yourself.

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.

Technorati Tags: , , ,

Enclosures:
[st4u77-iPhone.m4v ( Size: 5945075 )]

posted by James Robertson

 Share Tweet This

st4u

ST 4U 76: Changing Squeak Themes

April 29, 2011 6:36:46.038

Today's Smalltalk 4 You looks at changing Squeak Themes. 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:

Squeak Themes

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:

Technorati Tags: , , ,

Enclosures:
[st4u76-iPhone.m4v ( Size: 2913860 )]

posted by James Robertson

 Share Tweet This

st4u

ST 4U 75: Modify the Fonts Used in VA Smalltalk

April 27, 2011 6:32:24.216

Today's Smalltalk 4 You takes alook at modifying the default tool fonts in VA Smalltalk. If you prefer a written walkthrough to video, then skip down to it. 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:

VA Tool Fonts

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:


Today we'll take a look at changing the fonts used in VA Smalltalk tools, including the browser. Don't like the default font you're looking at? It's easy to change. Pull down the File menu in the launcher and select Set Browser Font

Fonts

You should see the font picker tool pop up:

Font Selection

Experiment with the fonts, using the example text in the tool as a guide. Once you've found something you like, hit the Ok button, and the system will update:

Changed Fonts

That's all there is to it!

Need more help? There's a screencast for this topic which you may want to watch. Questions? Try the "Chat with James" Google gadget over in the sidebar.

Technorati Tags: , ,

Enclosures:
[st4u75.mp4 ( Size: 3494648 )]

posted by James Robertson

 Share Tweet This

Previous Next (554 total)