Today's Smalltalk 4 You looks at the Small Lint tools in VA Smalltalk. These exist in most other Smalltalk implementations 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:
You can also watch it on YouTube:
It's a good idea to periodically run some "sanity checks" over your code. SUnit tests are one form of that; Small Lint is another. If you load the "Mastering Envy Developer" feature into VA Smalltalk, one of the tools you get access to is Small Lint:
After launching the tool from the VA Launcher, you need to pick applications and classes to run it over. Select one or more applications, and then select one or more classes. You need to use the Add or Add All options in the context menu, which adds a check next to all of the selected items. That will get you to the next step, where you need to decide which lint checks to use:
Select all, or a subset from the menu seen above. Then just run them:
The window that comes up will show you all of the possible issues - and we say "possible", because Lint can be overly aggressive. You can select an issue and browse the specifics in the code you had it check, and then decide whether or not you need to make changes.
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.
[st4u265-iPhone.m4v ( Size: 5321272 )]