. .

st4u

ST 4U 405: Stephen Travis Pope at STIC 2013

June 19, 2013 10:08:42.861

Today's Smalltalk 4 You is a video from STIC 2013 - Stephen Travis Pope delivering the second keynote address: "Why I Still use 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:

Stephen Travis Pope

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:

Tags: ,

Enclosures:
[st4u405-iPhone.m4v ( Size: 157081649 )]

posted by James Robertson

 Share Tweet This

st4u

ST 4U 404: Dan Ingalls at STIC 2013

June 18, 2013 9:32:17.134

Today's Smalltalk 4 You is a video from STIC 2013 - Dan Ingall's keynote address from the first day of the conference: "A Few of my Favorite Things". 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:

Dan Ingalls

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:

Tags: , ,

Enclosures:
[st4u404-iPhone.m4v ( Size: 165857540 )]

posted by James Robertson

 Share Tweet This

st4u

ST 4U 403: Dart at STIC 2013

June 17, 2013 9:44:26.009

Today's Smalltalk 4 You is a video from STIC 2013 - Alan Knight talking about the Dart language, which has many Smalltalk-ish features to it. Alan has made the slides for this talk available here. 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:

Dart at STIC 13

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:

Tags: , , ,

Enclosures:
[st4u403-iPhone.m4v ( Size: 99999463 )]

posted by James Robertson

 Share Tweet This

st4u

ST 4U 402: VA Smalltalk Roadmap (STIC 2013)

June 14, 2013 14:00:39.745

Today's Smalltalk 4 You is a video from STIC 2013 - John O'Keefe giving the VA Smalltalk roadmap. 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 Roadmap

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:

Tags: , , ,

Enclosures:
[st4u402-iPhone.m4v ( Size: 86365816 )]

posted by James Robertson

 Share Tweet This

st4u

ST 4U 401: Bad Choices with DNU

June 7, 2013 11:33:14.757

Today's Smalltalk 4 You looks at how you can get into trouble with message construction and #doesNotUnderstand:. 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:

DNU and perform.

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 a common pattern in Smalltalk development that can get you into real trouble - overriding #doesNotUnderstand: to construct messages and send them via #perform: - like this:


doesNotUnderstand: aMessage
	| string |
	
	string := aMessage selector asString.
	self doOp: string

The problems with this are twofold - first, your API is effectively hidden - using standard senders/implentors searches, you don't find it. For follow on developers, it's as if your API doesn't exist. Second, you'll probably end up implementing something like this:


doOp: aString
	|msg |

	msg := (aString, ':') asSymbol.
	(self class allSelectors includes: msg)
		ifFalse: [^self].
	self perform: msg with: 1

Which swallows your exceptions. This kind of code seems very cool the first time you write it, but do yourself a favor - avoid it. There are uses for DNU (mostly when creating proxy objects) - but you should think carefully before using this kind of pattern

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.

Tags: ,

Enclosures:
[st4u401-iPhone.m4v ( Size: 2526268 )]

posted by James Robertson

 Share Tweet This

st4u

ST 4U 400: Infinity in Pharo

June 6, 2013 10:20:22.961

Today's Smalltalk 4 You looks at a small pacakge that adds an infinity object to Pharo's numerics. 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:

Infinity

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:

Tags: , ,

Enclosures:
[st4u400-iPhone.m4v ( Size: 1389325 )]

posted by James Robertson

 Share Tweet This

st4u

ST 4U 399: VisualWorks.ini for ObjectStudio

June 5, 2013 9:32:51.619

Today's Smalltalk 4 You looks at using the visualworks.ini process (to start any image with the right VM) in ObjectStudio. 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:

ObjectStudio.ini

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:

Tags: ,

Enclosures:
[st4u399-iPhone.m4v ( Size: 2994595 )]

posted by James Robertson

 Share Tweet This

st4u

ST 4U 398: thisContext

June 4, 2013 9:00:42.931

Today's Smalltalk 4 You looks at the "hidden" reserved word in VisualWorks, ObjectStudio, Squeak and Pharo - thisContext. 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:

thisContext

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:

Tags: ,

Enclosures:
[st4u398-iPhone.m4v ( Size: 966302 )]

posted by James Robertson

 Share Tweet This

st4u

ST 4U 397: INI Files in Pharo

June 3, 2013 10:11:14.036

Today's Smalltalk 4 You looks at a simple ini file reader for 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:

INI Files

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:

Tags: , ,

Enclosures:
[st4u397-iPhone.m4v ( Size: 1728699 )]

posted by James Robertson

 Share Tweet This

st4u

ST 4U 396: Money in VA Smalltalk

May 31, 2013 11:28:33.023

Today's Smalltalk 4 You looks at money data in 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:

Money.

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 deal with monetary amounts, you really should not use floating point numbers. In VA Smalltalk, there's AbtMoney:


one := 3.54 abtAsMonetaryAmount.
two := 2.12 abtAsMonetaryAmount.

one + two an AbtMonetaryAmouny

If you try the above code, you'll find that you can do standard arithmetic with money objects. If your applicatio deals with financial data, use this instead of floating point :)

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.

Tags: ,

Enclosures:
[st4u396-iPhone.m4v ( Size: 1310467 )]

posted by James Robertson

 Share Tweet This

Previous Next (554 total)